wok-6.x annotate ssfs-busybox/receipt @ rev 10864
Add ssfs packages with ssfs-busybox used in the minimal chroot
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jun 18 23:41:34 2011 +0200 (2011-06-18) |
parents | |
children | 021cd71625d1 |
rev | line source |
---|---|
pankso@10864 | 1 # SliTaz package receipt. |
pankso@10864 | 2 |
pankso@10864 | 3 PACKAGE="ssfs-busybox" |
pankso@10864 | 4 VERSION="1.18.4" |
pankso@10864 | 5 CATEGORY="base-system" |
pankso@10864 | 6 SHORT_DESC="Busybox for Ssfs virtual disk minimal chroot." |
pankso@10864 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@10864 | 8 SOURCE="busybox" |
pankso@10864 | 9 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@10864 | 10 WEB_SITE="http://www.busybox.net/" |
pankso@10864 | 11 WGET_URL="http://www.busybox.net/downloads/$TARBALL" |
pankso@10864 | 12 |
pankso@10864 | 13 # |
pankso@10864 | 14 # NOTE: We Install files in Ssfs data directory to always have have ready to |
pankso@10864 | 15 # create chroot on the server and provide an easy way to update the vdisk. |
pankso@10864 | 16 # We dont do a static build, we need some shared lib in the chroot anyway. |
pankso@10864 | 17 # Busybox is configured to not use /usr and with a minimal set of applets. |
pankso@10864 | 18 # |
pankso@10864 | 19 |
pankso@10864 | 20 # Rules to configure and make the package. |
pankso@10864 | 21 compile_rules() |
pankso@10864 | 22 { |
pankso@10864 | 23 rootfs=$DESTDIR/usr/share/ssfs/rootfs |
pankso@10864 | 24 cd $src && cp $stuff/*.config .config |
pankso@10864 | 25 make oldconfig && make busybox && |
pankso@10864 | 26 make CONFIG_PREFIX=$rootfs install |
pankso@10864 | 27 } |
pankso@10864 | 28 |
pankso@10864 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10864 | 30 genpkg_rules() |
pankso@10864 | 31 { |
pankso@10864 | 32 rootfs=$fs/usr/share/ssfs/rootfs |
pankso@10864 | 33 mkdir -p $rootfs/etc |
pankso@10864 | 34 cp -a $install/* $fs |
pankso@10864 | 35 cp $stuff/busybox.conf $rootfs/etc |
pankso@10864 | 36 chown -R 0.0 $rootfs/etc |
pankso@10864 | 37 chmod 0600 $rootfs/etc/busybox.conf |
pankso@10864 | 38 chmod 4755 $rootfs/bin/busybox |
pankso@10864 | 39 } |