--- /tmp/webapp-config-1.50.16-r2.ebuild 2007-10-20 22:05:14 +0400 +++ app-admin/webapp-config/webapp-config-1.50.16-r2.ebuild 2007-10-20 19:39:09 +0400 @@ -12,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="" @@ -22,6 +22,13 @@ cd "${S}" epatch "${FILESDIR}"/${P}-apache-move.patch epatch "${FILESDIR}"/${P}-baselayout2.patch + test -z "${EPREFIX}" || epatch "${FILESDIR}"/${P}-prefixportage.patch + eprefixify \ + WebappConfig/config.py \ + WebappConfig/db.py \ + WebappConfig/sandbox.py \ + WebappConfig/wrapper.py \ + sbin/webapp-cleaner } src_install() { @@ -31,7 +38,7 @@ # 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 ${ED}/etc/vhosts/ @@ -62,5 +69,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 }