wok diff busybox-pam/receipt @ rev 2195
Add busybox-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 09 12:28:12 2009 +0000 (2009-02-09) |
parents | |
children | 960777cebed6 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox-pam/receipt Mon Feb 09 12:28:12 2009 +0000 1.3 @@ -0,0 +1,86 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="busybox-pam" 1.7 +VERSION="1.12.0" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +DEPENDS="slitaz-base-files glibc-base" 1.12 +BUILD_DEPENDS="bzip2" 1.13 +SOURCE="busybox" 1.14 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 +WEB_SITE="http://www.busybox.net/" 1.16 +WGET_URL="http://www.busybox.net/downloads/$TARBALL" 1.17 +CONFIG_FILES="/etc/dnsd.conf /etc/inetd.conf /etc/udhcpd.conf /etc/resolv.conf" 1.18 +PROVIDE="busybox:pam" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src 1.24 + while read file; do 1.25 + [ -f done.$file ] && continue 1.26 + echo "Apply $file..." 1.27 + patch -p1 < $WOK/busybox/stuff/$SOURCE-$VERSION-$file || return 1 1.28 + touch done.$file 1.29 + done <<EOT 1.30 +vcsa2txt.u 1.31 +dhcpc.u 1.32 +cpio-mkdir.u 1.33 +tar.u 1.34 +stat.u 1.35 +zmodules.u 1.36 +modinfo.u 1.37 +modprobe.u 1.38 +paths.u 1.39 +EOT 1.40 + cp $WOK/busybox/stuff/$SOURCE-$VERSION.config .config 1.41 + sed -i 's/# CONFIG_PAM is not set/CONFIG_PAM=y/' .config 1.42 + make oldconfig 1.43 + make && make install 1.44 + echo "Chmod 4755 on busybox binary..." 1.45 + chmod 4755 _install/bin/busybox 1.46 +} 1.47 + 1.48 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 +genpkg_rules() 1.50 +{ 1.51 + cp -a $src/_install/* $fs 1.52 + mkdir -p $fs/etc/init.d 1.53 + # Busybox config files. 1.54 + cd $WOK/busybox 1.55 + cp stuff/busybox.conf $fs/etc 1.56 + chmod 600 $fs/etc/busybox.conf 1.57 + cp stuff/dnsd.conf $fs/etc 1.58 + cp stuff/udhcpd.conf $fs/etc 1.59 + touch $fs/etc/resolv.conf 1.60 + cp stuff/inetd.conf $fs/etc 1.61 + cp stuff/dnsd $fs/etc/init.d 1.62 + cp stuff/udhcpd $fs/etc/init.d 1.63 + cp stuff/inetd $fs/etc/init.d 1.64 + cp stuff/zcip $fs/etc/init.d 1.65 + cp stuff/init $fs 1.66 + rm $fs/linuxrc 1.67 + mkdir -p $fs/etc/modprobe.d 1.68 + # Udhcpc stuff. 1.69 + mkdir -p $fs/usr/share/udhcpc 1.70 + cp stuff/udhcp.script \ 1.71 + $fs/usr/share/udhcpc/default.script 1.72 + chmod +x $fs/usr/share/udhcpc/default.script 1.73 + # ZeroConf stuff. 1.74 + cp stuff/zcip.script $fs/etc 1.75 +} 1.76 + 1.77 +# Force glibc-2.7 reinstall if 2.3.6 still in use. 1.78 +pre_install() 1.79 +{ 1.80 + cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install 1.81 + if grep -q 'VERSION="2.3.6"' /var/lib/tazpkg/installed/glibc-base/receipt; then 1.82 + tazpkg get-install glibc-base --forced 1.83 + fi 1.84 +} 1.85 + 1.86 +post_install() 1.87 +{ 1.88 + mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf 1.89 +}