mirror of
https://github.com/limosek/zaf.git
synced 2025-11-01 01:57:38 +01:00
Added debian package creation
This commit is contained in:
16
files/postinst.template
Normal file
16
files/postinst.template
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
configure)
|
||||
if [ -f /usr/lib/zaf/install.sh ] && [ -f /etc/zaf.conf ] && [ -f /usr/lib/zaf/zaf.lib.sh ] && which zaf >/dev/null; then
|
||||
. /etc/zaf.conf
|
||||
. /usr/lib/zaf/zaf.lib.sh
|
||||
. /usr/lib/zaf/os.lib.sh
|
||||
. /usr/lib/zaf/ctrl.lib.sh
|
||||
cd /usr/lib/zaf && /usr/lib/zaf/install.sh reconf
|
||||
zaf reinstall {PLUGINS}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
10
files/preinst.template
Normal file
10
files/preinst.template
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
install)
|
||||
if [ -d /usr/lib/zaf ]; then
|
||||
echo "Do zaf self-remove first! Cannot mix packaged and non-packaged version!"
|
||||
exit 2
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
7
files/prerm.template
Normal file
7
files/prerm.template
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
remove)
|
||||
rm -rf /usr/lib/zaf/plugins /usr/lib/zaf/repo
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user