postinst is in lire 2:2.1.1-2.1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | #! /bin/sh -e
# postinst script for lire
#
# $Id: lire.postinst,v 1.8 2009/03/15 07:50:57 vanbaal Exp $
#
# see: dh_installdeb(1)
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see /usr/share/doc/packaging-manual/
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
case "$1" in
configure)
# ensure lire user can write to config dir, so that lr_config can be
# run successfully
chgrp lire /etc/lire
chmod g+w /etc/lire
# ensure correct perms are set for lire's home dir.
chown lire:lire /var/lib/lire /var/lib/lire/data
chmod 750 /var/lib/lire
chmod 2770 /var/lib/lire/data
# Even if your postinst does not involve debconf, you currently need to
# make sure it loads one of the debconf libraries. This will be changed
# in the future. (2009-03)
. /usr/share/debconf/confmodule
# Upgrading from oldstable or earlier is not supported.
# Check in which release these variables got obsoleted:
#
# lire/lire_user_not_lire : introduced < 2.0.2-1, present in 2.1-1
# lire/purge_user_files : introduced < 2.0.2-1, present in 2.1-1
# use_existing_user: introduced <= 2.0.2-3, present in 2.1-1
# use_existing_group: introduced <= 2.0.2-3, present in 2.1-1
# useexistinguser : introduced 20010410-2, removed < 2.0.2-3
# useexistinggroup : introduced 20010629.1-1, removed < 2.0.2-3
# lire/foundlocaluser : removed 2.0.2-2
# lire/config : removed 2.0.2-2
# userexists: removed 20010410-2
# usingexistinguser: : removed < 2.0.2-3
# usingexistinggroup: removed < 2.0.2-3
# wronguser: removed < 2.0.2-3
# wronggroup: removed < 2.0.2-3
# user: removed < 2.0.2-3
# group : introduced 20010629.1-1, removed < 2.0.2-3
# filesuser: removed < 2.0.2-3
# filesgroup: removed < 2.0.2-3
# leftgroup: removed < 2.0.2-3
# leftuser: removed < 2.0.2-3
# upgradingvariables: removed < 2.0.2-3
# upgrading_to_15: removed 2.0.2-2
# upgrating_to_20: removed 2.0.2-2
#
## for value in \
## lire_user_not_lire \
## upgrating_to_20
## do
## db_unregister "lire/$value" || true
## done
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
|