wok-current 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 | 1428395b4afe |
children | 960777cebed6 |
files | busybox-pam/receipt busybox/receipt |
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 +}
2.1 --- a/busybox/receipt Mon Feb 09 11:48:37 2009 +0000 2.2 +++ b/busybox/receipt Mon Feb 09 12:28:12 2009 +0000 2.3 @@ -19,18 +19,18 @@ 2.4 while read file; do 2.5 [ -f done.$file ] && continue 2.6 echo "Apply $file..." 2.7 - patch -p1 < ../stuff/$file || return 1 2.8 + patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1 2.9 touch done.$file 2.10 done <<EOT 2.11 -$PACKAGE-$VERSION-vcsa2txt.u 2.12 -$PACKAGE-$VERSION-dhcpc.u 2.13 -$PACKAGE-$VERSION-cpio-mkdir.u 2.14 -$PACKAGE-$VERSION-tar.u 2.15 -$PACKAGE-$VERSION-stat.u 2.16 -$PACKAGE-$VERSION-zmodules.u 2.17 -$PACKAGE-$VERSION-modinfo.u 2.18 -$PACKAGE-$VERSION-modprobe.u 2.19 -$PACKAGE-$VERSION-paths.u 2.20 +vcsa2txt.u 2.21 +dhcpc.u 2.22 +cpio-mkdir.u 2.23 +tar.u 2.24 +stat.u 2.25 +zmodules.u 2.26 +modinfo.u 2.27 +modprobe.u 2.28 +paths.u 2.29 EOT 2.30 cp ../stuff/$PACKAGE-$VERSION.config .config 2.31 make oldconfig 2.32 @@ -57,7 +57,6 @@ 2.33 cp stuff/zcip $fs/etc/init.d 2.34 cp stuff/init $fs 2.35 rm $fs/linuxrc 2.36 - cd $WOK/$PACKAGE 2.37 mkdir -p $fs/etc/modprobe.d 2.38 # Udhcpc stuff. 2.39 mkdir -p $fs/usr/share/udhcpc