updated on Tue Jan 24 08:00:27 UTC 2012
[aur-mirror.git] / poldi / poldi.install
blob6067c4dd0e99e566d0a0bc3c4e7d1352e0cad62a
1 ## arg 1:  the new package version
2 pre_install() {
3   # do nothing here
4   /bin/true
7 infodir=/usr/share/info
10 ## arg 1:  the new package version
11 post_install() {
12   for file in ${filelist[@]}; do
13     install-info $infodir/$file $infodir/dir 2> /dev/null
14   done
16   echo "Poldi is now installed."
17   echo
18   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."
19   echo "The original templates will remain in /usr/share/poldi/etc/poldi."
21   mkdir -p /etc/poldi
22   cp -fR /usr/share/poldi/etc/poldi/* /etc/poldi/
24   echo
25   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."
28 ## arg 1:  the new package version
29 ## arg 2:  the old package version
30 pre_upgrade() {
31   # do nothing here
32   /bin/true
35 ## arg 1:  the new package version
36 ## arg 2:  the old package version
37 post_upgrade() {
38   for file in ${filelist[@]}; do
39     install-info $infodir/$file $infodir/dir 2> /dev/null
40   done
42   echo "Poldi has now been upgraded."
43   echo
44   echo "Warning: Upgrades to this package will not replace any configuration files in /etc/poldi, in order to prevent serious logging in problems."
45   echo "The updated sample configuration files are now in /usr/share/poldi/etc/poldi. Take a look and update your own files in /etc/poldi if necessary."
48 ## arg 1:  the old package version
49 pre_remove() {
50   for file in ${filelist[@]}; do
51     install-info --delete $infodir/$file $infodir/dir 2> /dev/null
52   done
55 ## arg 1:  the old package version
56 post_remove() {
57   # do nothing here
58   /bin/true
61 # vim:set ts=2 sw=2 et: