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

cairo: back to 1.8.4 or pango/gtk+ will not build
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 14 21:36:12 2009 +0100 (2009-01-14)
parents bd6010223726
children 5bf895d7d1ff
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-base-files"
4 VERSION="2.4"
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 DEPENDS="busybox"
12 CONFIG_FILES="
13 /etc/adduser.conf
14 /etc/passwd
15 /etc/fstab
16 /etc/issue
17 /etc/hosts
18 /etc/host.conf
19 /etc/hostname
20 /etc/group
21 /etc/gshadow
22 /etc/shadow
23 /etc/daemons.conf
24 /etc/nsswitch.conf
25 /etc/networks
26 /etc/profile
27 /etc/securetty
28 /etc/services
29 /etc/shells"
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p \
35 $fs/bin \
36 $fs/dev \
37 $fs/home \
38 $fs/media/cdrom \
39 $fs/media/flash \
40 $fs/media/usbdisk \
41 $fs/mnt \
42 $fs/proc \
43 $fs/root \
44 $fs/sbin \
45 $fs/sys \
46 $fs/tmp \
47 $fs/usr/bin \
48 $fs/usr/games \
49 $fs/usr/lib \
50 $fs/usr/local \
51 $fs/usr/sbin \
52 $fs/usr/share/doc \
53 $fs/var/cache \
54 $fs/var/games \
55 $fs/var/lib \
56 $fs/var/lock \
57 $fs/var/log \
58 $fs/var/run \
59 $fs/var/spool \
60 $fs/var/tmp
62 # Copy all rootfs from the stuff and set permissions.
63 cp -a $src/rootfs/* $fs
65 chown -R root.root $fs/*
66 chmod 1777 $fs/tmp
67 chmod 640 $fs/etc/shadow
68 chmod 640 $fs/etc/gshadow
69 chmod 0750 $fs/root
71 # Populate /dev with /$fs/sbin/mktazdevs.sh.
72 ./$fs/sbin/mktazdevs.sh $fs/dev
74 # Creat /etc/mtab symlink.
75 cd $fs/etc
76 ln -s /proc/mounts mtab
77 }
79 # Pre and post install to backup all /etc/settings
80 #
81 pre_install()
82 {
83 local root
84 root=$1
85 echo "Creating backup of all files in /etc..."
86 cp -a $root/etc $root/tmp/etc.bak 2>/dev/null
87 }
89 post_install()
90 {
91 local root
92 root=$1
93 echo "Restoring files from /etc/etc.bak..."
94 cp -a $root/tmp/etc.bak/* $root/etc 2>/dev/null
95 rm -rf $root/tmp/etc.bak
97 # Reset permission.
98 chmod 640 $root/etc/shadow
99 chmod 640 $root/etc/gshadow
101 if ! grep -q audio $root/etc/group; then
102 if [ -n "$root" ]; then
103 cp /etc/group $root/etc/group
104 else
105 addgroup -g 20 audio
106 fi
107 fi
109 # daemons.conf (tftp + dnsd)
110 if ! grep -q ^TFTPD_OPTIONS $root/etc/daemons.conf; then
111 echo '# Tftp daemon options.' >> $root/etc/daemons.conf
112 echo 'TFTPD_OPTIONS="-r /boot"' >> $root/etc/daemons.conf
113 echo '' >> $root/etc/daemons.conf
114 fi
115 if ! grep -q ^DNSD_OPTIONS $root/etc/daemons.conf; then
116 echo '# Domain name server options.' >> $root/etc/daemons.conf
117 echo 'DNSD_OPTIONS="-d"' >> $root/etc/daemons.conf
118 echo '' >> $root/etc/daemons.conf
119 fi
120 }
122 # We need this package on build host to install it in target directory
123 SELF_INSTALL=1