Date: Monday, April 2, 2012 @ 17:45:06
  Author: dreisner
Revision: 155382

upgpkg: syslog-ng 3.3.4-5

- move systemd unit to /usr
- fix location of systemctl

Modified:
  syslog-ng/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2012-04-02 17:44:27 UTC (rev 155381)
+++ PKGBUILD    2012-04-02 21:45:06 UTC (rev 155382)
@@ -1,11 +1,11 @@
 # $Id$
 # Maintainer: Dave Reisner <[email protected]>
-# Maintainer: Eric Bélanger <[email protected]>
-# Maintainer: Aaron Griffin <[email protected]>
+# Contributor: Eric Bélanger <[email protected]>
+# Contributor: Aaron Griffin <[email protected]>
 
 pkgname=syslog-ng
 pkgver=3.3.4
-pkgrel=4
+pkgrel=5
 pkgdesc="Next-generation syslogd with advanced networking and filtering 
capabilities"
 arch=('i686' 'x86_64')
 license=('GPL2')
@@ -44,7 +44,7 @@
     --with-pidfile-dir=/run \
     --disable-spoof-source \
     --enable-systemd \
-    --with-systemdsystemunitdir=/lib/systemd/system
+    --with-systemdsystemunitdir=/usr/lib/systemd/system
 
   make
 }
@@ -57,4 +57,7 @@
   install -Dm644 "$srcdir/syslog-ng.logrotate" 
"$pkgdir/etc/logrotate.d/syslog-ng"
   install -Dm755 "$srcdir/syslog-ng.rc" "$pkgdir/etc/rc.d/syslog-ng"
   install -Dm644 "$srcdir/syslog-ng.conf.d" "$pkgdir/etc/conf.d/syslog-ng"
+
+  # fix location of systemctl
+  sed -i 's@/bin/systemctl@/usr&@' 
"$pkgdir/usr/lib/systemd/system/syslog-ng.service"
 }

Reply via email to