wok-stable view busybox-pam/receipt @ rev 7274
busybox-pam must be sync'ed with busybox
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 15 13:54:23 2010 +0100 (2010-11-15) |
parents | 9ef6ce9ac6cc |
children | bb21003c96ca |
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox-pam"
4 VERSION="1.17.3"
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 WANTED="busybox"
10 WEB_SITE="http://www.busybox.net/"
11 CONFIG_FILES="/etc/dnsd.conf /etc/inetd.conf /etc/udhcpd.conf /etc/resolv.conf \
12 /etc/pam.d"
13 PROVIDE="busybox:pam"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 cp -a $WOK/$WANTED/taz/$WANTED-$VERSION/fs/* $fs
19 cp -a $src/busybox-pam $fs/bin/busybox
20 cp -a stuff/* $fs
21 }
23 # Force glibc-2.7 reinstall if 2.3.6 still in use.
24 pre_install()
25 {
26 local i
27 cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
28 if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
29 tazpkg get-install glibc-base --forced
30 fi
31 answer=""
32 for i in $(cat $1$INSTALLED/$PACKAGE/files.list); do
33 [ -f $1$i ] || continue
34 case "$i" in
35 /bin/busybox) continue ;;
36 *bin/*) ;;
37 *) continue ;;
38 esac
39 if [ -z "$answer" ]; then
40 echo -n "Keep installed GNU utilities ? "
41 read -t 30 answer # by default: keep
42 case "$answer" in
43 n*|N*) break;;
44 *) answer="Y";;
45 esac
46 fi
47 cp -a $1$i $1$i-busybox-install
48 done
49 }
51 post_install()
52 {
53 local i
54 [ -f /etc/resolv.conf-busybox-install ] &&
55 mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
56 while read i ; do
57 [ -f $1$i-busybox-install ] || continue
58 mv $1$i-busybox-install $1$i
59 done < $1$INSTALLED/$PACKAGE/files.list
60 chmod 4755 $1/bin/busybox
61 sed -i "s@vcsa2txt.*\$@busybox conspy -d | sed 's/ *\$//;/^\$/d;/^Processi\\\\|^.witchi/,\$!d' > /var/log/boot.log@" $1/etc/init.d/rcS
62 }