Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554690 - net-firewall/fwknop - needs systemd service files
Summary: net-firewall/fwknop - needs systemd service files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Coacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2015-07-13 00:12 UTC by Reuben Martin
Modified: 2015-07-29 15:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fwknopd.service (fwknopd.service,235 bytes, text/plain)
2015-07-19 03:25 UTC, Coacher
Details
fwknopd.init (fwknopd.init,2.60 KB, text/plain)
2015-07-19 03:27 UTC, Coacher
Details
fwknopd.init.diff (fwknopd.init.diff,2.58 KB, patch)
2015-07-19 03:28 UTC, Coacher
Details | Diff
fwknopd.confd (fwknopd.confd,475 bytes, text/plain)
2015-07-29 09:49 UTC, Coacher
Details
fwknopd-2.6.6.ebuild.diff (diff,638 bytes, patch)
2015-07-29 09:49 UTC, Coacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2015-07-13 00:12:00 UTC
The daemon component need a service file.

Quick google found one here:
https://github.com/ArchAssault-Project/archassault/blob/master/packages/fwknop/fwknopd.service

Not sure if there exists a proper alias to use in order to coordinate between the different firewall services available (e.g. iptables, shorewall, firewalld, etc,) Or for that matter if there even needs to be any coordination.

Reproducible: Always
Comment 1 Coacher 2015-07-14 17:47:18 UTC
Thanks for the report!

I already have the fwknopd systemd unit in my overlay. I was just waiting for a new fwknop version to come out to proceed everything in one go.

There are some adjustments pending for the initscript as well. I will update this bug with the needed info soon.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2015-07-16 08:44:50 UTC
Coacher, any idea on a time line for the next release?
Comment 3 Coacher 2015-07-19 03:24:27 UTC
(In reply to Ian Delaney from comment #2)
> Coacher, any idea on a time line for the next release?

Initially changelog mentioned May. Right now it is 2.6.7-pre1 so probably soon, but no concrete dates.
Comment 4 Coacher 2015-07-19 03:25:00 UTC
Created attachment 407114 [details]
fwknopd.service

Here we go.
Comment 5 Coacher 2015-07-19 03:27:13 UTC
Created attachment 407116 [details]
fwknopd.init

Also OpenRC initscript needs some love.

@proxy-maint, please, update it as well.
Comment 6 Coacher 2015-07-19 03:28:48 UTC
Created attachment 407118 [details, diff]
fwknopd.init.diff

A diff of the required fwknopd.init changes.
Comment 7 Coacher 2015-07-19 03:29:57 UTC
fwknop-2.6.6.ebuild requires a one-line patch as well:

--- a/var/portage/net-firewall/fwknop/fwknop-2.6.6.ebuild
+++ b/net-firewall/fwknop/fwknop-2.6.6-r9999.ebuild
@@ -1,6 +1,6 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwknop/fwknop-2.6.6.ebuild,v 1.2 2015/05/01 04:45:42 idella4 Exp $
+# $Header: $

 EAPI=5

@@ -90,6 +90,7 @@ src_install() {
        if use server; then
                newinitd "${FILESDIR}/fwknopd.init" fwknopd
                newconfd "${FILESDIR}/fwknopd.confd" fwknopd
+               systemd_dounit "${FILESDIR}/fwknopd.service"
                systemd_newtmpfilesd "${FILESDIR}/fwknopd.tmpfiles.conf" fwknopd.conf
        fi
Comment 8 Coacher 2015-07-19 03:43:40 UTC
I've also submitted our systemd unit file and tmpfiles.d configuration upstream so it can be reused by others.

See https://github.com/mrash/fwknop/pull/164.
Comment 9 Coacher 2015-07-19 03:49:14 UTC
(In reply to Coacher from comment #8)
> I've also submitted our systemd unit file and tmpfiles.d configuration
> upstream so it can be reused by others.
> 
> See https://github.com/mrash/fwknop/pull/164.

Wow, it got merged in less than 5 minutes.

@proxy-maint, I think we shall wait for 2.6.7 release and if it is delayed for more than 1-2 weeks we proceed and add these files I've attached to the tree.

What do you think?
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2015-07-21 14:47:31 UTC
I think we still need a time line for the next release. Anything over a week or 2 I am inclined to add the init scripts to the current version. It was your idea to await a next release.
Comment 11 Ian Delaney (RETIRED) gentoo-dev 2015-07-25 12:14:15 UTC
Let's do as you suggest and make 2015-07-19 + 2 weeks a timeout date to add  / utilise your 3 attached files.
Comment 12 Coacher 2015-07-27 09:20:42 UTC
(In reply to Ian Delaney from comment #11)
> Let's do as you suggest and make 2015-07-19 + 2 weeks a timeout date to add 
> / utilise your 3 attached files.

Looks good to me. Agreed.

I just don't want to add files and then remove them as soon as 2.6.7 rolls out.
Comment 13 Ian Delaney (RETIRED) gentoo-dev 2015-07-28 11:47:40 UTC
Having no clue to a future release makes for non management. Not acceptable. Adding the files makes decisive and makes a fix in preference to waiting for who knows what.
Comment 14 Coacher 2015-07-29 09:49:13 UTC
Created attachment 407870 [details]
fwknopd.confd

A minor comment update for clarity.

Diff:
--- a/net-firewall/fwknop/files/fwknopd.confd
+++ b/net-firewall/fwknop/files/fwknopd.confd
@@ -1,14 +1,14 @@
 # /etc/conf.d/fwknopd: config file for /etc/init.d/fwknopd

-# Path to the fwknopd config files
+# Path to the fwknopd config directory (needs to be an absolute path).

 FWKNOPD_CONFDIR="/etc/fwknop"


-# Options to pass to fwknopd daemon.
+# Additional options to pass to fwknopd.
 # Refer to the fwknopd(8) manpage for more information.

-FWKNOPD_OPTS=""
+#FWKNOPD_OPTS=""


 # Pid file to use (needs to be an absolute path).
Comment 15 Coacher 2015-07-29 09:49:42 UTC
Created attachment 407872 [details, diff]
fwknopd-2.6.6.ebuild.diff
Comment 16 Ian Delaney (RETIRED) gentoo-dev 2015-07-29 11:43:00 UTC
*fwknop-2.6.6-r1 (29 Jul 2015)

  29 Jul 2015; Ian Delaney <idella4@gentoo.org> +files/fwknopd.service,
  +fwknop-2.6.6-r1.ebuild, -fwknop-2.6.6.ebuild, files/fwknopd.confd,
  files/fwknopd.init:
  revbump; new script files added to equip for systemd, other script files
  edited from patches via bug #554690, remove defunct fwknop-2.6.6.ebuild to
  avoid any mixing of updated scripts
Comment 17 Coacher 2015-07-29 15:37:52 UTC
Everything looks good. Closing.