summarylogtreecommitdiffstats
path: root/poldi.install
diff options
context:
space:
mode:
authorshtrom2010-11-03 23:21:41 +0000
committerOlivier Mehani2015-07-01 13:20:12 +1000
commit97b4ef3805eedc5f8490363c6052433ac0a8d01b (patch)
tree2b0565f8dcfc5764e3bea4a366018193dea53681 /poldi.install
downloadaur-97b4ef3805eedc5f8490363c6052433ac0a8d01b.tar.gz
[poldi] Import 0.4-3 from AUR.
2015-07-01: Force add .SRCINFO to please aur4.
Diffstat (limited to 'poldi.install')
-rw-r--r--poldi.install61
1 files changed, 61 insertions, 0 deletions
diff --git a/poldi.install b/poldi.install
new file mode 100644
index 000000000000..262ad7c1bb79
--- /dev/null
+++ b/poldi.install
@@ -0,0 +1,61 @@
+## arg 1: the new package version
+pre_install() {
+ # do nothing here
+ /bin/true
+}
+
+infodir=/usr/share/info
+
+
+## arg 1: the new package version
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+
+ echo "Poldi is now installed."
+ echo
+ echo "Since this is the first time you've installed poldi, the template configuration files have been placed in /etc/poldi. Take a look and edit them to your needs."
+ echo "The original templates will remain in /usr/share/doc/poldi/example_etc/poldi."
+
+ mkdir -p /etc/poldi
+ cp -fR /usr/share/doc/poldi/example_etc/poldi/* /etc/poldi/
+
+ echo
+ echo "Future upgrades to this package will NOT overwrite your configuration files in /etc/poldi, since this might seriously break things. The latest version of the template configuration files can always be found in /usr/share/doc/poldi/example_etc/poldi."
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+pre_upgrade() {
+ # do nothing here
+ /bin/true
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+
+ echo "Poldi has now been upgraded."
+ echo
+ echo "Warning: Upgrades to this package will not replace any configuration files in /etc/poldi, in order to prevent serious logging in problems."
+ echo "The updated sample configuration files are now in /usr/share/doc/poldi/example_etc/poldi. Take a look and update your own files in /etc/poldi if necessary."
+}
+
+## arg 1: the old package version
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+## arg 1: the old package version
+post_remove() {
+ # do nothing here
+ /bin/true
+}
+
+# vim:set ts=2 sw=2 et: