wok diff partimage/receipt @ rev 20083

update packages openssl, openssl-dev, libcrypto and libcrypto-dev from: 1.0.2k [26 Jan 2017] to 1.0.2l [25 May 2017]
author Erkan Yilmaz <erkan@slitaz.org>
date Wed Sep 27 19:02:39 2017 +0000 (2017-09-27)
parents 9e01bc6321ea
children 8dd8bab3f0ca
line diff
     1.1 --- a/partimage/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/partimage/receipt	Wed Sep 27 19:02:39 2017 +0000
     1.3 @@ -15,13 +15,14 @@
     1.4  
     1.5  # Rules to configure and make the package.
     1.6  compile_rules()
     1.7 -{	
     1.8 +{
     1.9  	sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
    1.10  	sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
    1.11 -	./configure --prefix=/usr \
    1.12 -	 --sysconfdir=/etc \
    1.13 -	 --infodir=/usr/share/info \
    1.14 -	 --mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.15 +	./configure \
    1.16 +		--prefix=/usr \
    1.17 +		--sysconfdir=/etc \
    1.18 +		--infodir=/usr/share/info \
    1.19 +		--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.20  	make &&
    1.21  	make DESTDIR=$DESTDIR install
    1.22  }
    1.23 @@ -38,28 +39,28 @@
    1.24  
    1.25  post_install()
    1.26  {
    1.27 -	echo "Processing post install commands..."
    1.28 +	echo
    1.29  	echo "Adding user/group partimag..."
    1.30  	chroot "$1/" adduser -S -H -D partimag
    1.31  
    1.32  	echo "Setting permissions for config files"
    1.33  	chmod 0600 "$1"/etc/partimaged/*
    1.34  	chroot "$1/" chown partimag.partimag "$1"/etc/partimaged/*	
    1.35 -	
    1.36 -	echo " Creating image files directory"
    1.37 +
    1.38 +	echo "Creating image files directory"
    1.39  	chroot "$1/" install -g partimag -o partimag -m 0755 -d "$1/var/lib/partimaged"
    1.40 -	
    1.41 +
    1.42  	echo ""
    1.43  	echo -e "\nTo starts $PACKAGE server you can run :\n"
    1.44 -   	echo "/etc/init.d/partimaged start"
    1.45 -   	echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
    1.46 +	echo "/etc/init.d/partimaged start"
    1.47 +	echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
    1.48  }
    1.49  
    1.50  post_remove()
    1.51  {
    1.52  	chroot "$1/" deluser partimag
    1.53  	chroot "$1/" delgroup partimag
    1.54 -	
    1.55 +
    1.56  	if [ -f "$1/etc/paritimaged" ]; then
    1.57  		rm -rf "$1/etc/partimaged"
    1.58  	fi