[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, September 27, 2018 @ 21:46:16 Author: dvzrv Revision: 386763 archrelease: copy trunk to community-testing-x86_64 Added: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 386762, apparmor/trunk/PKGBUILD) Deleted: apparmor/repos/community-testing-x86_64/PKGBUILD --+ PKGBUILD | 197 - 1 file changed, 92 insertions(+), 105 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-09-27 21:46:10 UTC (rev 386762) +++ PKGBUILD2018-09-27 21:46:16 UTC (rev 386763) @@ -1,105 +0,0 @@ -# Maintainer: David Runge -pkgname=apparmor -pkgver=2.13.0 -pkgrel=7 -pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" -arch=('x86_64') -url="https://gitlab.com/apparmor/apparmor; -license=('GPL') -depends=('audit' 'pam' 'python') -makedepends=('swig' 'chrpath' 'ruby') -optdepends=('perl: perl bindings' -'ruby: ruby bindings') -provides=('libapparmor') -replaces=('apparmor-libapparmor' 'apparmor-pam' 'apparmor-parser' -'apparmor-profiles' 'apparmor-utils' 'apparmor-vim') -backup=('etc/apparmor/easyprof.conf' -'etc/apparmor/logprof.conf' -'etc/apparmor/notify.conf' -'etc/apparmor/parser.conf' -'etc/apparmor/subdomain.conf' -'etc/apparmor/severity.db') -source=("https://launchpad.net/${pkgname}/${pkgver%.[0-9]}/${pkgver}/+download/${pkgname}-${pkgver%.[0-9]}.tar.gz"{,.asc}) -sha512sums=('f98914713153d4c823a3ea7e96291cc4528bf7c8d3a139286ae0ecd806613e9c34b0ad81f2b258df2193cf6f3157d3252ef72d32d339427948a3fd8ba5651827' -'SKIP') -# AppArmor Development Team (AppArmor signing key) -validpgpkeys=('3ECDCBA5FB34D254961CC53F6689E64E3D3664BB') -_core_perl="/usr/bin/core_perl" - -prepare() { - mv -v "${pkgname}-${pkgver%.[0-9]}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # fix bin directory for parser install target - # fix lib dir location - # fix missing executable bit on apparmor.systemd script - sed -e 's/sbin/usr\/bin/g' \ - -e 's/\}\/lib\/apparmor/\}\/usr\/lib\/apparmor/' \ - -e 's/644 apparmor.systemd/755 apparmor.systemd/' \ - -i parser/Makefile - # fix default vim syntax file installation path - sed -e 's/share\/apparmor/share\/vim\/vimfiles\/syntax/' \ - -i utils/vim/Makefile - # fix syslog.log location - # fix messages.log location - # fixing location of {apparmormor,subdomain}_parser - # adding aa- prefix to {genprof,logprof} - # replace the use of /sbin and /usr/sbin with /bin and /usr/bin (respectively) - sed -e '/logfiles/ s/syslog /syslog.log /g' \ - -e '/logfiles/ s/messages/messages.log/g' \ - -e 's| /sbin/apparmor_parser| /usr/bin/apparmor_parser|g' \ - -e 's|parser /sbin/subdomain|parser /usr/bin/subdomain|g' \ - -e 's|/genprof|/aa-genprof|g' \ - -e 's|/logprof|/aa-logprof|g' \ - -e 's/sbin/bin/g' \ - -i utils/logprof.conf - # 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 -} - -build() { - # export required perl executable locations - export MAKEFLAGS+=" POD2MAN=${_core_perl}/pod2man" - export MAKEFLAGS+=" POD2HTML=${_core_perl}/pod2html" - export MAKEFLAGS+=" PODCHECKER=${_core_perl}/podchecker" - export MAKEFLAGS+=" PROVE=${_core_perl}/prove" - cd "${pkgname}-${pkgver}/libraries/libapparmor/" - ./configure --prefix=/usr \ - --sbindir=/usr/bin \ - --with-perl \ - --with-python \ - --with-ruby - make - cd ../.. - make -C parser - make -C profiles - make -C utils - make -C changehat/pam_apparmor - make -C utils/vim -} - -package() { - cd "$pkgname-$pkgver" - make -C libraries/libapparmor DESTDIR="${pkgdir}" install - make -C changehat/pam_apparmor DESTDIR="${pkgdir}/usr" install - make -C parser DESTDIR="${pkgdir}" install - make -C parser DESTDIR="${pkgdir}" install-systemd - make -C profiles DESTDIR="${pkgdir}" install - make -C utils DESTDIR="${pkgdir}" BINDIR="${pkgdir}/usr/bin" install - # strip perl library and remove empty rpath - find "${pkgdir}/usr/lib/perl5/" \ --type f -iname "*.so" \ --exec strip --strip-unneeded {} \; \ --exec chrpath -d {} \; - # move ruby bindings to vendor_ruby - mv -v "${pkgdir}/usr/lib/ruby/site_ruby/" \ -"${pkgdir}/usr/lib/ruby/vendor_ruby/" - # adding files below /etc/apparmor.d to backup array - cd "${pkgdir}" - backup=( ${backup[@]} $(find "etc/${pkgname}.d/" -type f) ) -} Copied: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 386762, apparmor/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD
[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)
Date: Saturday, September 22, 2018 @ 19:53:33 Author: dvzrv Revision: 384171 archrelease: copy trunk to community-testing-x86_64 Added: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 384170, apparmor/trunk/PKGBUILD) Deleted: apparmor/repos/community-testing-x86_64/PKGBUILD --+ PKGBUILD | 207 ++--- 1 file changed, 105 insertions(+), 102 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-09-22 19:53:23 UTC (rev 384170) +++ PKGBUILD2018-09-22 19:53:33 UTC (rev 384171) @@ -1,102 +0,0 @@ -# Maintainer: David Runge -pkgname=apparmor -pkgver=2.13.0 -pkgrel=6 -pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" -arch=('x86_64') -url="https://launchpad.net/apparmor; -license=('GPL') -depends=('audit' 'pam' 'python') -makedepends=('swig' 'chrpath' 'ruby') -optdepends=('perl: perl bindings' -'ruby: ruby bindings') -provides=('libapparmor') -replaces=('apparmor-libapparmor' 'apparmor-pam' 'apparmor-parser' -'apparmor-profiles' 'apparmor-utils' 'apparmor-vim') -backup=('etc/apparmor/easyprof.conf' -'etc/apparmor/logprof.conf' -'etc/apparmor/notify.conf' -'etc/apparmor/parser.conf' -'etc/apparmor/subdomain.conf' -'etc/apparmor/severity.db') -source=("https://launchpad.net/${pkgname}/${pkgver%.[0-9]}/${pkgver}/+download/${pkgname}-${pkgver%.[0-9]}.tar.gz"{,.asc}) -sha512sums=('f98914713153d4c823a3ea7e96291cc4528bf7c8d3a139286ae0ecd806613e9c34b0ad81f2b258df2193cf6f3157d3252ef72d32d339427948a3fd8ba5651827' -'SKIP') -# AppArmor Development Team (AppArmor signing key) -validpgpkeys=('3ECDCBA5FB34D254961CC53F6689E64E3D3664BB') -_core_perl="/usr/bin/core_perl" - -prepare() { - mv -v "${pkgname}-${pkgver%.[0-9]}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # fix bin directory for parser install target - # fix lib dir location - # fix missing executable bit on apparmor.systemd script - sed -e 's/sbin/usr\/bin/g' \ - -e 's/\}\/lib\/apparmor/\}\/usr\/lib\/apparmor/' \ - -e 's/644 apparmor.systemd/755 apparmor.systemd/' \ - -i parser/Makefile - # fix default vim syntax file installation path - sed -e 's/share\/apparmor/share\/vim\/vimfiles\/syntax/' \ - -i utils/vim/Makefile - # fix syslog.log location - # fix messages.log location - # fixing location of {apparmormor,subdomain}_parser - # replace the use of /sbin and /usr/sbin with /bin and /usr/bin (respectively) - sed -e '/logfiles/ s/syslog /syslog.log /g' \ - -e '/logfiles/ s/messages/messages.log/g' \ - -e 's| /sbin/apparmor_parser| /usr/bin/apparmor_parser|g' \ - -e 's| /sbin/subdomain_parser| /usr/bin/subdomain_parser|g' \ - -e 's/sbin/bin/g' \ - -i utils/logprof.conf - # 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 -} - -build() { - # export required perl executable locations - export MAKEFLAGS+=" POD2MAN=${_core_perl}/pod2man" - export MAKEFLAGS+=" POD2HTML=${_core_perl}/pod2html" - export MAKEFLAGS+=" PODCHECKER=${_core_perl}/podchecker" - export MAKEFLAGS+=" PROVE=${_core_perl}/prove" - cd "${pkgname}-${pkgver}/libraries/libapparmor/" - ./configure --prefix=/usr \ - --sbindir=/usr/bin \ - --with-perl \ - --with-python \ - --with-ruby - make - cd ../.. - make -C parser - make -C profiles - make -C utils - make -C changehat/pam_apparmor - make -C utils/vim -} - -package() { - cd "$pkgname-$pkgver" - make -C libraries/libapparmor DESTDIR="${pkgdir}" install - make -C changehat/pam_apparmor DESTDIR="${pkgdir}/usr" install - make -C parser DESTDIR="${pkgdir}" install - make -C parser DESTDIR="${pkgdir}" install-systemd - make -C profiles DESTDIR="${pkgdir}" install - make -C utils DESTDIR="${pkgdir}" BINDIR="${pkgdir}/usr/bin" install - # strip perl library and remove empty rpath - find "${pkgdir}/usr/lib/perl5/" \ --type f -iname "*.so" \ --exec strip --strip-unneeded {} \; \ --exec chrpath -d {} \; - # move ruby bindings to vendor_ruby - mv -v "${pkgdir}/usr/lib/ruby/site_ruby/" \ -"${pkgdir}/usr/lib/ruby/vendor_ruby/" - # adding files below /etc/apparmor.d to backup array - cd "${pkgdir}" - backup=( ${backup[@]} $(find "etc/${pkgname}.d/" -type f) ) -} Copied: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 384170, apparmor/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-09-22 19:53:33 UTC (rev 384171) @@ -0,0 +1,105 @@ +# Maintainer: David Runge +pkgname=apparmor +pkgver=2.13.0 +pkgrel=7
[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)
Date: Saturday, September 22, 2018 @ 15:39:16 Author: dvzrv Revision: 384167 archrelease: copy trunk to community-testing-x86_64 Added: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 384166, apparmor/trunk/PKGBUILD) Deleted: apparmor/repos/community-testing-x86_64/PKGBUILD --+ PKGBUILD | 200 +++-- 1 file changed, 102 insertions(+), 98 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-09-22 15:39:09 UTC (rev 384166) +++ PKGBUILD2018-09-22 15:39:16 UTC (rev 384167) @@ -1,98 +0,0 @@ -# Maintainer: David Runge -pkgname=apparmor -pkgver=2.13.0 -pkgrel=5 -pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" -arch=('x86_64') -url="https://launchpad.net/apparmor; -license=('GPL') -depends=('audit' 'pam' 'python') -makedepends=('swig' 'chrpath' 'ruby') -optdepends=('perl: perl bindings' -'ruby: ruby bindings') -provides=('libapparmor') -replaces=('apparmor-libapparmor' 'apparmor-pam' 'apparmor-parser' -'apparmor-profiles' 'apparmor-utils' 'apparmor-vim') -backup=('etc/apparmor/easyprof.conf' -'etc/apparmor/logprof.conf' -'etc/apparmor/notify.conf' -'etc/apparmor/parser.conf' -'etc/apparmor/subdomain.conf' -'etc/apparmor/severity.db') -source=("https://launchpad.net/${pkgname}/${pkgver%.[0-9]}/${pkgver}/+download/${pkgname}-${pkgver%.[0-9]}.tar.gz"{,.asc}) -sha512sums=('f98914713153d4c823a3ea7e96291cc4528bf7c8d3a139286ae0ecd806613e9c34b0ad81f2b258df2193cf6f3157d3252ef72d32d339427948a3fd8ba5651827' -'SKIP') -# AppArmor Development Team (AppArmor signing key) -validpgpkeys=('3ECDCBA5FB34D254961CC53F6689E64E3D3664BB') -_core_perl="/usr/bin/core_perl" - -prepare() { - mv -v "${pkgname}-${pkgver%.[0-9]}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # fix bin directory for parser install target - # fix lib dir location - # fix missing executable bit on apparmor.systemd script - sed -e 's/sbin/usr\/bin/g' \ - -e 's/\}\/lib\/apparmor/\}\/usr\/lib\/apparmor/' \ - -e 's/644 apparmor.systemd/755 apparmor.systemd/' \ - -i parser/Makefile - # fix default vim syntax file installation path - sed -e 's/share\/apparmor/share\/vim\/vimfiles\/syntax/' \ - -i utils/vim/Makefile - # fix paths in logprof.conf - sed -e '/logfiles/ s/syslog /syslog.log /g' \ - -e '/logfiles/ s/messages/messages.log/g' \ - -e 's/sbin/bin/g' \ - -e 's| /bin/| /usr/bin/|g' \ - -i utils/logprof.conf - # 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 -} - -build() { - # export required perl executable locations - export MAKEFLAGS+=" POD2MAN=${_core_perl}/pod2man" - export MAKEFLAGS+=" POD2HTML=${_core_perl}/pod2html" - export MAKEFLAGS+=" PODCHECKER=${_core_perl}/podchecker" - export MAKEFLAGS+=" PROVE=${_core_perl}/prove" - cd "${pkgname}-${pkgver}/libraries/libapparmor/" - ./configure --prefix=/usr \ - --sbindir=/usr/bin \ - --with-perl \ - --with-python \ - --with-ruby - make - cd ../.. - make -C parser - make -C profiles - make -C utils - make -C changehat/pam_apparmor - make -C utils/vim -} - -package() { - cd "$pkgname-$pkgver" - make -C libraries/libapparmor DESTDIR="${pkgdir}" install - make -C changehat/pam_apparmor DESTDIR="${pkgdir}/usr" install - make -C parser DESTDIR="${pkgdir}" install - make -C parser DESTDIR="${pkgdir}" install-systemd - make -C profiles DESTDIR="${pkgdir}" install - make -C utils DESTDIR="${pkgdir}" BINDIR="${pkgdir}/usr/bin" install - # strip perl library and remove empty rpath - find "${pkgdir}/usr/lib/perl5/" \ --type f -iname "*.so" \ --exec strip --strip-unneeded {} \; \ --exec chrpath -d {} \; - # move ruby bindings to vendor_ruby - mv -v "${pkgdir}/usr/lib/ruby/site_ruby/" \ -"${pkgdir}/usr/lib/ruby/vendor_ruby/" - # adding files below /etc/apparmor.d to backup array - cd "${pkgdir}" - backup=( ${backup[@]} $(find "etc/${pkgname}.d/" -type f) ) -} Copied: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 384166, apparmor/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-09-22 15:39:16 UTC (rev 384167) @@ -0,0 +1,102 @@ +# Maintainer: David Runge +pkgname=apparmor +pkgver=2.13.0 +pkgrel=6 +pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" +arch=('x86_64') +url="https://launchpad.net/apparmor; +license=('GPL') +depends=('audit' 'pam' 'python') +makedepends=('swig' 'chrpath' 'ruby') +optdepends=('perl: perl bindings' +
[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, September 20, 2018 @ 18:36:49 Author: dvzrv Revision: 383764 archrelease: copy trunk to community-testing-x86_64 Added: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 383763, apparmor/trunk/PKGBUILD) Deleted: apparmor/repos/community-testing-x86_64/PKGBUILD --+ PKGBUILD | 202 + 1 file changed, 98 insertions(+), 104 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-09-20 18:36:31 UTC (rev 383763) +++ PKGBUILD2018-09-20 18:36:49 UTC (rev 383764) @@ -1,104 +0,0 @@ -# Maintainer: David Runge -pkgname=apparmor -pkgver=2.13.0 -pkgrel=4 -pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" -arch=('x86_64') -url="https://launchpad.net/apparmor; -license=('GPL') -depends=('audit' 'pam' 'python') -makedepends=('swig' 'chrpath' 'ruby') -optdepends=('perl: perl bindings' -'ruby: ruby bindings') -provides=('libapparmor') -replaces=('apparmor-libapparmor' 'apparmor-pam' 'apparmor-parser' -'apparmor-profiles' 'apparmor-utils' 'apparmor-vim') -backup=('etc/apparmor/easyprof.conf' -'etc/apparmor/logprof.conf' -'etc/apparmor/notify.conf' -'etc/apparmor/parser.conf' -'etc/apparmor/subdomain.conf' -'etc/apparmor/severity.db') -source=("https://launchpad.net/${pkgname}/${pkgver%.[0-9]}/${pkgver}/+download/${pkgname}-${pkgver%.[0-9]}.tar.gz"{,.asc}) -sha512sums=('f98914713153d4c823a3ea7e96291cc4528bf7c8d3a139286ae0ecd806613e9c34b0ad81f2b258df2193cf6f3157d3252ef72d32d339427948a3fd8ba5651827' -'SKIP') -# AppArmor Development Team (AppArmor signing key) -validpgpkeys=('3ECDCBA5FB34D254961CC53F6689E64E3D3664BB') -_core_perl="/usr/bin/core_perl" - -prepare() { - mv -v "${pkgname}-${pkgver%.[0-9]}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # fix bin directory for parser install target - # fix lib dir location - # fix missing executable bit on apparmor.systemd script - sed -e 's/sbin/usr\/bin/g' \ - -e 's/\}\/lib\/apparmor/\}\/usr\/lib\/apparmor/' \ - -e 's/644 apparmor.systemd/755 apparmor.systemd/' \ - -i parser/Makefile - # fix default vim syntax file installation path - sed -e 's/share\/apparmor/share\/vim\/vimfiles\/syntax/' \ - -i utils/vim/Makefile - # fix paths in logprof.conf - sed -e '/logfiles/ s/syslog /syslog.log /g' \ - -e '/logfiles/ s/messages/messages.log/g' \ - -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.*} - cd libraries/libapparmor/ - autoreconf -vfi -} - -build() { - # export required perl executable locations - export MAKEFLAGS+=" POD2MAN=${_core_perl}/pod2man" - export MAKEFLAGS+=" POD2HTML=${_core_perl}/pod2html" - export MAKEFLAGS+=" PODCHECKER=${_core_perl}/podchecker" - export MAKEFLAGS+=" PROVE=${_core_perl}/prove" - cd "${pkgname}-${pkgver}/libraries/libapparmor/" - ./configure --prefix=/usr \ - --sbindir=/usr/bin \ - --with-perl \ - --with-python \ - --with-ruby - make - cd ../.. - make -C parser - make -C profiles - make -C utils - make -C changehat/pam_apparmor - make -C utils/vim -} - -package() { - cd "$pkgname-$pkgver" - make -C libraries/libapparmor DESTDIR="${pkgdir}" install - make -C changehat/pam_apparmor DESTDIR="${pkgdir}/usr" install - make -C parser DESTDIR="${pkgdir}" install - make -C parser DESTDIR="${pkgdir}" install-systemd - make -C profiles DESTDIR="${pkgdir}" install - make -C utils DESTDIR="${pkgdir}" BINDIR="${pkgdir}/usr/bin" install - # strip perl library and remove empty rpath - find "${pkgdir}/usr/lib/perl5/" \ --type f -iname "*.so" \ --exec strip --strip-unneeded {} \; \ --exec chrpath -d {} \; - # move ruby bindings to vendor_ruby - mv -v "${pkgdir}/usr/lib/ruby/site_ruby/" \ -"${pkgdir}/usr/lib/ruby/vendor_ruby/" - # adding files below /etc/apparmor.d to backup array - cd "${pkgdir}" - backup=( ${backup[@]} $(find "etc/${pkgname}.d/" -type f) ) -} Copied: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 383763, apparmor/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-09-20 18:36:49 UTC (rev 383764) @@ -0,0 +1,98 @@ +# Maintainer: David Runge
[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, September 13, 2018 @ 18:39:56 Author: dvzrv Revision: 380484 archrelease: copy trunk to community-testing-x86_64 Added: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 380483, apparmor/trunk/PKGBUILD) Deleted: apparmor/repos/community-testing-x86_64/PKGBUILD --+ PKGBUILD | 208 ++--- 1 file changed, 104 insertions(+), 104 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-09-13 18:39:40 UTC (rev 380483) +++ PKGBUILD2018-09-13 18:39:56 UTC (rev 380484) @@ -1,104 +0,0 @@ -# Maintainer: David Runge -pkgname=apparmor -pkgver=2.13.0 -pkgrel=3 -pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" -arch=('x86_64') -url="https://launchpad.net/apparmor; -license=('GPL') -depends=('audit' 'pam' 'python') -makedepends=('swig' 'chrpath' 'ruby') -optdepends=('perl: perl bindings' -'ruby: ruby bindings') -provides=('libapparmor') -replaces=('apparmor-libapparmor' 'apparmor-pam' 'apparmor-parser' -'apparmor-profiles' 'apparmor-utils' 'apparmor-vim') -backup=('etc/apparmor/easyprof.conf' -'etc/apparmor/logprof.conf' -'etc/apparmor/notify.conf' -'etc/apparmor/parser.conf' -'etc/apparmor/subdomain.conf' -'etc/apparmor/severity.db') -source=("https://launchpad.net/${pkgname}/${pkgver%.[0-9]}/${pkgver}/+download/${pkgname}-${pkgver%.[0-9]}.tar.gz"{,.asc}) -sha512sums=('f98914713153d4c823a3ea7e96291cc4528bf7c8d3a139286ae0ecd806613e9c34b0ad81f2b258df2193cf6f3157d3252ef72d32d339427948a3fd8ba5651827' -'SKIP') -# AppArmor Development Team (AppArmor signing key) -validpgpkeys=('3ECDCBA5FB34D254961CC53F6689E64E3D3664BB') -_core_perl="/usr/bin/core_perl" - -prepare() { - mv -v "${pkgname}-${pkgver%.[0-9]}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # fix bin directory for parser install target - # fix lib dir location - # fix missing executable bit on apparmor.systemd script - sed -e 's/sbin/usr\/bin/g' \ - -e 's/\}\/lib\/apparmor/\}\/usr\/lib\/apparmor/' \ - -e 's/644 apparmor.systemd/755 apparmor.systemd/' \ - -i parser/Makefile - # fix default vim syntax file installation path - sed -e 's/share\/apparmor/share\/vim\/vimfiles\/syntax/' \ - -i utils/vim/Makefile - # fix paths in logprof.conf - sed -e '/logfiles/ s/syslog /syslog.log /g' \ - -e '/logfiles/ s/messages/messages.log/g' \ - -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.*} - cd libraries/libapparmor/ - autoreconf -vfi -} - -build() { - # export required perl executable locations - export MAKEFLAGS+=" POD2MAN=${_core_perl}/pod2man" - export MAKEFLAGS+=" POD2HTML=${_core_perl}/pod2html" - export MAKEFLAGS+=" PODCHECKER=${_core_perl}/podchecker" - export MAKEFLAGS+=" PROVE=${_core_perl}/prove" - cd "${pkgname}-${pkgver}/libraries/libapparmor/" - ./configure --prefix=/usr \ - --sbindir=/usr/bin \ - --with-perl \ - --with-python \ - --with-ruby - make - cd ../.. - make -C parser - make -C profiles - make -C utils - make -C changehat/pam_apparmor - make -C utils/vim -} - -package() { - cd "$pkgname-$pkgver" - make -C libraries/libapparmor DESTDIR="${pkgdir}" install - make -C changehat/pam_apparmor DESTDIR="${pkgdir}/usr" install - make -C parser DESTDIR="${pkgdir}" install - make -C parser DESTDIR="${pkgdir}" install-systemd - make -C profiles DESTDIR="${pkgdir}" install - make -C utils DESTDIR="${pkgdir}" BINDIR="${pkgdir}/usr/bin" install - # strip perl library and remove empty rpath - find "${pkgdir}/usr/lib/perl5/" \ --type f -iname "*.so" \ --exec strip --strip-unneeded {} \; \ --exec chrpath -d {} \; - # move ruby bindings to vendor_ruby - mv -v "${pkgdir}/usr/lib/ruby/site_ruby/" \ -"${pkgdir}/usr/lib/ruby/vendor_ruby/" - # adding files below /etc/apparmor.d to backup array - backup=( ${backup[@]} $(find "${pkgdir}/etc/${pkgname}.d/" \ --type f |sed "s|${pkgdir}/||") ) -} Copied: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 380483, apparmor/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-09-13 18:39:56 UTC (rev 380484) @@ -0,0 +1,104 @@ +#
[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, September 13, 2018 @ 17:50:15 Author: dvzrv Revision: 380453 archrelease: copy trunk to community-testing-x86_64 Added: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 380452, apparmor/trunk/PKGBUILD) Deleted: apparmor/repos/community-testing-x86_64/PKGBUILD --+ PKGBUILD | 201 +++-- 1 file changed, 104 insertions(+), 97 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-09-13 17:50:09 UTC (rev 380452) +++ PKGBUILD2018-09-13 17:50:15 UTC (rev 380453) @@ -1,97 +0,0 @@ -# Maintainer: David Runge -pkgname=apparmor -pkgver=2.13.0 -pkgrel=2 -pkgdesc="Mandatory Access Control (MAC) mechanism using the Linux Security -Module (LSM) framework." -arch=('x86_64') -url="https://launchpad.net/apparmor; -license=('GPL') -depends=('audit' 'pam' 'python') -makedepends=('swig') -provides=('libapparmor') -replaces=('apparmor-libapparmor' 'apparmor-pam' 'apparmor-parser' -'apparmor-profiles' 'apparmor-utils' 'apparmor-vim') -backup=('etc/apparmor/easyprof.conf' -'etc/apparmor/logprof.conf' -'etc/apparmor/notify.conf' -'etc/apparmor/parser.conf' -'etc/apparmor/subdomain.conf' -'etc/apparmor/severity.db') -source=("https://launchpad.net/${pkgname}/${pkgver%.[0-9]}/${pkgver}/+download/${pkgname}-${pkgver%.[0-9]}.tar.gz"{,.asc}) -sha512sums=('f98914713153d4c823a3ea7e96291cc4528bf7c8d3a139286ae0ecd806613e9c34b0ad81f2b258df2193cf6f3157d3252ef72d32d339427948a3fd8ba5651827' -'SKIP') -# 3D3664BB: AppArmor Development Team (AppArmor signing key) -validpgpkeys=('3ECDCBA5FB34D254961CC53F6689E64E3D3664BB') -_core_perl="/usr/bin/core_perl" - -prepare() { - # use PIE - export CFLAGS+=" -fpic -fpie" - export LDFLAGS+=" -fpic -fpie" - mv -v "${pkgname}-${pkgver%.[0-9]}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # fix bin directory for parser install target - # fix lib dir location - # fix missing executable bit on apparmor.systemd script - sed -e 's/sbin/usr\/bin/g' \ - -e 's/\}\/lib\/apparmor/\}\/usr\/lib\/apparmor/' \ - -e 's/644 apparmor.systemd/755 apparmor.systemd/' \ - -i parser/Makefile - # fix default vim syntax file installation path - sed -e 's/share\/apparmor/share\/vim\/vimfiles\/syntax/' \ - -i utils/vim/Makefile - # fix paths in logprof.conf - sed -e '/logfiles/ s/syslog /syslog.log /g' \ - -e '/logfiles/ s/messages/messages.log/g' \ - -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|g;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.*} - cd libraries/libapparmor/ - autoreconf -vfi - # export required perl executable locations - export MAKEFLAGS+=" POD2MAN=${_core_perl}/pod2man" - export MAKEFLAGS+=" POD2HTML=${_core_perl}/pod2html" - export MAKEFLAGS+=" PODCHECKER=${_core_perl}/podchecker" - export MAKEFLAGS+=" PROVE=${_core_perl}/prove" -} - -build() { - cd "${pkgname}-${pkgver}/libraries/libapparmor/" - ./configure --prefix=/usr \ - --sbindir=/usr/bin \ - --with-perl \ - --with-python - make - cd ../.. - make -C parser - make -C profiles - make -C utils - make -C changehat/pam_apparmor - make -C utils/vim -} - -package() { - cd "$pkgname-$pkgver" - make -C libraries/libapparmor DESTDIR="${pkgdir}" install - make -C changehat/pam_apparmor DESTDIR="${pkgdir}/usr" install - make -C parser DESTDIR="${pkgdir}" install - make -C parser DESTDIR="${pkgdir}" install-systemd - make -C profiles DESTDIR="${pkgdir}" install - make -C utils DESTDIR="${pkgdir}" BINDIR="${pkgdir}/usr/bin" install - # strip perl library - find "${pkgdir}/usr/lib/perl5/" -type f -iname "*.so" -exec strip --strip-unneeded {} \; - # adding files below /etc/apparmor.d to backup array - cd profiles/${pkgname}.d/ - backup=( ${backup[@]} $(find . -type f |sed 's|./|etc/apparmor.d/|') ) -} Copied: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 380452, apparmor/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-09-13 17:50:15 UTC (rev 380453) @@ -0,0 +1,104 @@ +# Maintainer: David Runge +pkgname=apparmor +pkgver=2.13.0 +pkgrel=3 +pkgdesc="Mandatory Access Control (MAC) using Linux Security Module (LSM)" +arch=('x86_64') +url="https://launchpad.net/apparmor; +license=('GPL')