summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwaelens Jonathan2016-02-19 06:48:21 +0000
committerSwaelens Jonathan2016-03-23 20:51:22 +0100
commit5eaaccef6cbbb2f04901349f740f4c7bbe25ba22 (patch)
tree86f413cc3744dcc3db539ee9be937c53e7cf6e12
downloadaur-5eaaccef6cbbb2f04901349f740f4c7bbe25ba22.tar.gz
Fixes #4535 Initial commit for schema of subcontracting plugin
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD39
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ba32fd185c0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Wed Mar 23 19:51:17 UTC 2016
+pkgbase = fusiondirectory-plugin-subcontracting-schema
+ pkgdesc = LDAP schema for FusionDirectory subcontracting plugin
+ pkgver = 1.0.10
+ pkgrel = 1
+ url = http://fusiondirectory.org/
+ arch = any
+ license = LGPL
+ depends = fusiondirectory-schema>=1.0.10
+ source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-plugins-1.0.10.tar.gz
+ source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-1.0.10.tar.gz
+ md5sums = abaa6fd4c73d1b51c4bac16f9be2bd0e
+ md5sums = eac9f2a077e8569e615f4fb542a33b10
+
+pkgname = fusiondirectory-plugin-subcontracting-schema
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4bf3aee589f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=fusiondirectory-plugin-subcontracting-schema
+pkgver=1.0.10
+pkgrel=1
+pkgdesc="LDAP schema for FusionDirectory subcontracting plugin"
+arch=("any")
+url="http://fusiondirectory.org/"
+license=("LGPL")
+
+depends=("fusiondirectory-schema>=$pkgver")
+
+source=("http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-plugins-${pkgver}.tar.gz"
+"http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-${pkgver}.tar.gz")
+md5sums=('abaa6fd4c73d1b51c4bac16f9be2bd0e' 'eac9f2a077e8569e615f4fb542a33b10')
+
+package() {
+cd ./fusiondirectory-plugins-${pkgver}
+# Go in plugin directory
+cd subcontracting/
+
+ # Openldap section
+ if [ -d ./contrib/openldap ] ; then
+ mkdir -p ${pkgdir}/etc/openldap/schema/fusiondirectory/
+ mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-plugin-subcontracting-schema/
+ cp ../../fusiondirectory-${pkgver}/{AUTHORS,Changelog,COPYING} ${pkgdir}/usr/share/doc/fusiondirectory-plugin-subcontracting-schema/
+
+ # Directories
+ for cur_openldap in $(find ./contrib/openldap -mindepth 1 -maxdepth 1 -type d) ; do
+ openldap_line="$(echo ${cur_openldap} | sed "s#./contrib/openldap/##")"
+ cp -a ./contrib/openldap/${openldap_line} ${pkgdir}/etc/openldap/schema/fusiondirectory/
+ done
+
+ # Files
+ for cur_openldap in $(find ./contrib/openldap -mindepth 1 -maxdepth 1 -type f ! -name "example.ldif" ) ; do
+ openldap_line="$(echo ${cur_openldap} | sed "s#./contrib/openldap/##")"
+ cp -a ./contrib/openldap/${openldap_line} ${pkgdir}/etc/openldap/schema/fusiondirectory/
+ done
+ fi
+
+}