3 pkgbase='fusiondirectory-plugins'
4 pkgname='fusiondirectory-plugins'
5 true && pkgname=('fusiondirectory-plugins-addressbook'
6 'fusiondirectory-plugins-dhcp'
7 'fusiondirectory-plugins-dhcp-schema'
8 'fusiondirectory-plugins-dns'
9 'fusiondirectory-plugins-dns-schema'
10 'fusiondirectory-plugins-samba'
11 'fusiondirectory-plugins-ssh'
12 'fusiondirectory-plugins-ssh-schema'
13 'fusiondirectory-plugins-systems')
17 pkgdesc="Plugins for Fusiondirectory Infrastructure Manager"
20 url="http://www.fusiondirectory.org"
25 source=(http://download.fusiondirectory.org/sources/1.0/${pkgbase}-${pkgver}.tar.gz)
26 md5sums=('10fa4d2c87dd19f632ec4fbdb66d268e')
30 echo "Start packaging..."
33 package_fusiondirectory-plugins-systems() {
34 pkgdesc="Systems Plugin for Fusiondirectory Infrastructure Manager"
35 depends=('fusiondirectory')
38 install=${pkgbase}-systems.install
40 echo "Packaging ${pkgbase}-${_pluginname}"
42 cd ${srcdir}/${pkgbase}-${pkgver}
44 install -d -m755 "${pkgdir}/opt/fusiondirectory/plugins"
45 install -d -m755 "${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}"
46 install -d -m755 "${pkgdir}/opt/fusiondirectory/html/plugins/${_pluginname}"
47 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/admin ${pkgdir}/opt/fusiondirectory/plugins
48 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/locale/* ${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}
49 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/html/images ${pkgdir}/opt/fusiondirectory/html/plugins/${_pluginname}
52 package_fusiondirectory-plugins-addressbook() {
53 pkgdesc="Addressbook Plugin for Fusiondirectory Infrastructure Manager"
54 depends=('fusiondirectory' 'fusiondirectory-plugins-systems')
56 _pluginname='addressbook'
57 install=${pkgbase}-addressbook.install
59 echo "Packaging ${pkgbase}-${_pluginname}"
61 cd ${srcdir}/${pkgbase}-${pkgver}
63 install -d -m755 "${pkgdir}/opt/fusiondirectory/plugins"
64 install -d -m755 "${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}"
65 install -d -m755 "${pkgdir}/opt/fusiondirectory/html/plugins/${_pluginname}"
66 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/addons ${pkgdir}/opt/fusiondirectory/plugins
67 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/locale/* ${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}
68 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/html/getvcard.php ${pkgdir}/opt/fusiondirectory/html/plugins/${_pluginname}
69 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/html/images ${pkgdir}/opt/fusiondirectory/html/plugins/${_pluginname}
72 package_fusiondirectory-plugins-dhcp() {
73 pkgdesc="DHCP Plugin for Fusiondirectory Infrastructure Manager"
74 depends=('fusiondirectory' 'fusiondirectory-plugins-systems')
75 optdepends=('dhcp-ldap' 'fusiondirectory-plugins-dhcp-schema')
78 install=${pkgbase}-dhcp.install
80 echo "Packaging ${pkgbase}-${_pluginname}"
82 cd ${srcdir}/${pkgbase}-${pkgver}
84 install -d -m755 "${pkgdir}/opt/fusiondirectory/plugins"
85 install -d -m755 "${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}"
86 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/admin ${pkgdir}/opt/fusiondirectory/plugins
87 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/locale/* ${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}
90 package_fusiondirectory-plugins-dhcp-schema() {
91 pkgdesc="Schemas for DHCP Plugin for Fusiondirectory Infrastructure Manager"
92 depends=('fusiondirectory-schema')
93 optdepends=('dhcp-ldap')
96 install=${pkgbase}-dhcp-schema.install
98 echo "Packaging ${pkgbase}-${_pluginname}-schema"
100 cd ${srcdir}/${pkgbase}-${pkgver}
102 install -d -m755 "${pkgdir}/etc/openldap/schema/fusiondirectory"
103 install -D -m644 ${_pluginname}/contrib/dhcp.schema "${pkgdir}/etc/openldap/schema/fusiondirectory"
106 package_fusiondirectory-plugins-dns() {
107 pkgdesc="DNS Plugin Fusiondirectory Infrastructure Manager"
108 depends=('fusiondirectory' 'fusiondirectory-plugins-systems')
109 optdepends=('bind' 'ldap2zone-git' 'fusiondirectory-plugins-dns-schema')
112 install=${pkgbase}-dns.install
114 echo "Packaging ${pkgbase}-${_pluginname}"
116 cd ${srcdir}/${pkgbase}-${pkgver}
118 install -d -m755 "${pkgdir}/opt/fusiondirectory/plugins"
119 install -d -m755 "${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}"
120 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/admin ${pkgdir}/opt/fusiondirectory/plugins
121 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/locale/* ${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}
124 package_fusiondirectory-plugins-dns-schema() {
125 pkgdesc="Schemas for DNS Plugin for Fusiondirectory Infrastructure Manager"
126 depends=('fusiondirectory-schema')
127 optdepends=('bind' 'ldap2zone-git')
130 install=${pkgbase}-dns-schema.install
132 echo "Packaging ${pkgbase}-${_pluginname}-schema"
134 cd ${srcdir}/${pkgbase}-${pkgver}
136 install -d -m755 "${pkgdir}/etc/openldap/schema/fusiondirectory"
137 install -D -m644 ${_pluginname}/contrib/dnszone.schema "${pkgdir}/etc/openldap/schema/fusiondirectory"
140 package_fusiondirectory-plugins-ssh() {
141 pkgdesc="SSH Plugin for Fusiondirectory Infrastructure Manager"
142 depends=('fusiondirectory' 'fusiondirectory-plugins-systems')
146 install=${pkgbase}-ssh.install
148 echo "Packaging ${pkgbase}-${_pluginname}"
150 cd ${srcdir}/${pkgbase}-${pkgver}
152 install -d -m755 "${pkgdir}/opt/fusiondirectory/plugins"
153 install -d -m755 "${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}"
154 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/personal ${pkgdir}/opt/fusiondirectory/plugins
155 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/locale/* ${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}
158 package_fusiondirectory-plugins-ssh-schema() {
159 pkgdesc="Schemas for SSH Plugin for Fusiondirectory Infrastructure Manager"
160 depends=('fusiondirectory-schema')
164 install=${pkgbase}-ssh-schema.install
166 echo "Packaging ${pkgbase}-${_pluginname}-schema"
168 cd ${srcdir}/${pkgbase}-${pkgver}
170 install -d -m755 "${pkgdir}/etc/openldap/schema/fusiondirectory"
171 install -D -m644 ${_pluginname}/contrib/openssh-lpk.schema "${pkgdir}/etc/openldap/schema/fusiondirectory"
174 package_fusiondirectory-plugins-samba() {
175 pkgdesc="Samba Plugin for Fusiondirectory Infrastructure Manager"
176 depends=('fusiondirectory' 'fusiondirectory-plugins-systems')
177 optdepends=('samba' 'smbldap-tools')
180 install=${pkgbase}-samba.install
182 echo "Packaging ${pkgbase}-${_pluginname}"
184 cd ${srcdir}/${pkgbase}-${pkgver}
186 install -d -m755 "${pkgdir}/opt/fusiondirectory/plugins"
187 install -d -m755 "${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}"
188 install -d -m755 "${pkgdir}/opt/fusiondirectory/html/plugins/${_pluginname}"
189 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/admin ${pkgdir}/opt/fusiondirectory/plugins
190 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/personal ${pkgdir}/opt/fusiondirectory/plugins
191 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/locale/* ${pkgdir}/opt/fusiondirectory/locale/plugins/${_pluginname}
192 cp -ar ${srcdir}/${pkgbase}-${pkgver}/${_pluginname}/html/images ${pkgdir}/opt/fusiondirectory/html/plugins/${_pluginname}