app-admin/webapp-config: new package, add 2, 9999

This commit is contained in:
2026-01-23 14:50:30 +02:00
parent 814fb98dce
commit 85c27068a0
3 changed files with 110 additions and 0 deletions
@@ -0,0 +1,32 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Gentoo config file for missing webapp-config"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
S="${WORKDIR}"
LICENSE="GPL-2+"
SLOT="ceamac"
KEYWORDS="~amd64"
RESTRICT="bindist"
BDEPEND="app-admin/webapp-config:0"
pkg_setup() {
[[ ${ROOT} != ${BROOT} ]] && export MAKELINKS=1
}
src_install() {
if [[ -n ${MAKELINKS} ]]; then
dodir /etc/vhosts
dodir /usr/sbin
keepdir /var/www/
# Ugly, but intentional. This is supposed to point outside of ${ROOT}.
dosym "${BROOT}"/etc/vhosts/webapp-config /etc/vhosts/webapp-config
dosym "${BROOT}"/usr/sbin/webapp-config /usr/sbin/webapp-config
fi
}