File: pre_install_extras

package info (click to toggle)
piuparts 1.6.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 72,532 kB
  • sloc: python: 8,240; sh: 4,367; makefile: 171
file content (103 lines) | stat: -rwxr-xr-x 2,479 bytes parent folder | download | duplicates (6)
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
94
95
96
97
98
99
100
101
102
103
#!/bin/sh
set -e

log_debug() {
	echo "Debug: piuparts extra for package $PIUPARTS_OBJECTS"
}

#
# these extras are only for the initial package installation
#
if [ "$PIUPARTS_PHASE" != "install" ]; then
	exit 0
fi

case ${PIUPARTS_OBJECTS%%=*} in
	*dkms|\
	ktap|\
	zfs-*|\
	zfsutils-linux)
		# Install kernel headers, so that dkms tries to build a module
		HEADERS=linux-headers
		FLAVOR=unknown
		FLAVOR_i386=686-pae
		case $PIUPARTS_DISTRIBUTION in
			lenny*|squeeze*)
				HEADERS=linux-headers-2.6
				FLAVOR_i386=686
				;;
		esac
		case $(dpkg --print-architecture) in
			amd64)
				FLAVOR=amd64
				;;
			i386)
				FLAVOR=$FLAVOR_i386
				;;
		esac
		case ${PIUPARTS_OBJECTS} in
			*=None)
				# do not test discontinued packages - they won't support newer kernels
				;;
			*)
				log_debug
				apt-get -y install $HEADERS-$FLAVOR
				;;
		esac
		;;
	firmware-ipw2x00)
		log_debug
		#echo "firmware-ipw2x00 firmware-ipw2x00/license/accepted boolean true" | debconf-set-selections
		;;
	firmware-ivtv)
		log_debug
		#echo "firmware-ivtv firmware-ivtv/license/accepted boolean true" | debconf-set-selections
		;;
	fonts-mathematica)
		log_debug
		#echo "fonts-mathematica mathematica-fonts/accept_license boolean true" | debconf-set-selections
		;;
	mathematica-fonts|ttf-mathematica4.1)
		log_debug
		apt-get -y install wget
		#echo "mathematica-fonts mathematica-fonts/accept_license boolean true" | debconf-set-selections
		if [ "$PIUPARTS_DISTRIBUTION" = "lenny" ]; then
			log_debug
			#echo "ttf-mathematica4.1 ttf-mathematica4.1/accept_license boolean true" | debconf-set-selections
		fi
		;;
	steam|steam-devices|steamcmd)
		log_debug
		#echo "steam steam/question select I AGREE" | debconf-set-selections
		;;
	zekr-quran-translations-en)
		log_debug
		#echo "zekr-quran-translations-en quran-translations-en/accepted-Zekr-Quran-Trans boolean true" | debconf-set-selections
		;;
esac

if	[ "$PIUPARTS_DISTRIBUTION" = "squeeze" ] || \
	[ "$PIUPARTS_DISTRIBUTION" = "lenny" ]; then

	case ${PIUPARTS_OBJECTS%%=*} in
		*sun-java5-*|*sun-java6-*)
			log_debug
			#echo "sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true" | debconf-set-selections
			;;
		jajuk|\
		liblucene2-java|\
		libworldwind-java|\
		omegat|\
		robocode|\
		solr-common|\
		solr-tomcat5.5|\
		weirdx|\
		weka|\
		worldwind)
			# these packages depend on sun-java* only
			log_debug
			#echo "sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true" | debconf-set-selections
			;;
	esac

fi