summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-01-27 00:51:38 +0000
committerMike Frysinger <vapier@gentoo.org>2004-01-27 00:51:38 +0000
commitaa5661b4a9924fb0c34e2e1b89d126e19c719339 (patch)
tree4fb5b7f72b40bc31876b20c4fdb05ba1cb842598 /eclass
parentFixed typo in ebuild, closes #38946. (Manifest recommit) (diff)
downloadgentoo-2-aa5661b4a9924fb0c34e2e1b89d126e19c719339.tar.gz
gentoo-2-aa5661b4a9924fb0c34e2e1b89d126e19c719339.tar.bz2
gentoo-2-aa5661b4a9924fb0c34e2e1b89d126e19c719339.zip
horde eclass BABY
Diffstat (limited to 'eclass')
-rw-r--r--eclass/horde.eclass54
1 files changed, 54 insertions, 0 deletions
diff --git a/eclass/horde.eclass b/eclass/horde.eclass
new file mode 100644
index 000000000000..20de7398430e
--- /dev/null
+++ b/eclass/horde.eclass
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/horde.eclass,v 1.1 2004/01/27 00:51:38 vapier Exp $
+#
+# Author: vapier@gentoo.org
+# Help manage the horde project http://www.horde.org/
+
+inherit webapp-apache
+
+ECLASS=horde
+INHERITED="$INHERITED $ECLASS"
+
+EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst
+
+[ -z "${HORDE_PN}" ] && HORDE_PN="${PN/horde-}"
+HOMEPAGE="http://www.horde.org/${HORDE_PN}"
+SRC_URI="http://ftp.horde.org/pub/${HORDE_PN}/tarballs/${HORDE_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+S=${WORKDIR}/${HORDE_PN}-${PV}
+
+horde_pkg_setup() {
+ webapp-detect || NO_WEBSERVER=1
+ webapp-pkg_setup "${NO_WEBSERVER}"
+}
+
+horde_src_install() {
+ webapp-mkdirs
+
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/horde
+ [ "${HORDE_PN}" != "horde" ] && destdir=${destdir}/${HORDE_PN}
+
+ dodoc README docs/*
+ rm -rf COPYING LICENSE README docs
+
+ dodir ${destdir}
+ cp -r . ${D}/${destdir}/
+ cd ${D}/${destdir}
+
+ # protecting files
+ chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${D}/${destdir}
+ find ${D}/${destdir} -type f -exec chmod 0640 '{}' \;
+ find ${D}/${destdir} -type d -exec chmod 0750 '{}' \;
+}
+
+horde_pkg_postinst() {
+ einfo "Please read /usr/share/doc/${PF}/INSTALL.gz"
+ einfo "Before this package will work you have to setup"
+ einfo "the configuration files. Please review the"
+ einfo "config/ subdirectory of ${HORDE_PN} in the webroot."
+}