Date: Thursday, September 20, 2018 @ 18:36:31 Author: dvzrv Revision: 383763
upgpkg: apparmor 2.13.0-5 Only replacing the use of /sbin/ /bin/ and /usr/sbin/ with /usr/bin in all profiles, instead of renaming the files. Modified: apparmor/trunk/PKGBUILD ----------+ PKGBUILD | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-09-20 17:54:27 UTC (rev 383762) +++ PKGBUILD 2018-09-20 18:36:31 UTC (rev 383763) @@ -1,7 +1,7 @@ # Maintainer: David Runge <d...@sleepmap.de> pkgname=apparmor pkgver=2.13.0 -pkgrel=4 +pkgrel=5 pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" arch=('x86_64') url="https://launchpad.net/apparmor" @@ -45,18 +45,12 @@ -e 's/sbin/bin/g' \ -e 's| /bin/| /usr/bin/|g' \ -i utils/logprof.conf - # rename profiles (to use usr.bin prefix) - for profile in $(ls profiles/{${pkgname}/profiles/extras,${pkgname}.d}/{bin,sbin,usr.sbin}*); do - mv -v $profile \ - $(echo $profile| \ - sed -e 's|/bin|/usr.bin|;s|/sbin|/usr.bin|;s|/usr.sbin|/usr.bin|') - done - # overwrite usage of sbin with bin in all profiles - # overwrite local bin includes with usr.bin - sed -e 's/sbin/bin/g' \ - -e 's|local/bin|local/usr.bin|' \ - -i profiles/${pkgname}/profiles/extras/usr.* \ - profiles/${pkgname}.d/{abstractions/*-{helpers,common},usr.*} + # replace the use of /sbin /usr/sbin and /bin with /usr/bin in all profiles + find profiles -type f \ + -exec sed -e 's| /sbin/| /usr/bin/|g' \ + -e 's|/sbin/|/bin/|g' \ + -e 's| /bin/| /usr/bin/|g' \ + -i {} + cd libraries/libapparmor/ autoreconf -vfi }