summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwaelens Jonathan2016-02-19 03:23:54 +0000
committerSwaelens Jonathan2016-02-19 03:23:54 +0000
commitb4312bc244109015ce21173c07a527e2f1a617d8 (patch)
tree0d092488b5318639997d04058c1a78d259e91e43
parentd3954867f955160b1cd332eed1fff795f8c4afc5 (diff)
downloadaur-b4312bc244109015ce21173c07a527e2f1a617d8.tar.gz
Fixes #4594 clean themes in packages
-rw-r--r--PKGBUILD36
1 files changed, 15 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4109047c77f..10e4cb96f69 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -93,41 +93,35 @@ cd webservice/
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
cp -a ./html/getvcard.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
-
+
elif [ "webservice" = "argonaut" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
-
- elif [ "webservice" = "fax" ] ; then
- mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
- cp -a ./html/getfax.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
-
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/getFAIstatus.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
+
elif [ "webservice" = "fusioninventory" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
cp -a ./html/collect.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
cp -a ./html/plugins/inventory.css ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
- elif [ "webservice" = "ejbca" ] ; then
+ elif [ "webservice" = "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
+ # Images directory
+ if [[ -d ./html/images ]] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
- html_line="$(echo ${cur_html} | sed "s#./html/##")"
- cp -a ./html/${html_line} ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
- done
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/webservice/
+ 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