Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522290 - net-dns/nsd - add systemd support
Summary: net-dns/nsd - add systemd support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tom Hendrikx
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-09-07 08:08 UTC by hexum
Modified: 2014-09-28 18:14 UTC (History)
3 users (show)

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


Attachments
systemd service file (nsd.service,267 bytes, text/plain)
2014-09-07 08:08 UTC, hexum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hexum 2014-09-07 08:08:49 UTC
Created attachment 384324 [details]
systemd service file

Please, add optional USE="systemd" for net-dns/nsd package.
If flag is enabled attached service file should appear in /usr/lib/systemd/system directory.

Thanks!
Comment 1 Tom Hendrikx 2014-09-07 22:11:20 UTC
I updated the ebuild for upcoming nsd 4.1.0 ebuild to include this. I don't use systemd myself, so I'm unable to verify if it actually works, but it looks reasonable.

Until the ebuild is in portage, you can try the ebuild from my overlay: https://svn.whyscream.net/whyscream-overlay/experimental/net-dns/nsd/
Comment 2 Pacho Ramos gentoo-dev 2014-09-09 14:22:05 UTC
was it committed to the main tree?
Comment 3 Mike Gilbert gentoo-dev 2014-09-09 15:34:50 UTC
Installation of systemd units should not be conditional on a use flag.

https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy
Comment 4 Tom Hendrikx 2014-09-28 10:15:49 UTC
systemd USE flag is removed, unit file will be installed unconditionally. 
Now waiting for wschlich or proxy-maint again.
Comment 5 Mike Gilbert gentoo-dev 2014-09-28 18:14:20 UTC
I made a couple of tweaks and committed it. Feel free to ping me if I broke anything.

+*nsd-3.2.18 (28 Sep 2014)
+*nsd-4.1.0 (28 Sep 2014)
+
+  28 Sep 2014; Mike Gilbert <floppym@gentoo.org> +files/nsd.service,
+  +nsd-3.2.18.ebuild, +nsd-4.1.0.ebuild, -nsd-3.2.16.ebuild, -nsd-3.2.17.ebuild,
+  -nsd-4.0.0.ebuild, -nsd-4.0.3.ebuild:
+  Version bumps, remove old. Install systemd unit, bug 522290. Move user
+  creation to pkg_postinst for improved binpkg handling.