[arch-commits] Commit in knockd/trunk (PKGBUILD limits.h.patch)

Tom Killian tom at archlinux.org
Wed Dec 3 09:44:51 UTC 2008


    Date: Wednesday, December 3, 2008 @ 04:44:51
  Author: tom
Revision: 20410

upgpkg: knockd 0.5-6
    rebuild for libpcap 1.0.0

Added:
  knockd/trunk/limits.h.patch
Modified:
  knockd/trunk/PKGBUILD

----------------+
 PKGBUILD       |   14 ++++++++------
 limits.h.patch |   10 ++++++++++
 2 files changed, 18 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-12-03 08:46:40 UTC (rev 20409)
+++ PKGBUILD	2008-12-03 09:44:51 UTC (rev 20410)
@@ -4,24 +4,26 @@
 
 pkgname=knockd
 pkgver=0.5
-pkgrel=5
+pkgrel=6
 pkgdesc="A simple port-knocking daemon"
 arch=(i686 x86_64)
 url="http://www.zeroflux.org/knock/"
 license=(GPL)
-depends=('libpcap>=0.9.8')
+depends=('libpcap>=1.0.0')
 backup=('etc/knockd.conf')
 source=(http://www.zeroflux.org/knock/files/knock-$pkgver.tar.gz
-        knockd knockd.logrotate)
-md5sums=('ca09d61458974cff90a700aba6120891'
-         '72302d899887996694586c3d479de245'
-         '56a4113ec89ba2e96f79ab23c914d52a')
+        knockd knockd.logrotate limits.h.patch)
 
 build() {
   cd $startdir/src/knock-$pkgver
+  patch -Np0 -i ../limits.h.patch || return 1
   ./configure --prefix=/usr
   make || return 1
   make DESTDIR=$startdir/pkg install
   install -D -m755 ../knockd $startdir/pkg/etc/rc.d/knockd
   install -D -m644 ../knockd.logrotate $startdir/pkg/etc/logrotate.d/knockd
 }
+md5sums=('ca09d61458974cff90a700aba6120891'
+         '72302d899887996694586c3d479de245'
+         '56a4113ec89ba2e96f79ab23c914d52a'
+         'e56dc7359f36c3b07da6710c404d671e')

Added: limits.h.patch
===================================================================
--- limits.h.patch	                        (rev 0)
+++ limits.h.patch	2008-12-03 09:44:51 UTC (rev 20410)
@@ -0,0 +1,10 @@
+--- src/knockd.c.orig	2008-12-03 07:21:14.643255773 +0000
++++ src/knockd.c	2008-12-03 07:24:59.606701396 +0000
+@@ -46,6 +46,7 @@
+ #include <syslog.h>
+ #include <pcap.h>
+ #include <errno.h>
++#include <limits.h>
+ #include "list.h"
+ 
+ static char version[] = "0.5";




More information about the arch-commits mailing list