wok view slitaz-base-files/receipt @ rev 12700

Fluxbox: dont have transparency by default
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 03 11:43:51 2012 +0200 (2012-05-03)
parents e1f9ca63ce54
children b981e20f2719
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-base-files"
4 VERSION="5.2"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux tree and the necessary files for the base system."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL"
11 CONFIG_FILES="
12 /etc/adduser.conf
13 /etc/passwd
14 /etc/fstab
15 /etc/issue
16 /etc/hosts
17 /etc/host.conf
18 /etc/hostname
19 /etc/group
20 /etc/gshadow
21 /etc/shadow
22 /etc/daemons.conf
23 /etc/nsswitch.conf
24 /etc/networks
25 /etc/profile
26 /etc/securetty
27 /etc/services
28 /etc/shells"
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 cd $src
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p \
41 $fs/bin \
42 $fs/dev \
43 $fs/home \
44 $fs/media/cdrom \
45 $fs/media/flash \
46 $fs/media/usbdisk \
47 $fs/mnt \
48 $fs/proc \
49 $fs/root \
50 $fs/sbin \
51 $fs/sys \
52 $fs/tmp \
53 $fs/usr/bin \
54 $fs/usr/games \
55 $fs/usr/lib \
56 $fs/usr/local \
57 $fs/usr/sbin \
58 $fs/usr/share/doc \
59 $fs/var/cache \
60 $fs/var/games \
61 $fs/var/lib \
62 $fs/var/lock \
63 $fs/var/log/slitaz \
64 $fs/var/run \
65 $fs/var/spool \
66 $fs/var/tmp
68 # Copy all installed files and set permissions.
69 cp -a $install/* $fs
71 chown -R root.root $fs/*
72 chmod 1777 $fs/tmp
73 chmod 640 $fs/etc/shadow
74 chmod 640 $fs/etc/gshadow
75 chmod 0750 $fs/root
77 # Populate /dev with $fs/sbin/mktazdevs.sh.
78 $fs/sbin/mktazdevs.sh $fs/dev
80 # Creat /etc/mtab symlink.
81 cd $fs/etc
82 ln -s /proc/mounts mtab
84 # Fix httphelper link
85 cd $fs/usr/lib/slitaz
86 rm httphelper && ln -s httphelper.sh httphelper
87 }
89 # Pre and post install to backup all /etc/settings
90 #
91 pre_install()
92 {
93 local root
94 root=$1
95 echo "Creating backup of all files in /etc..."
96 cp -a $root/etc $root/tmp/etc.bak 2>/dev/null
97 }
99 post_install()
100 {
101 local root
102 root=$1
103 echo "Restoring files from /etc/etc.bak..."
104 cp -a $root/tmp/etc.bak/* $root/etc 2>/dev/null
105 rm -rf $root/tmp/etc.bak
107 # Reset permission.
108 chmod 640 $root/etc/shadow
109 chmod 640 $root/etc/gshadow
111 if ! grep -q audio $root/etc/group; then
112 chroot $root/ /bin/addgroup -g 20 audio
113 fi
114 }
116 pre_remove()
117 {
118 # We can not remove this package !
119 exit 1
120 }