wok view slitaz-base-files/receipt @ rev 12880
Remove slitaz-fbsplash (broken)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 25 19:46:33 2012 +0200 (2012-05-25) |
parents | 597acfcb1dce |
children | 949e9a8f1707 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-base-files"
4 VERSION="5.2.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 HOST_ARCH="i486 arm"
13 DEPENDS="gettext-base"
15 CONFIG_FILES="
16 /etc/adduser.conf
17 /etc/passwd
18 /etc/fstab
19 /etc/issue
20 /etc/hosts
21 /etc/host.conf
22 /etc/hostname
23 /etc/group
24 /etc/gshadow
25 /etc/shadow
26 /etc/daemons.conf
27 /etc/nsswitch.conf
28 /etc/networks
29 /etc/profile
30 /etc/securetty
31 /etc/services
32 /etc/shells"
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 cd $src
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p \
45 $fs/bin \
46 $fs/dev \
47 $fs/home \
48 $fs/media/cdrom \
49 $fs/media/flash \
50 $fs/media/usbdisk \
51 $fs/mnt \
52 $fs/proc \
53 $fs/root \
54 $fs/sbin \
55 $fs/sys \
56 $fs/tmp \
57 $fs/usr/bin \
58 $fs/usr/games \
59 $fs/usr/lib \
60 $fs/usr/local \
61 $fs/usr/sbin \
62 $fs/usr/share/doc \
63 $fs/var/cache \
64 $fs/var/games \
65 $fs/var/lib \
66 $fs/var/lock \
67 $fs/var/log/slitaz \
68 $fs/var/run \
69 $fs/var/spool \
70 $fs/var/tmp
72 # Copy all installed files and set permissions.
73 cp -a $install/* $fs
75 chown -R root.root $fs/*
76 chmod 1777 $fs/tmp
77 chmod 640 $fs/etc/shadow
78 chmod 640 $fs/etc/gshadow
79 chmod 0750 $fs/root
81 # Populate /dev with $fs/sbin/mktazdevs.sh.
82 $fs/sbin/mktazdevs.sh $fs/dev
84 # Creat /etc/mtab symlink.
85 cd $fs/etc
86 ln -s /proc/mounts mtab
88 # Fix httphelper link
89 cd $fs/usr/lib/slitaz
90 ln -s httphelper.sh httphelper
91 }
93 # Pre and post install to backup all /etc/settings
94 #
95 pre_install()
96 {
97 local root
98 root=$1
99 echo "Creating backup of all files in /etc..."
100 cp -a $root/etc $root/tmp/etc.bak 2>/dev/null
101 }
103 post_install()
104 {
105 local root
106 root=$1
107 echo "Restoring files from /etc/etc.bak..."
108 cp -a $root/tmp/etc.bak/* $root/etc 2>/dev/null
109 rm -rf $root/tmp/etc.bak
111 # Reset permission.
112 chmod 640 $root/etc/shadow
113 chmod 640 $root/etc/gshadow
115 if ! grep -q audio $root/etc/group; then
116 chroot $root/ /bin/addgroup -g 20 audio
117 fi
118 }
120 pre_remove()
121 {
122 # We can not remove this package !
123 exit 1
124 }