wok-next rev 17939
partimage: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 15 09:53:08 2015 +0200 (2015-04-15) |
parents | 08007dee84de |
children | 82816c8eb08b |
files | partimage-pam/receipt partimage/receipt |
line diff
1.1 --- a/partimage-pam/receipt Wed Apr 15 09:36:43 2015 +0200 1.2 +++ b/partimage-pam/receipt Wed Apr 15 09:53:08 2015 +0200 1.3 @@ -18,7 +18,6 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - cd $src 1.8 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h 1.9 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp 1.10 ./configure --prefix=/usr --enable-pam \ 1.11 @@ -47,10 +46,10 @@ 1.12 1.13 echo "Setting permissions for config files" 1.14 chmod 0600 $1/etc/partimaged/* 1.15 - chown partimag.partimag $1/etc/partimaged/* 1.16 + chroot $1/ chown partimag.partimag $1/etc/partimaged/* 1.17 1.18 echo " Creating image files directory" 1.19 - install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged 1.20 + chroot $1/ install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged 1.21 1.22 echo "" 1.23 echo -e "\nTo starts $SOURCE server you can run :\n" 1.24 @@ -67,5 +66,3 @@ 1.25 rm -rf $1/etc/partimaged 1.26 fi 1.27 } 1.28 - 1.29 -
2.1 --- a/partimage/receipt Wed Apr 15 09:36:43 2015 +0200 2.2 +++ b/partimage/receipt Wed Apr 15 09:53:08 2015 +0200 2.3 @@ -16,7 +16,6 @@ 2.4 # Rules to configure and make the package. 2.5 compile_rules() 2.6 { 2.7 - cd $src 2.8 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h 2.9 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp 2.10 ./configure --prefix=/usr \ 2.11 @@ -45,10 +44,10 @@ 2.12 2.13 echo "Setting permissions for config files" 2.14 chmod 0600 $1/etc/partimaged/* 2.15 - chown partimag.partimag $1/etc/partimaged/* 2.16 + chroot $1/ chown partimag.partimag $1/etc/partimaged/* 2.17 2.18 echo " Creating image files directory" 2.19 - install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged 2.20 + chroot $1/ install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged 2.21 2.22 echo "" 2.23 echo -e "\nTo starts $PACKAGE server you can run :\n" 2.24 @@ -65,5 +64,3 @@ 2.25 rm -rf $1/etc/partimaged 2.26 fi 2.27 } 2.28 - 2.29 -