From 973f47dbc306f8d92f9aa8c65dfb5e68a0f23b2f Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 5 Oct 2011 11:42:27 +0000 Subject: main/knock: moved from testing --- main/knock/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ main/knock/knock.confd | 6 ++++++ main/knock/knock.initd | 21 +++++++++++++++++++++ testing/knock/APKBUILD | 38 -------------------------------------- testing/knock/knock.confd | 6 ------ testing/knock/knock.initd | 21 --------------------- 6 files changed, 65 insertions(+), 65 deletions(-) create mode 100644 main/knock/APKBUILD create mode 100644 main/knock/knock.confd create mode 100644 main/knock/knock.initd delete mode 100644 testing/knock/APKBUILD delete mode 100644 testing/knock/knock.confd delete mode 100644 testing/knock/knock.initd diff --git a/main/knock/APKBUILD b/main/knock/APKBUILD new file mode 100644 index 000000000..9e3aeede2 --- /dev/null +++ b/main/knock/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Michael Mason +# Maintainer: Natanael Copa +pkgname=knock +pkgver=0.5 +pkgrel=2 +pkgdesc="A simple port-knocking daemon" +url="http://www.zeroflux.org/projects/knock" +arch="all" +license="GPL" +depends="iptables" +makedepends="libpcap-dev" +install= +subpackages="$pkgname-doc" +source="http://www.zeroflux.org/proj/knock/files/$pkgname-$pkgver.tar.gz + knock.initd + knock.confd" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make -j1 || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make -j1 DESTDIR="$pkgdir" install + + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/knockd +} + +md5sums="ca09d61458974cff90a700aba6120891 knock-0.5.tar.gz +5f05196d700c04287523d184226e2dc2 knock.initd +8067d3b8401a0b5d513c44d3ff436032 knock.confd" diff --git a/main/knock/knock.confd b/main/knock/knock.confd new file mode 100644 index 000000000..301ccc199 --- /dev/null +++ b/main/knock/knock.confd @@ -0,0 +1,6 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/knock/files/knockd.confd,v 1.2 2004/07/15 00:01:08 agriffis Exp $ + +# options for knockd daemon +OPTS="-d -i eth0" diff --git a/main/knock/knock.initd b/main/knock/knock.initd new file mode 100644 index 000000000..b83c5c741 --- /dev/null +++ b/main/knock/knock.initd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/knock/files/knockd.initd,v 1.2 2004/07/15 00:01:08 agriffis Exp $ + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting knockd" + start-stop-daemon --start --quiet --exec /usr/sbin/knockd -- ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping knockd" + start-stop-daemon --stop --quiet --exec /usr/sbin/knockd + eend $? +} diff --git a/testing/knock/APKBUILD b/testing/knock/APKBUILD deleted file mode 100644 index 9e3aeede2..000000000 --- a/testing/knock/APKBUILD +++ /dev/null @@ -1,38 +0,0 @@ -# Contributor: Michael Mason -# Maintainer: Natanael Copa -pkgname=knock -pkgver=0.5 -pkgrel=2 -pkgdesc="A simple port-knocking daemon" -url="http://www.zeroflux.org/projects/knock" -arch="all" -license="GPL" -depends="iptables" -makedepends="libpcap-dev" -install= -subpackages="$pkgname-doc" -source="http://www.zeroflux.org/proj/knock/files/$pkgname-$pkgver.tar.gz - knock.initd - knock.confd" - -build() { - cd "$srcdir/$pkgname-$pkgver" - - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info - make -j1 || return 1 -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make -j1 DESTDIR="$pkgdir" install - - install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd - install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/knockd -} - -md5sums="ca09d61458974cff90a700aba6120891 knock-0.5.tar.gz -5f05196d700c04287523d184226e2dc2 knock.initd -8067d3b8401a0b5d513c44d3ff436032 knock.confd" diff --git a/testing/knock/knock.confd b/testing/knock/knock.confd deleted file mode 100644 index 301ccc199..000000000 --- a/testing/knock/knock.confd +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/knock/files/knockd.confd,v 1.2 2004/07/15 00:01:08 agriffis Exp $ - -# options for knockd daemon -OPTS="-d -i eth0" diff --git a/testing/knock/knock.initd b/testing/knock/knock.initd deleted file mode 100644 index b83c5c741..000000000 --- a/testing/knock/knock.initd +++ /dev/null @@ -1,21 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/knock/files/knockd.initd,v 1.2 2004/07/15 00:01:08 agriffis Exp $ - -depend() { - need net - after firewall -} - -start() { - ebegin "Starting knockd" - start-stop-daemon --start --quiet --exec /usr/sbin/knockd -- ${OPTS} - eend $? -} - -stop() { - ebegin "Stopping knockd" - start-stop-daemon --stop --quiet --exec /usr/sbin/knockd - eend $? -} -- cgit v1.2.3