wok-6.x diff pm-utils/receipt @ rev 14520
linux64: update modules64.list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 16 21:55:34 2013 +0200 (2013-05-16) |
parents | fca11d7d8a60 |
children | 51a1ebbda768 |
line diff
1.1 --- a/pm-utils/receipt Mon Mar 26 20:54:35 2012 +0200 1.2 +++ b/pm-utils/receipt Thu May 16 21:55:34 2013 +0200 1.3 @@ -16,7 +16,15 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 - sed -i 's/grep -vxFf/grep -vFf/g' pm/functions.in 1.8 + # workaround grep -x not implemented in busybox 1.9 + echo -n "Applying grep -x patch.." 1.10 + patch -p1 pm/functions.in $stuff/grep-x.patch > /dev/null \ 1.11 + && echo done. || echo failed. 1.12 + # remove acoustic management not implemented in busybox 1.13 + echo -n "Applying harddrive patch.." 1.14 + patch -p1 pm/power.d/harddrive $stuff/harddrive.patch > /dev/null \ 1.15 + && echo done. || echo failed. 1.16 + # build 1.17 ./configure \ 1.18 --prefix=/usr \ 1.19 --sysconfdir=/etc \ 1.20 @@ -28,10 +36,29 @@ 1.21 # Rules to gen a SliTaz package suitable for Tazpkg. 1.22 genpkg_rules() 1.23 { 1.24 + # main 1.25 mkdir -p $fs/usr/lib 1.26 cp -a $_pkg/usr/bin $fs/usr 1.27 cp -a $_pkg/usr/sbin $fs/usr 1.28 cp -a $_pkg/usr/lib/pm-utils $fs/usr/lib 1.29 + 1.30 + # sysconfig 1.31 mkdir -p $fs/etc 1.32 cp -a $_pkg/etc/pm $fs/etc 1.33 + 1.34 + # remove incompatible hooks 1.35 + echo "remove incompatible hooks" 1.36 + # NetworkManager hook 1.37 + rm -f $fs/usr/lib/pm-utils/sleep.d/55NetworkManager 1.38 + # grub hook (Redhat specific) 1.39 + rm -f $fs/usr/lib/pm-utils/sleep.d/01grub 1.40 + # readahead hook (not busybox compliant) 1.41 + rm -f $fs/usr/lib/pm-utils/power.d/readahead 1.42 + # sata_alpm (causes disk errors on many hardware) 1.43 + rm -f $fs/usr/lib/pm-utils/power.d/sata_alpm 1.44 + 1.45 + # add video quirks 1.46 + echo -n "Add video quirks" 1.47 + cp -a $stuff/video-quirks $fs/usr/lib/pm-utils 1.48 + status 1.49 }