--- /Volumes/localhorst/usr/portage/app-admin/webapp-config/webapp-config-1.50.16-r2.ebuild 2007-09-10 01:11:40 +0400 +++ app-admin/webapp-config/webapp-config-1.50.16-r2.ebuild 2007-10-13 21:04:50 +0400 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/webapp-config-1.50.16-r2.ebuild,v 1.1 2007/09/09 21:11:40 hollow Exp $ +EAPI="prefix" + inherit eutils distutils DESCRIPTION="Gentoo's installer for web-based applications" @@ -10,7 +12,7 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-macos" IUSE="" DEPEND="" @@ -20,6 +22,7 @@ cd "${S}" epatch "${FILESDIR}"/${P}-apache-move.patch epatch "${FILESDIR}"/${P}-baselayout2.patch + test -z "$EPREFIX" || epatch "${FILESDIR}"/${P}-prefixportage.patch } src_install() { @@ -29,10 +32,10 @@ # distutils does not provide for specifying two different script install # locations. Since we only install one script here the following should # be ok - distutils_src_install --install-scripts="/usr/sbin" + distutils_src_install --install-scripts="$EPREFIX/usr/sbin" dodir /etc/vhosts - cp config/webapp-config ${D}/etc/vhosts/ + cp config/webapp-config ${ED}/etc/vhosts/ keepdir /usr/share/webapps keepdir /var/db/webapps dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt TODO.txt CHANGES.txt examples/postinstall-en.txt @@ -60,5 +63,17 @@ elog "config files in /etc/vhosts/webapp-config before you emerge any" elog "packages that use webapp-config." echo + if test ! -z "$EPREFIX"; then + elog "If you receive error messages similar to the following..." + elog "'You did specify an invalid group value for the variable \"vhost_default_gid\"'" + elog "... then you have to edit $EPREFIX/etc/vhosts/webapp-config to" + elog "contain only user and group names present on the system." + echo + elog "If you receive error messages similar to..." + elog "Fatal error: The user for the server type \"Apache\" does not exist!" + elog "...you need to create the user/group accounts for the webserver." + elog "The dscl and niload commands assist you on the command line in doing this." + echo + fi epause 5 }