summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwaelens Jonathan2016-02-19 03:17:48 +0000
committerSwaelens Jonathan2016-02-19 03:17:48 +0000
commit25d522c1318741f5883ef84cf7989c2d6b1f18f3 (patch)
tree3b6c2ba12738997a462b2e998a7ee40ff362d375
parent7ca0bd99bc78412d0d0949e5aa197e963760c727 (diff)
downloadaur-25d522c1318741f5883ef84cf7989c2d6b1f18f3.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 8f3d3ef03f9..1f2c791af92 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -93,41 +93,35 @@ cd ssh/
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
cp -a ./html/getvcard.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
-
+
elif [ "ssh" = "argonaut" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
-
- elif [ "ssh" = "fax" ] ; then
- mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
- cp -a ./html/getfax.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
-
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/getFAIstatus.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
+
elif [ "ssh" = "fusioninventory" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
cp -a ./html/collect.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
cp -a ./html/plugins/inventory.css ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
- elif [ "ssh" = "ejbca" ] ; then
+ elif [ "ssh" = "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/ssh/
- html_line="$(echo ${cur_html} | sed "s#./html/##")"
- cp -a ./html/${html_line} ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
- done
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/ssh/
+ 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