wok rev 16573

slitaz-base-files: get ride of /var/run symlink in pre_install
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 02 19:14:33 2014 +0200 (2014-05-02)
parents e6c3e20d5ab0
children a1ae61704cdf
files dbus/receipt slitaz-base-files/receipt
line diff
     1.1 --- a/dbus/receipt	Fri May 02 19:10:08 2014 +0200
     1.2 +++ b/dbus/receipt	Fri May 02 19:14:33 2014 +0200
     1.3 @@ -18,14 +18,12 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	cd $src
     1.8  	./configure \
     1.9  		--libexecdir=/usr/lib/dbus \
    1.10  		--sysconfdir=/etc \
    1.11  		--localstatedir=/var \
    1.12  		$CONFIGURE_ARGS &&
    1.13 -	make &&
    1.14 -	make -j 1 install
    1.15 +	make && make -j 1 install
    1.16  }
    1.17  
    1.18  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/slitaz-base-files/receipt	Fri May 02 19:10:08 2014 +0200
     2.2 +++ b/slitaz-base-files/receipt	Fri May 02 19:14:33 2014 +0200
     2.3 @@ -35,7 +35,6 @@
     2.4  # Rules to configure and make the package.
     2.5  compile_rules()
     2.6  {
     2.7 -	cd $src
     2.8  	make DESTDIR=$DESTDIR install
     2.9  }
    2.10  
    2.11 @@ -102,15 +101,15 @@
    2.12  {
    2.13  	local root
    2.14  	root=$1
    2.15 -	echo "Creating backup of all files in /etc..."
    2.16  	cp -a $root/etc $root/tmp/etc.bak 2>/dev/null
    2.17 +	# Remove old /var/run symlink
    2.18 +	rm -f $root/var/run
    2.19  }
    2.20  
    2.21  post_install()
    2.22  {
    2.23  	local root
    2.24  	root=$1
    2.25 -	echo "Restoring files from /etc/etc.bak..."
    2.26  	cp -a $root/tmp/etc.bak/* $root/etc 2>/dev/null
    2.27  	rm -rf $root/tmp/etc.bak
    2.28