[arch-commits] Commit in knockd/repos (5 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 12:32:10 UTC 2020


    Date: Tuesday, July 7, 2020 @ 12:32:10
  Author: felixonmars
Revision: 658145

archrelease: copy trunk to community-staging-x86_64

Added:
  knockd/repos/community-staging-x86_64/
  knockd/repos/community-staging-x86_64/PKGBUILD
    (from rev 658143, knockd/trunk/PKGBUILD)
  knockd/repos/community-staging-x86_64/knockd.logrotate
    (from rev 658144, knockd/trunk/knockd.logrotate)
  knockd/repos/community-staging-x86_64/knockd.service
    (from rev 658144, knockd/trunk/knockd.service)
  knockd/repos/community-staging-x86_64/limits.h.patch
    (from rev 658144, knockd/trunk/limits.h.patch)

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

Copied: knockd/repos/community-staging-x86_64/PKGBUILD (from rev 658143, knockd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 12:32:10 UTC (rev 658145)
@@ -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=4
+pkgdesc="A simple port-knocking daemon"
+url="http://www.zeroflux.org/projects/knock"
+arch=('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"
+}

Copied: knockd/repos/community-staging-x86_64/knockd.logrotate (from rev 658144, knockd/trunk/knockd.logrotate)
===================================================================
--- community-staging-x86_64/knockd.logrotate	                        (rev 0)
+++ community-staging-x86_64/knockd.logrotate	2020-07-07 12:32:10 UTC (rev 658145)
@@ -0,0 +1,5 @@
+/var/log/knockd.log {
+   missingok
+   notifempty
+   delaycompress
+}

Copied: knockd/repos/community-staging-x86_64/knockd.service (from rev 658144, knockd/trunk/knockd.service)
===================================================================
--- community-staging-x86_64/knockd.service	                        (rev 0)
+++ community-staging-x86_64/knockd.service	2020-07-07 12:32:10 UTC (rev 658145)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Port-Knocking Daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/knockd
+
+[Install]
+WantedBy=multi-user.target

Copied: knockd/repos/community-staging-x86_64/limits.h.patch (from rev 658144, knockd/trunk/limits.h.patch)
===================================================================
--- community-staging-x86_64/limits.h.patch	                        (rev 0)
+++ community-staging-x86_64/limits.h.patch	2020-07-07 12:32:10 UTC (rev 658145)
@@ -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