wok-next rev 20705
busybox-slish: improve packaging
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 26 15:26:30 2018 +0300 (2018-05-26) |
parents | 96da5822e8d2 |
children | 0e09a7ca6ab6 |
files | busybox-slish/receipt |
line diff
1.1 --- a/busybox-slish/receipt Fri May 25 17:29:33 2018 +0300 1.2 +++ b/busybox-slish/receipt Sat May 26 15:26:30 2018 +0300 1.3 @@ -1,10 +1,10 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="busybox-slish" 1.8 VERSION="1.23.2" 1.9 SOURCE="busybox" 1.10 CATEGORY="base-system" 1.11 -SHORT_DESC="Busybox for SlisH basic chroot." 1.12 +SHORT_DESC="Busybox for SlisH basic chroot" 1.13 MAINTAINER="pankso@slitaz.org" 1.14 LICENSE="GPL2" 1.15 WEB_SITE="http://www.busybox.net/" 1.16 @@ -12,24 +12,19 @@ 1.17 TARBALL="$SOURCE-$VERSION.tar.bz2" 1.18 WGET_URL="http://www.busybox.net/downloads/$TARBALL" 1.19 1.20 -# Rules to configure and make the package. 1.21 -# 1.22 # I don't want to compile all BB packages just for a basic build! 1.23 # 1.24 compile_rules() { 1.25 cp $stuff/busybox-${VERSION%.*}.config .config 1.26 make oldconfig && 1.27 - make && make install || return 1 1.28 + make && 1.29 + make install || return 1 1.30 + 1.31 + install -Dm0600 $stuff/busybox.conf $install/etc/busybox.conf 1.32 + cp -r $src/_install/* $install 1.33 + chmod 4755 $install/bin/busybox 1.34 } 1.35 1.36 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 -genpkg_rules() 1.38 -{ 1.39 - mkdir -p ${fs}/etc 1.40 - cp -a ${src}/_install/* ${fs} 1.41 - cp ${stuff}/busybox.conf ${fs}/etc/busybox.conf 1.42 - # Set permissions 1.43 - chown -R 0.0 ${fs}/etc 1.44 - chmod 0600 ${fs}/etc/busybox.conf 1.45 - chmod 4755 ${fs}/bin/busybox 1.46 +genpkg_rules() { 1.47 + copy @std 1.48 }