summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwaelens Jonathan2016-02-19 03:07:53 +0000
committerSwaelens Jonathan2016-02-19 03:07:53 +0000
commit472366ebc63ad411eeaef7cc9779e5fdbd8c06ae (patch)
treea0da84b05e36f2fc9ef5a6a6776f276748322ce2
parent4f4ebf22c4e1751b95fabd084e12cb5e823082c0 (diff)
downloadaur-472366ebc63ad411eeaef7cc9779e5fdbd8c06ae.tar.gz
Fixes #4594 clean themes in packages
-rw-r--r--PKGBUILD50
1 files changed, 22 insertions, 28 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 62b47c1bf4a..a0266f0c409 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -90,44 +90,38 @@ cd addressbook/
# 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/
-
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
+ cp -a ./html/getvcard.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
+
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/
-
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/getFAIstatus.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
+
elif [ "mixedgroups" = "fusioninventory" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
- mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/addressbook/
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
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/
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/plugins/inventory.css ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
- elif [ "mixedgroups" = "ejbca" ] ; then
+ elif [ "mixedgroups" = "webservice" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
- cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/jsonrpc.php ${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
+ # Images directory
+ if [[ -d ./html/images ]] ; then
+ mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/mixedgroups/
+ fi
- # Files
- for cur_html in $(find ./html -mindepth 1 -maxdepth 1 -type f) ; do
+ # Themes directory
+ if [[ -d ./html/themes ]] ; then
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
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ fi
fi
fi