wok rev 7277

busybox-pam: use busybox pre/post install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 15 15:26:25 2010 +0100 (2010-11-15)
parents da5c2026efa1
children 0b8166cf98e5
files busybox-pam/receipt
line diff
     1.1 --- a/busybox-pam/receipt	Mon Nov 15 15:15:09 2010 +0100
     1.2 +++ b/busybox-pam/receipt	Mon Nov 15 15:26:25 2010 +0100
     1.3 @@ -5,7 +5,7 @@
     1.4  CATEGORY="base-system"
     1.5  SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities."
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 -DEPENDS="slitaz-base-files glibc-base pam"
     1.8 +DEPENDS="busybox pam"
     1.9  WANTED="busybox"
    1.10  WEB_SITE="http://www.busybox.net/"
    1.11  CONFIG_FILES="/etc/dnsd.conf /etc/inetd.conf /etc/udhcpd.conf /etc/resolv.conf \
    1.12 @@ -15,48 +15,7 @@
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 -    cp -a $WOK/$WANTED/taz/$WANTED-$VERSION/fs/* $fs
    1.17 +    mkdir -p $fs/bin
    1.18      cp -a $src/busybox-pam $fs/bin/busybox
    1.19      cp -a stuff/* $fs
    1.20  }
    1.21 -
    1.22 -# Force glibc-2.7 reinstall if 2.3.6 still in use.
    1.23 -pre_install()
    1.24 -{
    1.25 -	local i
    1.26 -	cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
    1.27 -	if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then
    1.28 -		tazpkg get-install glibc-base --forced
    1.29 -	fi
    1.30 -	answer=""
    1.31 -	for i in $(cat $1$INSTALLED/$PACKAGE/files.list); do
    1.32 -		[ -f $1$i ] || continue
    1.33 -		case "$i" in
    1.34 -		/bin/busybox) continue ;;
    1.35 -		*bin/*) ;;
    1.36 -		*) continue ;;
    1.37 -		esac
    1.38 -		if [ -z "$answer" ]; then
    1.39 -			echo -n "Keep installed GNU utilities ? "
    1.40 -			read -t 30 answer	# by default: keep
    1.41 -			case "$answer" in
    1.42 -			n*|N*) break;;
    1.43 -			*) answer="Y";;
    1.44 -			esac
    1.45 -		fi
    1.46 -		cp -a $1$i $1$i-busybox-install
    1.47 -	done
    1.48 -}
    1.49 -
    1.50 -post_install()
    1.51 -{
    1.52 -	local i
    1.53 -	[ -f /etc/resolv.conf-busybox-install ] &&
    1.54 -	mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
    1.55 -	while read i ; do
    1.56 -		[ -f $1$i-busybox-install ] || continue
    1.57 -		mv $1$i-busybox-install $1$i
    1.58 -	done < $1$INSTALLED/$PACKAGE/files.list
    1.59 -	chmod 4755 $1/bin/busybox
    1.60 -	sed -i "s@vcsa2txt.*\$@busybox conspy -d | sed 's/ *\$//;/^\$/d;/^Processi\\\\|^.witchi/,\$!d' > /var/log/boot.log@" $1/etc/init.d/rcS
    1.61 -}