File: post_setup_fake-essential

package info (click to toggle)
piuparts 0.62
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 1,692 kB
  • sloc: python: 6,823; sh: 2,194; makefile: 126
file content (40 lines) | stat: -rwxr-xr-x 885 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
set -e

# If dbconfig-common was already purged, packages that have used
# dbconfig-common in postinst will leave configuration files in
# /etc/dbconfig-common
DBCONFIG="dbconfig-common"

# For purging configuration from /var/lib/systemd/
INITSYSTEMHELPERS="init-system-helpers"

case ${PIUPARTS_DISTRIBUTION} in
	lenny*|squeeze*|wheezy*)
		# package does not exist
		INITSYSTEMHELPERS=""
		;;
esac

# openssl may be used during purge to compute the hash for a
# certificate, otherwise files in /etc/ssl/certs can't be removed.
OPENSSL=""


case ${PIUPARTS_OBJECTS%%=*} in
	dpkg)
		# skip while creating the tarball
		exit 0
		;;
	dbconfig-common|init-system-helpers)
		# allow testing of the fake essential packages
		exit 0
		;;
	stone)
		OPENSSL="openssl"
		;;
esac


echo "*** Adding fake essential packages ***"
apt-get install -yf $DBCONFIG $INITSYSTEMHELPERS $OPENSSL