diff options
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/dyndnsc/dyndnsc-0.5.1-r1.ebuild | 7 | ||||
-rwxr-xr-x | net-dns/dyndnsc/files/dyndnsc.init | 6 |
2 files changed, 12 insertions, 1 deletions
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" |