[arch-commits] Commit in ferm/trunk (PKGBUILD)

Sébastien Luttringer seblu at nymeria.archlinux.org
Mon Jul 8 00:21:22 UTC 2013


    Date: Monday, July 8, 2013 @ 02:21:22
  Author: seblu
Revision: 93630

upgpkg: ferm 2.2-2

- use our service file with reload and correct path

Modified:
  ferm/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-07-07 21:15:49 UTC (rev 93629)
+++ PKGBUILD	2013-07-08 00:21:22 UTC (rev 93630)
@@ -5,7 +5,7 @@
 
 pkgname=ferm
 pkgver=2.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Tool to maintain complex firewalls'
 arch=('any')
 url='http://ferm.foo-projects.org/'
@@ -20,18 +20,16 @@
          '24f425eda3de65ce15e7b013db3800bc')
 
 package() {
-  # systemd
-  install -Dm 644 $pkgname.service \
-    "$pkgdir/usr/lib/systemd/system/$pkgname.service"
   # software setup
   cd $pkgname-$pkgver
   make PREFIX="$pkgdir/usr" install
+  cd "$pkgdir"
   # setup default config
-  install -D -m 644 "$pkgdir/usr/share/doc/ferm/examples/workstation.ferm" \
-    "$pkgdir/etc/$pkgname.conf"
+  install -D -m 644 usr/share/doc/ferm/examples/workstation.ferm etc/$pkgname.conf
   # /usr merge
-  cd "$pkgdir/usr"
-  mv sbin bin
+  mv usr/sbin usr/bin
+  # systemd
+  install -Dm 644 "$srcdir/$pkgname.service" usr/lib/systemd/system/$pkgname.service
 }
 
 # vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list