[arch-commits] Commit in (7 files)

Levente Polyak anthraxx at archlinux.org
Sun Sep 13 03:13:07 UTC 2015


    Date: Sunday, September 13, 2015 @ 05:13:07
  Author: anthraxx
Revision: 140021

addpkg: knockd 0.7-2

Added:
  knockd/
  knockd/repos/
  knockd/trunk/
  knockd/trunk/PKGBUILD
  knockd/trunk/knockd.logrotate
  knockd/trunk/knockd.service
  knockd/trunk/limits.h.patch

------------------+
 PKGBUILD         |   42 ++++++++++++++++++++++++++++++++++++++++++
 knockd.logrotate |    5 +++++
 knockd.service   |    9 +++++++++
 limits.h.patch   |   10 ++++++++++
 4 files changed, 66 insertions(+)

Added: knockd/trunk/PKGBUILD
===================================================================
--- knockd/trunk/PKGBUILD	                        (rev 0)
+++ knockd/trunk/PKGBUILD	2015-09-13 03:13:07 UTC (rev 140021)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Mike Sampson <mike at sambodata dot com>
+# Contributor: Steven <steven at stebalien dot com>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=knockd
+pkgver=0.7
+pkgrel=2
+pkgdesc="A simple port-knocking daemon"
+url="http://www.zeroflux.org/projects/knock"
+arch=('i686' 'x86_64')
+license=('GPL2')
+depends=('libpcap>=1.0.0')
+backup=('etc/knockd.conf')
+source=(${pkgname}-${pkgver}.tar.gz::http://www.zeroflux.org/proj/knock/files/knock-${pkgver}.tar.gz
+        knockd.logrotate
+		knockd.service
+		limits.h.patch)
+sha512sums=('eab5d855f7111d9411e84a56a15e8ea74f41c5bd9dee27ab49f0d8d509eeeb96a60c508928c92916dc0ec9b737c447ca8ca5ed4db6479b389549d60e76a85aa7'
+            '3ea2ae9392d3d79bb5df6b75090f6c1a9548979e01dcd4a75471cfa46dbc70401a166496b5158f90fc61326a554acacc38f8605aab02b5b53b75d60a7d80648a'
+            '6e5fec91e07fb74169798f320607bd413258af0af48bd2a9c006a02bc97ce4ea9a5293eb9e166b9870c086bf147fca1462b98b3d914d7a28708e9fa2cc9c85cb'
+            '5776b8670aa439e77d5ac873b63dd5e4d4b5bfb8f1e8fbf49c7d0c3c8f97e47dca761ef1374b742182b0d9928dba4b719442c5f01ca29249a6aa6da6cbf283ed')
+
+prepare() {
+  cd knock-${pkgver}
+  patch -Np0 < "${srcdir}/limits.h.patch"
+}
+
+build() {
+  cd knock-${pkgver}
+  ./configure --prefix=/usr --sbin=/usr/bin --sysconfdir=/etc
+  make
+}
+
+package() {
+  cd knock-${pkgver}
+  make DESTDIR="${pkgdir}" MANDIR=/usr/share/man install
+  install -Dm 644 "${srcdir}/knockd.service" "${pkgdir}/usr/lib/systemd/system/knockd.service"
+  install -Dm 644 "${srcdir}/knockd.logrotate" "${pkgdir}/etc/logrotate.d/knockd"
+  install -Dm 644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README"
+}

Added: knockd/trunk/knockd.logrotate
===================================================================
--- knockd/trunk/knockd.logrotate	                        (rev 0)
+++ knockd/trunk/knockd.logrotate	2015-09-13 03:13:07 UTC (rev 140021)
@@ -0,0 +1,5 @@
+/var/log/knockd.log {
+   missingok
+   notifempty
+   delaycompress
+}

Added: knockd/trunk/knockd.service
===================================================================
--- knockd/trunk/knockd.service	                        (rev 0)
+++ knockd/trunk/knockd.service	2015-09-13 03:13:07 UTC (rev 140021)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Port-Knocking Daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/knockd
+
+[Install]
+WantedBy=multi-user.target

Added: knockd/trunk/limits.h.patch
===================================================================
--- knockd/trunk/limits.h.patch	                        (rev 0)
+++ knockd/trunk/limits.h.patch	2015-09-13 03:13:07 UTC (rev 140021)
@@ -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