[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: a1384b0aedb31eb2620e19f0005b4251691fc8d4 Author: Michael Weber gentoo org> AuthorDate: Fri Dec 22 09:19:33 2017 + Commit: Michael Weber gentoo org> CommitDate: Fri Dec 22 09:25:46 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1384b0a net-misc/knock: Remove old version. Package-Manager: Portage-2.3.19, Repoman-2.3.6 net-misc/knock/Manifest | 1 - net-misc/knock/knock-0.6.ebuild | 47 - 2 files changed, 48 deletions(-) diff --git a/net-misc/knock/Manifest b/net-misc/knock/Manifest index f976949c909..136bf879588 100644 --- a/net-misc/knock/Manifest +++ b/net-misc/knock/Manifest @@ -1,2 +1 @@ -DIST knock-0.6.tar.gz 125772 BLAKE2B e1ba176a68620ad8e1947ff136c87786e53a88188f5bced106a6b9d19703c9390bb1ee7467cade854258e2d95331a957df0bc73bab487a5b2c5fc6a5495b3bc5 SHA512 79179fe0358abfeb001b787522154b5045f9dd679e8b6bea0f375a064e56ed5166c20dee094b42d56338afdf19041c94f4c86b8d5d385d1cc02ca525c1b73714 DIST knock-0.7.tar.gz 110791 BLAKE2B 19e63854800f4ef77199fb4005dabd749f16681068d205a924fa0bc926d2cc31a69c1f62ffa8ec335209cfa987e7db92d9332b43e971f71528f69740ced06391 SHA512 eab5d855f7111d9411e84a56a15e8ea74f41c5bd9dee27ab49f0d8d509eeeb96a60c508928c92916dc0ec9b737c447ca8ca5ed4db6479b389549d60e76a85aa7 diff --git a/net-misc/knock/knock-0.6.ebuild b/net-misc/knock/knock-0.6.ebuild deleted file mode 100644 index d2885f75f62..000 --- a/net-misc/knock/knock-0.6.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -DESCRIPTION="A simple port-knocking daemon" -HOMEPAGE="http://www.zeroflux.org/projects/knock"; -SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc sparc x86" -IUSE="+server" - -DEPEND="server? ( net-libs/libpcap )" -RDEPEND="${DEPEND} - server? ( sys-apps/openrc )" - -src_prepare() { - sed -e "/^AM_CFLAGS/s: -g : :" \ - -e "/dist_doc_DATA/s:COPYING::" \ - -i Makefile.in || die - sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \ - -i knockd.conf || die -} - -src_configure() { - econf $(use_enable server knockd) -} - -src_install() { - emake DESTDIR="${D}" docdir="${EROOT}/usr/share/doc/${PF}" install - - if use server ; then - newinitd "${FILESDIR}"/knockd.initd.2 knock - newconfd "${FILESDIR}"/knockd.confd.2 knock - fi -} - -pkg_postinst() { - if use server && ! has_version net-firewall/iptables ; then - einfo - elog "You're really encouraged to install net-firewall/iptables to" - elog "actually modify your firewall and use the example configuration." - einfo - fi -}
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 94d458391b2959a5dd4f2ca7284aed890043409c Author: Michael Weber gentoo org> AuthorDate: Fri Dec 22 09:25:37 2017 + Commit: Michael Weber gentoo org> CommitDate: Fri Dec 22 09:25:48 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94d45839 net-misc/knock: Drop dependency on openrc. Bug: https://bugs.gentoo.org/641980 Package-Manager: Portage-2.3.19, Repoman-2.3.6 net-misc/knock/knock-0.7.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net-misc/knock/knock-0.7.ebuild b/net-misc/knock/knock-0.7.ebuild index 4d4cd638c54..2b61ae365f3 100644 --- a/net-misc/knock/knock-0.7.ebuild +++ b/net-misc/knock/knock-0.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=4 @@ -13,8 +13,7 @@ KEYWORDS="amd64 ppc sparc x86" IUSE="+server" DEPEND="server? ( net-libs/libpcap )" -RDEPEND="${DEPEND} - server? ( sys-apps/openrc )" +RDEPEND="${DEPEND}" src_prepare() { sed -e "/^AM_CFLAGS/s: -g : :" \
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: d808248073b4377eb80b7203fc3fd6356710c08e Author: David Seifert gentoo org> AuthorDate: Sun Nov 26 12:46:34 2017 + Commit: David Seifert gentoo org> CommitDate: Sun Nov 26 23:21:27 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8082480 net-misc/knock: [QA] Consistent whitespace in metadata.xml net-misc/knock/metadata.xml | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/net-misc/knock/metadata.xml b/net-misc/knock/metadata.xml index 8d375f5d42e..f7fb57167ee 100644 --- a/net-misc/knock/metadata.xml +++ b/net-misc/knock/metadata.xml @@ -1,11 +1,11 @@ http://www.gentoo.org/dtd/metadata.dtd";> - -x...@gentoo.org - Michael Weber - - -Installs the knockd server daemon. - + + x...@gentoo.org + Michael Weber + + + Installs the knockd server daemon. +
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 15c5ce385b135d4dfb5b1883510450f2df9fcbe8 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jun 21 18:47:40 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jun 21 18:47:40 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15c5ce38 net-misc/knock: Drop 0.7 (r0) Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> net-misc/knock/knock-0.7.ebuild | 46 - 1 file changed, 46 deletions(-) diff --git a/net-misc/knock/knock-0.7.ebuild b/net-misc/knock/knock-0.7.ebuild deleted file mode 100644 index 2b61ae365f3..000 --- a/net-misc/knock/knock-0.7.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -DESCRIPTION="A simple port-knocking daemon" -HOMEPAGE="http://www.zeroflux.org/projects/knock"; -SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc sparc x86" -IUSE="+server" - -DEPEND="server? ( net-libs/libpcap )" -RDEPEND="${DEPEND}" - -src_prepare() { - sed -e "/^AM_CFLAGS/s: -g : :" \ - -e "/dist_doc_DATA/s:COPYING::" \ - -i Makefile.in || die - sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \ - -i knockd.conf || die -} - -src_configure() { - econf $(use_enable server knockd) -} - -src_install() { - emake DESTDIR="${D}" docdir="${EROOT}/usr/share/doc/${PF}" install - - if use server ; then - newinitd "${FILESDIR}"/knockd.initd.2 knock - newconfd "${FILESDIR}"/knockd.confd.2 knock - fi -} - -pkg_postinst() { - if use server && ! has_version net-firewall/iptables ; then - einfo - elog "You're really encouraged to install net-firewall/iptables to" - elog "actually modify your firewall and use the example configuration." - einfo - fi -}
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: ea7a05e6988b68c628d6ead1f3adf830d17c3a83 Author: Michael Mair-Keimberger gmail com> AuthorDate: Sun Jun 21 17:52:30 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jun 21 18:44:09 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea7a05e6 net-misc/knock: EAPI7, use HTTPS, fix LICENSE Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Michael Mair-Keimberger gmail.com> Closes: https://github.com/gentoo/gentoo/pull/16365 Signed-off-by: Andreas Sturmlechner gentoo.org> net-misc/knock/knock-0.7-r1.ebuild | 47 ++ 1 file changed, 47 insertions(+) diff --git a/net-misc/knock/knock-0.7-r1.ebuild b/net-misc/knock/knock-0.7-r1.ebuild new file mode 100644 index 000..c27abd8fac2 --- /dev/null +++ b/net-misc/knock/knock-0.7-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Simple port-knocking daemon" +HOMEPAGE="https://www.zeroflux.org/projects/knock + https://github.com/jvinet/knock"; +SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="+server" + +DEPEND="server? ( net-libs/libpcap )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -e "/^AM_CFLAGS/s: -g : :" \ + -e "/dist_doc_DATA/s:COPYING::" \ + -i Makefile.in || die + sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \ + -i knockd.conf || die +} + +src_configure() { + econf $(use_enable server knockd) +} + +src_install() { + emake DESTDIR="${D}" docdir="${EROOT}/usr/share/doc/${PF}" install + + if use server ; then + newinitd "${FILESDIR}"/knockd.initd.2 knock + newconfd "${FILESDIR}"/knockd.confd.2 knock + fi +} + +pkg_postinst() { + if use server && ! has_version net-firewall/iptables ; then + elog "You're really encouraged to install net-firewall/iptables to" + elog "actually modify your firewall and use the example configuration." + fi +}
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 7dc333953ab3dd19624ca9b1622a0a5d71b47931 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jun 21 18:47:14 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jun 21 18:47:14 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dc33395 net-misc/knock: Rollover stable keywords No need to employ arch teams here. Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> net-misc/knock/knock-0.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-misc/knock/knock-0.7-r1.ebuild b/net-misc/knock/knock-0.7-r1.ebuild index c27abd8fac2..117341a6615 100644 --- a/net-misc/knock/knock-0.7-r1.ebuild +++ b/net-misc/knock/knock-0.7-r1.ebuild @@ -10,7 +10,7 @@ SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" +KEYWORDS="amd64 ppc sparc x86" IUSE="+server" DEPEND="server? ( net-libs/libpcap )"
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: a216984edccce985ef0c815bd561f3b80db7e7c5 Author: Sam James gentoo org> AuthorDate: Wed Mar 10 00:32:16 2021 + Commit: Sam James gentoo org> CommitDate: Wed Mar 10 00:32:16 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a216984e net-misc/knock: drop invalid EROOT usage Signed-off-by: Sam James gentoo.org> net-misc/knock/knock-0.7-r1.ebuild | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net-misc/knock/knock-0.7-r1.ebuild b/net-misc/knock/knock-0.7-r1.ebuild index 117341a6615..5d3643d7508 100644 --- a/net-misc/knock/knock-0.7-r1.ebuild +++ b/net-misc/knock/knock-0.7-r1.ebuild @@ -1,11 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DESCRIPTION="Simple port-knocking daemon" -HOMEPAGE="https://www.zeroflux.org/projects/knock - https://github.com/jvinet/knock"; +HOMEPAGE="https://www.zeroflux.org/projects/knock"; SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; LICENSE="GPL-2+" @@ -22,6 +21,7 @@ src_prepare() { sed -e "/^AM_CFLAGS/s: -g : :" \ -e "/dist_doc_DATA/s:COPYING::" \ -i Makefile.in || die + sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \ -i knockd.conf || die } @@ -31,7 +31,7 @@ src_configure() { } src_install() { - emake DESTDIR="${D}" docdir="${EROOT}/usr/share/doc/${PF}" install + emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}" install if use server ; then newinitd "${FILESDIR}"/knockd.initd.2 knock
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: e26f815c9d50761de7b262c0880738077cb84bcd Author: Sam James gentoo org> AuthorDate: Wed Mar 10 00:32:55 2021 + Commit: Sam James gentoo org> CommitDate: Wed Mar 10 00:32:55 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e26f815c net-misc/knock: add github upstream metadata Signed-off-by: Sam James gentoo.org> net-misc/knock/metadata.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net-misc/knock/metadata.xml b/net-misc/knock/metadata.xml index 46f1937fc92..8def26b02c6 100644 --- a/net-misc/knock/metadata.xml +++ b/net-misc/knock/metadata.xml @@ -5,4 +5,7 @@ Installs the knockd server daemon. + + jvinet/knock +
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 55cd8b2424dd216267d5f51295a54929e40bd786 Author: Agostino Sarubbo gentoo org> AuthorDate: Thu Jul 29 06:39:04 2021 + Commit: Agostino Sarubbo gentoo org> CommitDate: Thu Jul 29 06:39:04 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55cd8b24 net-misc/knock: sparc stable wrt bug #804816 Package-Manager: Portage-3.0.20, Repoman-3.0.2 RepoMan-Options: --include-arches="sparc" Signed-off-by: Agostino Sarubbo gentoo.org> net-misc/knock/knock-0.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-misc/knock/knock-0.8.ebuild b/net-misc/knock/knock-0.8.ebuild index f4a62261898..392a897ab6a 100644 --- a/net-misc/knock/knock-0.8.ebuild +++ b/net-misc/knock/knock-0.8.ebuild @@ -9,7 +9,7 @@ SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" +KEYWORDS="~amd64 ~ppc sparc ~x86" IUSE="+server" DEPEND="server? ( net-libs/libpcap )"
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 16e67e541dae13310ca85c01f2de9321dc976023 Author: Agostino Sarubbo gentoo org> AuthorDate: Thu Jul 29 06:44:23 2021 + Commit: Agostino Sarubbo gentoo org> CommitDate: Thu Jul 29 06:44:23 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16e67e54 net-misc/knock: x86 stable wrt bug #804816 Package-Manager: Portage-3.0.20, Repoman-3.0.2 RepoMan-Options: --include-arches="x86" Signed-off-by: Agostino Sarubbo gentoo.org> net-misc/knock/knock-0.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-misc/knock/knock-0.8.ebuild b/net-misc/knock/knock-0.8.ebuild index 392a897ab6a..ac48004cf13 100644 --- a/net-misc/knock/knock-0.8.ebuild +++ b/net-misc/knock/knock-0.8.ebuild @@ -9,7 +9,7 @@ SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~ppc sparc ~x86" +KEYWORDS="~amd64 ~ppc sparc x86" IUSE="+server" DEPEND="server? ( net-libs/libpcap )"
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 9779dbc714ae0c15eef70b12aaf40b98af11ef0b Author: Agostino Sarubbo gentoo org> AuthorDate: Thu Jul 29 07:06:38 2021 + Commit: Agostino Sarubbo gentoo org> CommitDate: Thu Jul 29 07:06:38 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9779dbc7 net-misc/knock: amd64 stable wrt bug #804816 Package-Manager: Portage-3.0.20, Repoman-3.0.2 RepoMan-Options: --include-arches="amd64" Signed-off-by: Agostino Sarubbo gentoo.org> net-misc/knock/knock-0.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-misc/knock/knock-0.8.ebuild b/net-misc/knock/knock-0.8.ebuild index ac48004cf13..0bf3cea3ace 100644 --- a/net-misc/knock/knock-0.8.ebuild +++ b/net-misc/knock/knock-0.8.ebuild @@ -9,7 +9,7 @@ SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~ppc sparc x86" +KEYWORDS="amd64 ~ppc sparc x86" IUSE="+server" DEPEND="server? ( net-libs/libpcap )"
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 58e2a07a8e94ee96978f1373a42ca545ade757e5 Author: Agostino Sarubbo gentoo org> AuthorDate: Fri Jul 30 15:12:21 2021 + Commit: Agostino Sarubbo gentoo org> CommitDate: Fri Jul 30 15:12:21 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e2a07a net-misc/knock: ppc stable wrt bug #804816 Package-Manager: Portage-3.0.20, Repoman-3.0.2 RepoMan-Options: --include-arches="ppc" Signed-off-by: Agostino Sarubbo gentoo.org> net-misc/knock/knock-0.8.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-misc/knock/knock-0.8.ebuild b/net-misc/knock/knock-0.8.ebuild index 0bf3cea3ace..5d3643d7508 100644 --- a/net-misc/knock/knock-0.8.ebuild +++ b/net-misc/knock/knock-0.8.ebuild @@ -9,7 +9,7 @@ SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; LICENSE="GPL-2+" SLOT="0" -KEYWORDS="amd64 ~ppc sparc x86" +KEYWORDS="amd64 ppc sparc x86" IUSE="+server" DEPEND="server? ( net-libs/libpcap )"
[gentoo-commits] repo/gentoo:master commit in: net-misc/knock/
commit: 7ac379aa5c5599085c69e4e4d197cd73fc6eadb7 Author: Sam James gentoo org> AuthorDate: Sun Apr 25 05:27:41 2021 + Commit: Sam James gentoo org> CommitDate: Sun Apr 25 06:18:36 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ac379aa net-misc/knock: add 0.8 Signed-off-by: Sam James gentoo.org> net-misc/knock/Manifest | 1 + net-misc/knock/knock-0.8.ebuild | 47 + 2 files changed, 48 insertions(+) diff --git a/net-misc/knock/Manifest b/net-misc/knock/Manifest index 136bf879588..87dc877813a 100644 --- a/net-misc/knock/Manifest +++ b/net-misc/knock/Manifest @@ -1 +1,2 @@ DIST knock-0.7.tar.gz 110791 BLAKE2B 19e63854800f4ef77199fb4005dabd749f16681068d205a924fa0bc926d2cc31a69c1f62ffa8ec335209cfa987e7db92d9332b43e971f71528f69740ced06391 SHA512 eab5d855f7111d9411e84a56a15e8ea74f41c5bd9dee27ab49f0d8d509eeeb96a60c508928c92916dc0ec9b737c447ca8ca5ed4db6479b389549d60e76a85aa7 +DIST knock-0.8.tar.gz 377107 BLAKE2B 1397ed04b1a202db08b0bd3a8a26745cd2e8390604c9dde7d18182e7ad4ddd19da074b1b54ea1ed59b1576f3110e21bac722c90a2cd3820910bdaa0026eec395 SHA512 6511e29f604cebc4a4048f5e49c1b73db0bbe0041a88f7c8559fa1a60ea894aadb72a608c423f867a5a4dddb06d00a0713863473981e42273662a77364c260ec diff --git a/net-misc/knock/knock-0.8.ebuild b/net-misc/knock/knock-0.8.ebuild new file mode 100644 index 000..f4a62261898 --- /dev/null +++ b/net-misc/knock/knock-0.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Simple port-knocking daemon" +HOMEPAGE="https://www.zeroflux.org/projects/knock"; +SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz"; + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="+server" + +DEPEND="server? ( net-libs/libpcap )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -e "/^AM_CFLAGS/s: -g : :" \ + -e "/dist_doc_DATA/s:COPYING::" \ + -i Makefile.in || die + + sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \ + -i knockd.conf || die +} + +src_configure() { + econf $(use_enable server knockd) +} + +src_install() { + emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}" install + + if use server ; then + newinitd "${FILESDIR}"/knockd.initd.2 knock + newconfd "${FILESDIR}"/knockd.confd.2 knock + fi +} + +pkg_postinst() { + if use server && ! has_version net-firewall/iptables ; then + elog "You're really encouraged to install net-firewall/iptables to" + elog "actually modify your firewall and use the example configuration." + fi +}