1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="LDAP administration frontend for user administration"
9 HOMEPAGE="https://oss.gonicus.de/labs/gosa/wiki/WikiStart."
10 SRC_URI="ftp://oss.gonicus.de/pub/gosa/${P}.tar.bz2
11 http://oss.gonicus.de/pub/gosa/${P}.tar.bz2
12 ftp://oss.gonicus.de/pub/gosa/archive/${P}.tar.bz2
13 http://oss.gonicus.de/pub/gosa/archive/${P}.tar.bz2 "
20 DEPEND="dev-lang/php[iconv,imap,ldap,mysql,session,zip]
24 dev-perl/Crypt-SmbHash
25 media-gfx/imagemagick"
26 PDEPEND="mail? ( ~net-nds/gosa-plugin-mail-${PV} )
27 samba? ( ~net-nds/gosa-plugin-samba-${PV} )"
31 "${S}/redhat/02_fix_class_mapping.patch" \
32 "${S}/redhat/03_fix_locale_location.patch" \
33 "${S}/redhat/04_fix_online_help_location.patch"
35 -e 's|../contrib|/usr/share/gosa/template|' \
36 include/functions.inc || die "sed failed"
40 insinto /usr/share/gosa
41 doins -r doc html ihtml include locale plugins setup
43 insinto /usr/share/gosa/template
44 doins contrib/gosa.conf
48 bin/gosa-encrypt-passwords
62 touch "${D}/etc/gosa/gosa.secrets"
65 domenu debian/gosa-desktop.desktop
67 doman *.1 contrib/*.1 contrib/*.5
69 dodoc contrib/openldap/slapd.conf
70 insinto /etc/openldap/schema/gosa
71 doins contrib/openldap/*.schema
73 insinto /etc/apache2/vhosts.d
74 doins "${FILESDIR}/gosa.include"
76 dodoc AUTHORS Changelog FAQ README README.safemode
79 keepdir /var/spool/gosa
80 keepdir /var/cache/gosa
84 ebegin "Flushing the class and locale cache"
85 rm -r "${EROOT}"var/cache/gosa/*
87 ebegin "Clearing the spool directory"
88 rm -r "${EROOT}"var/spool/gosa/*
93 ebegin "Generating class cache and locales"
94 "${EROOT}"usr/sbin/update-gosa
97 elog "Please make sure that the web server you are going to use has"
98 elog "read-write access to ${EROOT}var/spool/gosa"
100 elog "For Apache there is the gosa.include file in ${EROOT}etc/apache/vhosts.d."
101 elog "You can either use it as a template for your configuration or directly"
102 elog "include it in your apache configuration."
104 elog "GOsa requires some objectclasses and attributes to be present in the"
105 elog "directory. A sample configuration for slapd.conf can be found here:"
106 elog " ${EROOR}usr/share/doc/${PF}/slapd.conf[.gz]"