summarylogtreecommitdiffstats
path: root/poldi.install
blob: 27a60c0e469bf60e76f57b737609009b20f7e195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## 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
  echo "*** Poldi is now installed."
  echo
  echo "A PAM configuration file has been installed as '/etc/pam.d/system-auth-poldi'."
  echo -e "To enable its use, you need to put 'auth include system-auth-poldi'\nin the relevant files (/etc/pam.d/system-auth is a good starting point)."
  echo
  echo "You can test the installation with 'pam-test-poldi SERVICE'."
  echo
}

## 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
}

## 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: