[arch-commits] Commit in incron/trunk (PKGBUILD incron.install incrond.service)

Sergej Pupykin spupykin at nymeria.archlinux.org
Tue May 28 13:26:49 EDT 2013


    Date: Tuesday, May 28, 2013 @ 19:26:49
  Author: spupykin
Revision: 91857

upgpkg: incron 0.5.10-5

upd

Modified:
  incron/trunk/PKGBUILD
  incron/trunk/incron.install
  incron/trunk/incrond.service

-----------------+
 PKGBUILD        |   11 ++++++++---
 incron.install  |    5 ++---
 incrond.service |    2 +-
 3 files changed, 11 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-28 17:26:45 UTC (rev 91856)
+++ PKGBUILD	2013-05-28 17:26:49 UTC (rev 91857)
@@ -5,7 +5,7 @@
 
 pkgname=incron
 pkgver=0.5.10
-pkgrel=4
+pkgrel=5
 pkgdesc="Like the regular cron but is driven by filesystem events instead of time periods"
 arch=('i686' 'x86_64')
 url="http://incron.aiken.cz/"
@@ -16,13 +16,18 @@
 source=("http://inotify.aiken.cz/download/incron/$pkgname-$pkgver.tar.gz"
 	'incrond.service')
 md5sums=('67f8b671db8169edccc8ef11c7d2c8be'
-         '859a90af9e4efe40db381ea07167a66a')
+         '4be206ba6ecacd9d2006cdc72b4604db')
 
-build() {
+prepare() {
   cd "${srcdir}"/$pkgname-$pkgver
   sed -i '1,1i#include <unistd.h>' inotify-cxx.cpp icd-main.cpp
   sed -i '1,1i#include <stdio.h>' icd-main.cpp inotify-cxx.cpp usertable.cpp appargs.cpp
   sed -i 's|strchr(s,|(char*)strchr(s,|' incroncfg.cpp
+  sed -i 's|$(DESTDIR)$(PREFIX)/sbin/|$(DESTDIR)$(PREFIX)/bin/|g' Makefile
+}
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
   make
 }
 

Modified: incron.install
===================================================================
--- incron.install	2013-05-28 17:26:45 UTC (rev 91856)
+++ incron.install	2013-05-28 17:26:49 UTC (rev 91857)
@@ -8,7 +8,6 @@
 
 pre_remove() {
   [ -h /var/service/incron ] && rm /var/service/incron
-  /etc/rc.d/incron stop
-  usr/sbin/userdel incron >& /dev/null
-  usr/sbin/groupdel incron >& /dev/null
+  userdel incron >& /dev/null
+  groupdel incron >& /dev/null
 }

Modified: incrond.service
===================================================================
--- incrond.service	2013-05-28 17:26:45 UTC (rev 91856)
+++ incrond.service	2013-05-28 17:26:49 UTC (rev 91857)
@@ -4,7 +4,7 @@
 [Service]
 Type=forking
 PIDFile=/run/incrond.pid
-ExecStart=/usr/sbin/incrond
+ExecStart=/usr/bin/incrond
 
 [Install]
 WantedBy=multi-user.target



More information about the arch-commits mailing list