summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwaelens Jonathan2015-09-08 16:33:29 +0000
committerSwaelens Jonathan2015-09-17 14:23:34 +0000
commit0e468e0f5953f709c70c021d82fa7c4b75508947 (patch)
treede1ea3e0b8ebc5dd59591f74e2c2f95b4cbc19ca
downloadaur-0e468e0f5953f709c70c021d82fa7c4b75508947.tar.gz
Fixes #3926 Initial commit for fusiondirectory-plugin-mixedgroups
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD221
-rw-r--r--fusiondirectory-plugin-mixedgroups.install8
3 files changed, 245 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6c9c75fd897
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = fusiondirectory-plugin-mixedgroups
+ pkgdesc = Simple addressbook plugin
+ pkgver = 1.0.9
+ pkgrel = 1
+ url = http://fusiondirectory.org/
+ install = fusiondirectory-plugin-mixedgroups.install
+ arch = any
+ license = LGPL
+ depends = fusiondirectory>=1.0.9
+ source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-plugins-1.0.9.tar.gz
+ source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-1.0.9.tar.gz
+ md5sums = 03d3831e2c50248e3cc9e7cefe223234
+ md5sums = e169b4ca7ac809a6b939ed06d81c0f2a
+
+pkgname = fusiondirectory-plugin-mixedgroups
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..86fbe985f3b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,221 @@
+pkgname=fusiondirectory-plugin-mixedgroups
+pkgver=1.0.9
+pkgrel=1
+pkgdesc="Simple addressbook plugin"
+arch=('any')
+url="http://fusiondirectory.org/"
+license=('LGPL')
+depends=('fusiondirectory>=1.0.9')
+
+install=fusiondirectory-plugin-mixedgroups.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=('03d3831e2c50248e3cc9e7cefe223234'
+'e169b4ca7ac809a6b939ed06d81c0f2a')
+
+package() {
+cd ./fusiondirectory-plugins-${pkgver}
+# Go in plugin directory
+cd addressbook/
+
+
+# Plugin developers
+ if [ "mixedgroups" = "developers" ] ; then
+ mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-developers/
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/debug-help
+ cp -a ./CODING ${pkgdir}/usr/share/doc/fusiondirectory-developers/
+ cp -a ./Doxyfile ${pkgdir}/usr/share/doc/fusiondirectory-developers/
+ cp -a ./FDStandard ${pkgdir}/usr/share/doc/fusiondirectory-developers/
+ cp -a ./filter.xsd ${pkgdir}/usr/share/doc/fusiondirectory-developers/
+ cp -a ./list.xsd ${pkgdir}/usr/share/doc/fusiondirectory-developers/
+ cp -a ./simple-plugin ${pkgdir}/usr/share/doc/fusiondirectory-developers/
+ cp -a ./debug-help ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/
+ cp -a ./debug-help/html/images ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/debug-help
+
+ else
+ # Addons section
+ if [ -d ./addons ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/addons/
+
+ # Directories
+ for cur_addons in $(find ./addons -mindepth 1 -maxdepth 1 -type d) ; do
+ addons_line="$(echo ${cur_addons} | sed "s#./addons/##")"
+ cp -a ./addons/${addons_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/addons/${addons_line}
+ done
+
+ # Files
+ for cur_addons in $(find ./addons -mindepth 1 -maxdepth 1 -type f) ; do
+ addons_line="$(echo ${cur_addons} | sed "s#./addons/##")"
+ cp -a ./addons/${addons_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/addons/
+ done
+ fi
+
+
+ # Admin section
+ if [ -d ./admin ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/admin/
+
+ # Directories
+ for cur_admin in $(find ./admin -mindepth 1 -maxdepth 1 -type d) ; do
+ admin_line="$(echo ${cur_admin} | sed "s#./admin/##")"
+ cp -a ./admin/${admin_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/admin/${admin_line}
+ done
+
+ # Files
+ for cur_admin in $(find ./admin -mindepth 1 -maxdepth 1 -type f) ; do
+ admin_line="$(echo ${cur_admin} | sed "s#./admin/##")"
+ cp -a ./admin/${admin_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/admin/${admin_line}
+ done
+ fi
+
+
+ # Config section
+ if [ -d ./config ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/config/
+
+ # Directories
+ for cur_config in $(find ./config -mindepth 1 -maxdepth 1 -type d) ; do
+ config_line="$(echo ${cur_config} | sed "s#./config/##")"
+ cp -a ./config/${config_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/config/
+ done
+
+ # Files
+ for cur_config in $(find ./config -mindepth 1 -maxdepth 1 -type f) ; do
+ config_line="$(echo ${cur_config} | sed "s#./config/##")"
+ cp -a ./config/${config_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/config/
+ done
+ fi
+
+
+ # HTML section
+ if [ -d ./html ] ; then
+ if [ "mixedgroups" = "addressbook" ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ cp -a ./html/getvcard.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+
+ elif [ "mixedgroups" = "argonaut" ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+
+ elif [ "mixedgroups" = "fax" ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ cp -a ./html/getfax.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+
+ elif [ "mixedgroups" = "fusioninventory" ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ cp -a ./html/collect.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ cp -a ./html/plugins/inventory.css ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+
+ elif [ "mixedgroups" = "ejbca" ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+
+ else
+ # Directories
+ for cur_html in $(find ./html -mindepth 1 -maxdepth 1 -type d) ; do
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ html_line="$(echo ${cur_html} | sed "s#./html/##")"
+ cp -a ./html/${html_line} ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ done
+
+ # Files
+ for cur_html in $(find ./html -mindepth 1 -maxdepth 1 -type f) ; do
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ html_line="$(echo ${cur_html} | sed "s#./html/##")"
+ cp -a ./html/${html_line} ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ done
+ fi
+ fi
+
+
+ # Include section
+ if [ -d ./include ] ; then
+ # Directories
+ for cur_include in $(find ./include -mindepth 1 -maxdepth 1 -type d) ; do
+ include_line="$(echo ${cur_include} | sed "s#./include/##")"
+ cp -a ./include/${include_line} ${pkgdir}/usr/share/webapps/fusiondirectory/include/
+ done
+
+ # Files
+ for cur_include in $(find ./include -mindepth 1 -maxdepth 1 -type f) ; do
+ include_line="$(echo ${cur_include} | sed "s#./include/##")"
+ cp -a ./include/${include_line} ${pkgdir}/usr/share/webapps/fusiondirectory/include/
+ done
+ fi
+
+
+ # Locale section
+ if [ -d ./locale ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/locale/plugins/addressbook/locale/
+
+ # Directories
+ for cur_locale in $(find ./locale -mindepth 1 -maxdepth 1 -type d) ; do
+ locale_line="$(echo ${cur_locale} | sed "s#./locale/##")"
+ cp -a ./locale/${locale_line} ${pkgdir}/usr/share/webapps/fusiondirectory/locale/plugins/addressbook/locale/
+ done
+
+ # Files
+ for cur_locale in $(find ./locale -mindepth 1 -maxdepth 1 -type f) ; do
+ locale_line="$(echo ${cur_locale} | sed "s#./locale/##")"
+ cp -a ./locale/${locale_line} ${pkgdir}/usr/share/webapps/fusiondirectory/locale/plugins/addressbook/locale/
+ done
+ fi
+
+
+ # Personal section
+ if [ -d ./personal ] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/personal/
+
+ # Directories
+ for cur_personal in $(find ./personal -mindepth 1 -maxdepth 1 -type d) ; do
+ personal_line="$(echo ${cur_personal} | sed "s#./personal/##")"
+ cp -a ./personal/${personal_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/personal/
+ done
+
+ # Files
+ for cur_personal in $(find ./personal -mindepth 1 -maxdepth 1 -type f) ; do
+ personal_line="$(echo ${cur_personal} | sed "s#./personal/##")"
+ cp -a ./personal/${personal_line} ${pkgdir}/usr/share/webapps/fusiondirectory/plugins/personal/
+ done
+ fi
+
+ # Contrib section for samba and supann
+ if [ "mixedgroups" = "samba" ] ; then
+ mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-plugin-samba/
+ cp -a ./contrib/fix_munged ${pkgdir}/usr/share/doc/fusiondirectory-plugin-samba/
+
+ elif [ "mixedgroups" = "supann" ] ; then
+ mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-plugin-supann/examples/
+ cp -a ./contrib/supann/* ${pkgdir}/usr/share/doc/fusiondirectory-plugin-supann/examples/
+ fi
+
+ # SQL section
+ if [ -d ./contrib/sql ] ; then
+ mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-plugin-mixedgroups-schema/
+ cp ../../fusiondirectory-${pkgver}/{AUTHORS,Changelog,COPYING} ${pkgdir}/usr/share/doc/fusiondirectory-plugin-mixedgroups-schema/
+
+ # Directories
+ for cur_sql in $(find ./contrib/sql -mindepth 1 -maxdepth 1 -type d) ; do
+ sql_line="$(echo ${cur_sql} | sed "s#./contrib/sql/##")"
+ cp -a ./contrib/sql/${sql_line} ${pkgdir}/usr/share/doc/fusiondirectory-plugin-mixedgroups-schema/
+ done
+
+ # Files
+ for cur_sql in $(find ./contrib/sql -mindepth 1 -maxdepth 1 -type f ! -name 'example.ldif' ) ; do
+ sql_line="$(echo ${cur_sql} | sed "s#./contrib/sql/##")"
+ cp -a ./contrib/sql/${sql_line} ${pkgdir}/usr/share/doc/fusiondirectory-plugin-mixedgroups-schema/
+ done
+ fi
+ fi
+
+
+ # Docs
+ mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-plugin-mixedgroups/
+ cp ../../fusiondirectory-${pkgver}/{AUTHORS,Changelog,COPYING} ${pkgdir}/usr/share/doc/fusiondirectory-plugin-mixedgroups/
+
+}
diff --git a/fusiondirectory-plugin-mixedgroups.install b/fusiondirectory-plugin-mixedgroups.install
new file mode 100644
index 00000000000..925d068fcdc
--- /dev/null
+++ b/fusiondirectory-plugin-mixedgroups.install
@@ -0,0 +1,8 @@
+post_install() {
+ fusiondirectory-setup --update-cache --update-locales
+}
+
+post_remove() {
+ fusiondirectory-setup --update-cache --update-locales
+}
+