[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Sep 20 18:36:50 UTC 2018
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
===================================================================
--- PKGBUILD 2018-09-20 18:36:31 UTC (rev 383763)
+++ PKGBUILD 2018-09-20 18:36:49 UTC (rev 383764)
@@ -1,104 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-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) <apparmor at lists.ubuntu.com>
-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)
+++ PKGBUILD 2018-09-20 18:36:49 UTC (rev 383764)
@@ -0,0 +1,98 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+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) <apparmor at lists.ubuntu.com>
+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) )
+}
More information about the arch-commits
mailing list