summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwaelens Jonathan2015-05-10 09:07:17 +0200
committerSwaelens Jonathan2015-05-10 09:07:17 +0200
commit163016f203d3f5f24b16a028b92b943c3772ec14 (patch)
treec12515af4378238312951f16cced43d21b8f6d8d
downloadaur-163016f203d3f5f24b16a028b92b943c3772ec14.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD42
-rw-r--r--fusiondirectory-plugin-freeradius.install8
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..694b49eed1c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = fusiondirectory-plugin-freeradius-schema
+ pkgdesc = LDAP schema for FusionDirectory freeradius plugin
+ pkgver = 1.0.8.8
+ pkgrel = 1
+ url = http://fusiondirectory.org/
+ install = fusiondirectory-plugin-freeradius.install
+ arch = any
+ license = LGPL
+ depends = -schema
+ source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-plugins-1.0.8.8.tar.gz
+ source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-1.0.8.8.tar.gz
+ md5sums = 7ea8890ffbdf05ef4f6478ab1c49afea
+ md5sums = e169b4ca7ac809a6b939ed06d81c0f2a
+
+pkgname = fusiondirectory-plugin-freeradius-schema
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..89718e2c66e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+pkgname=fusiondirectory-plugin-freeradius-schema
+pkgver=1.0.8.8
+pkgver=1.0.8.8
+pkgrel=1
+pkgdesc="LDAP schema for FusionDirectory freeradius plugin"
+arch=('any')
+url="http://fusiondirectory.org/"
+license=('LGPL')
+
+depends=('-schema')
+
+install=fusiondirectory-plugin-freeradius.install
+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=('7ea8890ffbdf05ef4f6478ab1c49afea'
+'e169b4ca7ac809a6b939ed06d81c0f2a')
+
+package() {
+cd ./fusiondirectory-plugins-${pkgver}
+# Go in plugin directory
+cd freeradius/
+
+ # Openldap section
+ if [ -d ./contrib/openldap ] ; then
+ mkdir -p ${pkgdir}/etc/openldap/schema/fusiondirectory/
+ mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-plugin-freeradius-schema/
+ cp ../../fusiondirectory-${pkgver}/{AUTHORS,Changelog,COPYING} ${pkgdir}/usr/share/doc/fusiondirectory-plugin-freeradius-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
+
+}
diff --git a/fusiondirectory-plugin-freeradius.install b/fusiondirectory-plugin-freeradius.install
new file mode 100644
index 00000000000..925d068fcdc
--- /dev/null
+++ b/fusiondirectory-plugin-freeradius.install
@@ -0,0 +1,8 @@
+post_install() {
+ fusiondirectory-setup --update-cache --update-locales
+}
+
+post_remove() {
+ fusiondirectory-setup --update-cache --update-locales
+}
+