[arch-commits] Commit in apparmor/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Sat Sep 22 15:39:16 UTC 2018


    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
===================================================================
--- PKGBUILD	2018-09-22 15:39:09 UTC (rev 384166)
+++ PKGBUILD	2018-09-22 15:39:16 UTC (rev 384167)
@@ -1,98 +0,0 @@
-# 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) )
-}

Copied: apparmor/repos/community-testing-x86_64/PKGBUILD (from rev 384166, apparmor/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-22 15:39:16 UTC (rev 384167)
@@ -0,0 +1,102 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+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) <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 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) )
+}



More information about the arch-commits mailing list