~ubuntu-branches/debian/sid/policycoreutils/sid

« back to all changes in this revision

Viewing changes to debian/policycoreutils.preinst

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2012-03-20 19:50:46 UTC
  • Revision ID: package-import@ubuntu.com-20120320195046-e0u3p8oxbk1a1qcg
Tags: 2.1.10-5
* Team upload.
* Switch to dh sequence and debhelper 9
* Merge my missing patches
* d/p/fix-ftbfs-hardening-flags.patch: Fix FTBFS with hardening flags
* d/policycoreutils.lintian-overrides: Drop non-standard-toplevel-dir selinux/
* debian/patches/0006-default-config.patch: Properly disable sandbox by
  default
* Rewrite maintainer scripts to use debhelper generated stanza.
  (Should closes: #660345)
* debian/control: Update Vcs-* fields
* Add debian/gbp.conf file
* debian/control:
  - Add Pre-Depends: ${misc:Pre-Depends} field
  - Make policycoreutils arch:linux-any
  - Put under the Debian SELinux team maintenance
  - Bump python-setools dependency to >= 3.3.7-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
#                               -*- Mode: Sh -*- 
3
 
# preinst --- 
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
10
 
# Update Count     : 6
11
 
# Status           : Unknown, Use with caution!
12
 
# HISTORY          : 
13
 
# Description      : 
14
 
15
 
# arch-tag: d6a3672d-acb3-4f6c-9984-bad17d8ce0aa
16
 
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.
21
 
#
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.
26
 
#
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
30
 
#
31
 
32
 
 
33
 
 
34
 
# Abort if any command returns an error value
35
 
set -e
36
 
 
37
 
package_name=policycoreutils
38
 
 
39
 
if [ -z "$package_name" ]; then
40
 
    print >&2 "Internal Error. Please report a bug."
41
 
    exit 1;
42
 
fi
43
 
 
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
46
 
# yet.
47
 
 
48
 
case "$1" in
49
 
  install)
50
 
    # About to install this package.
51
 
    :
52
 
 
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
57
 
 
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.
62
 
      :
63
 
 
64
 
    else
65
 
      # There is no existing configuration; install from scratch.
66
 
      :
67
 
 
68
 
    fi ;;
69
 
  upgrade)
70
 
    # About to upgrade this package from version $2 TO THIS VERSION.
71
 
    # "prerm upgrade" has already been called for the old version of
72
 
    # this package.
73
 
    :
74
 
    if [ ! -f /usr/sbin/setfiles.old ] && [ -f /usr/sbin/setfiles ]; then
75
 
        mv /usr/sbin/setfiles /usr/sbin/setfiles.old
76
 
    fi
77
 
 
78
 
    ;;
79
 
  abort-upgrade)
80
 
    # Back out of an attempt to upgrade this package FROM THIS VERSION to
81
 
    # version $2.  Undo the effects of "postrm upgrade $2".
82
 
    :
83
 
 
84
 
    ;;
85
 
  *) echo "$0: didn't understand being called with \`$1'" 1>&2
86
 
     exit 0;;
87
 
esac
88
 
 
89
 
exit 0