From 842c3c3f9b396843c75cd9796b47ad4231016f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 8 Aug 2020 21:03:07 +0200 Subject: net-dns/dyndnsc: fix broken build and add init --- net-dns/dyndnsc/dyndnsc-0.5.1-r1.ebuild | 7 ++++++- net-dns/dyndnsc/files/dyndnsc.init | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 net-dns/dyndnsc/files/dyndnsc.init (limited to 'net-dns') diff --git a/net-dns/dyndnsc/dyndnsc-0.5.1-r1.ebuild b/net-dns/dyndnsc/dyndnsc-0.5.1-r1.ebuild index 5c2a247..cacb7ce 100644 --- a/net-dns/dyndnsc/dyndnsc-0.5.1-r1.ebuild +++ b/net-dns/dyndnsc/dyndnsc-0.5.1-r1.ebuild @@ -10,7 +10,7 @@ SRC_URI="https://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz -> LICENSE="MIT" KEYWORDS="amd64 ~x86" SLOT="0" -IUSE="" +IUSE="test" RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] >=dev-python/daemonocle-1.0.1 @@ -18,3 +18,8 @@ RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] >=dev-python/netifaces-0.10.5 >=dev-python/requests-2.0.1" DEPEND="${RDEPEND}" + +src_install() { + distutils-r1_src_install + newinitd "${FILESDIR}/dyndnsc.init" dyndnsc +} diff --git a/net-dns/dyndnsc/files/dyndnsc.init b/net-dns/dyndnsc/files/dyndnsc.init new file mode 100755 index 0000000..bf7c419 --- /dev/null +++ b/net-dns/dyndnsc/files/dyndnsc.init @@ -0,0 +1,6 @@ +#!/sbin/openrc-run + +description="Dynamic dns update client" +supervisor="supervise-daemon" +command="dyndnsc" +command_args="--config /etc/dyndnsc.init --loop" -- cgit v1.2.3