wok-6.x rev 12664

slitaz-base-files: use make install in receipt
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 01 10:49:18 2012 +0200 (2012-05-01)
parents 54b68abc52df
children a0dfed10b17b
files slitaz-base-files/receipt
line diff
     1.1 --- a/slitaz-base-files/receipt	Tue May 01 10:34:04 2012 +0200
     1.2 +++ b/slitaz-base-files/receipt	Tue May 01 10:49:18 2012 +0200
     1.3 @@ -27,6 +27,13 @@
     1.4  /etc/services
     1.5  /etc/shells"
     1.6  
     1.7 +# Rules to configure and make the package.
     1.8 +compile_rules()
     1.9 +{
    1.10 +	cd $src
    1.11 +	make DESTDIR=$DESTDIR install
    1.12 +}
    1.13 +
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {
    1.17 @@ -53,13 +60,13 @@
    1.18  		$fs/var/games \
    1.19  		$fs/var/lib \
    1.20  		$fs/var/lock \
    1.21 -		$fs/var/log \
    1.22 +		$fs/var/log/slitaz \
    1.23  		$fs/var/run \
    1.24  		$fs/var/spool \
    1.25  		$fs/var/tmp
    1.26  
    1.27 -	# Copy all rootfs from the stuff and set permissions.
    1.28 -	cp -a $src/rootfs/* $fs
    1.29 +	# Copy all installed files and set permissions.
    1.30 +	cp -a $install/* $fs
    1.31  
    1.32  	chown -R root.root $fs/*
    1.33  	chmod 1777 $fs/tmp
    1.34 @@ -73,6 +80,10 @@
    1.35  	# Creat /etc/mtab symlink.
    1.36  	cd $fs/etc
    1.37  	ln -s /proc/mounts mtab
    1.38 +
    1.39 +	# Fix httphelper link
    1.40 +	cd $fs/usr/lib/slitaz
    1.41 +	rm httphelper && ln -s httphelper.sh httphelper
    1.42  }
    1.43  
    1.44  # Pre and post install to backup all /etc/settings