4
# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
5
# Created On : Fri Nov 14 12:12:04 2003
6
# Created On Node : glaurung.green-gryphon.com
7
# Last Modified By : Manoj Srivastava
8
# Last Modified On : Sat Dec 31 14:07:41 2005
9
# Last Machine Used: glaurung.internal.golden-gryphon.com
11
# Status : Unknown, Use with caution!
15
# arch-tag: d6a3672d-acb3-4f6c-9984-bad17d8ce0aa
17
# This program is free software; you can redistribute it and/or modify
18
# it under the terms of the GNU General Public License as published by
19
# the Free Software Foundation; either version 2 of the License, or
20
# (at your option) any later version.
22
# This program is distributed in the hope that it will be useful,
23
# but WITHOUT ANY WARRANTY; without even the implied warranty of
24
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
# GNU General Public License for more details.
27
# You should have received a copy of the GNU General Public License
28
# along with this program; if not, write to the Free Software
29
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34
# Abort if any command returns an error value
37
package_name=policycoreutils
39
if [ -z "$package_name" ]; then
40
print >&2 "Internal Error. Please report a bug."
44
# This script is called before this version of this package is installed.
45
# When this script is called, the package's files have not been unpacked
50
# About to install this package.
53
# Add a diversion. This is one of the few things which may be done
54
# before installing any files from the package.
55
##: dpkg-divert --package foo --add --rename \
56
##: --divert /usr/bin/other.real /usr/bin/other
58
# There are two sub-cases:
59
if test "${2+set}" = set; then
60
# The configuration files from version $2 of this package are
61
# still on the system.
65
# There is no existing configuration; install from scratch.
70
# About to upgrade this package from version $2 TO THIS VERSION.
71
# "prerm upgrade" has already been called for the old version of
74
if [ ! -f /usr/sbin/setfiles.old ] && [ -f /usr/sbin/setfiles ]; then
75
mv /usr/sbin/setfiles /usr/sbin/setfiles.old
80
# Back out of an attempt to upgrade this package FROM THIS VERSION to
81
# version $2. Undo the effects of "postrm upgrade $2".
85
*) echo "$0: didn't understand being called with \`$1'" 1>&2