diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-02-14 14:47:44 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-02-14 14:47:44 +0000 |
commit | 1504b4a2f016c200741300a44a74328dfd37f6bd (patch) | |
tree | 53ab75133228b2b2b8d4ece938be9abd414c6fe0 /net-dns/maradns | |
parent | Stable on amd64, wrt bug #457470 (diff) | |
download | gentoo-2-1504b4a2f016c200741300a44a74328dfd37f6bd.tar.gz gentoo-2-1504b4a2f016c200741300a44a74328dfd37f6bd.tar.bz2 gentoo-2-1504b4a2f016c200741300a44a74328dfd37f6bd.zip |
Include a systemd unit file.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 42B9401D)
Diffstat (limited to 'net-dns/maradns')
-rw-r--r-- | net-dns/maradns/ChangeLog | 6 | ||||
-rw-r--r-- | net-dns/maradns/files/maradns.service.in | 9 | ||||
-rw-r--r-- | net-dns/maradns/maradns-2.0.06.ebuild | 13 |
3 files changed, 24 insertions, 4 deletions
diff --git a/net-dns/maradns/ChangeLog b/net-dns/maradns/ChangeLog index 948f767eebec..407e6020ff19 100644 --- a/net-dns/maradns/ChangeLog +++ b/net-dns/maradns/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-dns/maradns # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/ChangeLog,v 1.54 2013/02/03 12:30:13 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/ChangeLog,v 1.55 2013/02/14 14:47:43 mgorny Exp $ + + 14 Feb 2013; Michał Górny <mgorny@gentoo.org> +files/maradns.service.in, + maradns-2.0.06.ebuild: + Include a systemd unit file. 03 Feb 2013; Pacho Ramos <pacho@gentoo.org> -maradns-1.4.09.ebuild, -maradns-1.4.11.ebuild, metadata.xml: diff --git a/net-dns/maradns/files/maradns.service.in b/net-dns/maradns/files/maradns.service.in new file mode 100644 index 000000000000..f27d94653400 --- /dev/null +++ b/net-dns/maradns/files/maradns.service.in @@ -0,0 +1,9 @@ +[Unit] +Description=maradns DNS server +After=network.target + +[Service] +ExecStart=@bindir@/maradns -cf @sysconfdir@/mararc + +[Install] +WantedBy=multi-user.target diff --git a/net-dns/maradns/maradns-2.0.06.ebuild b/net-dns/maradns/maradns-2.0.06.ebuild index f9b409a1590f..d4d0093f6d4c 100644 --- a/net-dns/maradns/maradns-2.0.06.ebuild +++ b/net-dns/maradns/maradns-2.0.06.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/maradns-2.0.06.ebuild,v 1.3 2012/07/11 11:00:14 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/maradns-2.0.06.ebuild,v 1.4 2013/02/14 14:47:43 mgorny Exp $ EAPI="4" -inherit eutils toolchain-funcs flag-o-matic user +inherit eutils toolchain-funcs flag-o-matic systemd user DEADWOOD_VER="3.2.02" @@ -86,6 +86,13 @@ src_install() { if ! use authonly; then newinitd "${FILESDIR}"/deadwood deadwood fi + + # systemd unit + # please keep paths in sync! + sed -e "s^@bindir@^${EPREFIX}/usr/sbin^" \ + -e "s^@sysconfdir@^${EPREFIX}/etc/maradns^" \ + "${FILESDIR}"/maradns.service.in > "${T}"/maradns.service + systemd_dounit "${T}"/maradns.service } pkg_postinst() { |