wok view busybox-pam/receipt @ rev 3615

get-google-chrome: update DEPENDS
author Liu Peng <rocky@slitaz.org>
date Tue Jun 30 05:22:50 2009 +0000 (2009-06-30)
parents d1675d177124
children a3998aedfe2b
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox-pam"
4 VERSION="1.12.0"
5 CATEGORY="base-system"
6 SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="slitaz-base-files glibc-base pam"
9 BUILD_DEPENDS="bzip2 pam pam-dev"
10 SOURCE="busybox"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.busybox.net/"
13 WGET_URL="http://www.busybox.net/downloads/$TARBALL"
14 CONFIG_FILES="/etc/dnsd.conf /etc/inetd.conf /etc/udhcpd.conf /etc/resolv.conf"
15 PROVIDE="busybox:pam"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 while read file; do
22 [ -f done.$file ] && continue
23 echo "Apply $file..."
24 patch -p1 < $WOK/busybox/stuff/$SOURCE-$VERSION-$file || return 1
25 touch done.$file
26 done <<EOT
27 vcsa2txt.u
28 dhcpc.u
29 cpio-mkdir.u
30 tar.u
31 stat.u
32 zmodules.u
33 modinfo.u
34 modprobe.u
35 paths.u
36 mkswap.u
37 install.u
38 basename.u
39 unlzma.u
40 replay.u
41 ris.u
42 dpkg_deb.u
43 ionice.u
44 EOT
45 cp $WOK/busybox/stuff/$SOURCE-$VERSION.config .config
46 sed -i 's/# CONFIG_PAM is not set/CONFIG_PAM=y/' .config
47 make oldconfig
48 make && make install
49 echo "Chmod 4755 on busybox binary..."
50 chmod 4755 _install/bin/busybox
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cp -a $src/_install/* $fs
57 rm -f $fs/sbin/depmod $fs/usr/bin/ar
58 cp -a stuff/etc $fs
59 mkdir -p $fs/etc/init.d
60 # Busybox config files.
61 cd $WOK/busybox
62 fs=$WOK/$PACKAGE/taz/$PACKAGE-$VERSION/fs
63 cp stuff/busybox.conf $fs/etc
64 chmod 600 $fs/etc/busybox.conf
65 cp stuff/dnsd.conf $fs/etc
66 cp stuff/udhcpd.conf $fs/etc
67 touch $fs/etc/resolv.conf
68 cp stuff/inetd.conf $fs/etc
69 cp stuff/dnsd $fs/etc/init.d
70 cp stuff/udhcpd $fs/etc/init.d
71 cp stuff/inetd $fs/etc/init.d
72 cp stuff/zcip $fs/etc/init.d
73 cp stuff/init $fs
74 rm $fs/linuxrc
75 mkdir -p $fs/etc/modprobe.d
76 # Udhcpc stuff.
77 mkdir -p $fs/usr/share/udhcpc
78 cp stuff/udhcp.script \
79 $fs/usr/share/udhcpc/default.script
80 chmod +x $fs/usr/share/udhcpc/default.script
81 # ZeroConf stuff.
82 cp stuff/zcip.script $fs/etc
83 # .desktop stuff
84 mkdir -p $fs/usr/share
85 cp -a stuff/applications $fs/usr/share
86 }
88 # Force glibc-2.7 reinstall if 2.3.6 still in use.
89 pre_install()
90 {
91 cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
92 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
93 tazpkg get-install glibc-base --forced
94 fi
95 }
97 post_install()
98 {
99 mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
100 }