3 pkgbase='fusiondirectory'
4 pkgname='fusiondirectory'
5 true && pkgname=('fusiondirectory'
6 'fusiondirectory-schema')
9 pkgdesc="An LDAP based Infrastructure Manager"
12 url="http://www.fusiondirectory.com/"
17 source=("http://download.${pkgname}.org/sources/1.0/${pkgname}-${pkgver}.tar.gz"
18 "${pkgname}-apache.conf")
19 md5sums=('fbc9ab8ccf6a4bf37ed3597f3e4808ac'
20 '4719d80e1a694391a7ba7f2edcfd0985')
24 echo "Start packaging..."
27 package_fusiondirectory() {
28 pkgdesc="An LDAP based Infrastructure Manager"
29 depends=('apache' 'php-apache' 'php' 'php-ldap' 'php-curl' 'perl-crypt-smbhash' 'imagemagick')
31 optdepends=('fusiondirectory-schema')
32 install=${pkgbase}.install
34 cd ${srcdir}/${pkgbase}-${pkgver}
36 install -d -m755 "${pkgdir}/opt/${pkgbase}"
37 install -d -m755 "${pkgdir}/etc/${pkgbase}"
38 install -d -m770 -oroot -ghttp "${pkgdir}/var/spool/${pkgbase}"
40 install -D update-${pkgbase} ${pkgdir}/opt/${pkgbase}
41 install -D bin/${pkgbase}-encrypt-passwords ${pkgdir}/opt/${pkgbase}
42 cp -ar html ${pkgdir}/opt/${pkgbase}
43 cp -ar ihtml ${pkgdir}/opt/${pkgbase}
44 cp -ar include ${pkgdir}/opt/${pkgbase}
45 cp -ar locale ${pkgdir}/opt/${pkgbase}
46 cp -ar plugins ${pkgdir}/opt/${pkgbase}
47 cp -ar setup ${pkgdir}/opt/${pkgbase}
48 cp -ar contrib ${pkgdir}/opt/${pkgbase}
49 install -D -m644 ${srcdir}/${pkgbase}-apache.conf ${pkgdir}/etc/httpd/conf/extra/httpd-${pkgbase}.conf
50 install -D -m644 contrib/shells ${pkgdir}/etc/${pkgbase}
51 install -D -m644 contrib/encodings ${pkgdir}/etc/${pkgbase}
52 install -D -m644 contrib/openldap/slapd.conf ${pkgdir}/usr/share/doc/${pkgbase}/slapd.conf-example
53 install -D -m644 contrib/${pkgbase}.conf ${pkgdir}/usr/share/doc/${pkgbase}
56 package_fusiondirectory-schema() {
57 pkgdesc="Schema files for Fusiondirectory Infrastructure Manager"
61 install=${pkgbase}-schema.install
63 cd ${srcdir}/${pkgbase}-${pkgver}
65 install -d -m755 "${pkgdir}/etc/openldap/schema/${pkgbase}"
67 install -D -m644 contrib/openldap/gosa-samba3.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
68 install -D -m644 contrib/openldap/rfc2307bis.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
69 install -D -m644 contrib/openldap/samba3.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
70 install -D -m644 contrib/openldap/trust.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
71 install -D -m644 contrib/openldap/gofax.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
72 install -D -m644 contrib/openldap/goto-mime.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
73 install -D -m644 contrib/openldap/gofon.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
74 install -D -m644 contrib/openldap/goserver.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
75 install -D -m644 contrib/openldap/goto.schema ${pkgdir}/etc/openldap/schema/${pkgbase}
76 install -D -m644 contrib/openldap/gosystem.schema ${pkgdir}/etc/openldap/schema/${pkgbase}