summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwaelens Jonathan2016-02-19 03:19:40 +0000
committerSwaelens Jonathan2016-02-19 03:19:40 +0000
commit2f7bd15f20e357e6019095e48e4f54ee0a1974c4 (patch)
treef6d9867ffe7816d43cc249c09d88c5389316b7d5
parent9f91de0de3d1688cb33d10b6ddcc8098798d22e5 (diff)
downloadaur-2f7bd15f20e357e6019095e48e4f54ee0a1974c4.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 e4d1ab785bfd..3ed0b8b6bc9f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -93,41 +93,35 @@ cd sympa/
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
cp -a ./html/getvcard.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
-
+
elif [ "sympa" = "argonaut" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
-
- elif [ "sympa" = "fax" ] ; then
- mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
- cp -a ./html/getfax.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
-
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
+ cp -a ./html/getFAIstatus.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
+
elif [ "sympa" = "fusioninventory" ] ; then
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/
mkdir -p ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
cp -a ./html/collect.php ${pkgdir}/usr/share/webapps/fusiondirectory/html/
- cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
+ cp -a ./html/themes/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/
cp -a ./html/plugins/inventory.css ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
- elif [ "sympa" = "ejbca" ] ; then
+ elif [ "sympa" = "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/sympa/
- html_line="$(echo ${cur_html} | sed "s#./html/##")"
- cp -a ./html/${html_line} ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
- done
+ cp -a ./html/images/ ${pkgdir}/usr/share/webapps/fusiondirectory/html/plugins/sympa/
+ 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