# 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 }