summaryrefslogtreecommitdiff
blob: c427d5907d82dd846ab99b0857eec3a5584bf71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Dynamic DNS (DynDNS) Update daemon in C that supports multiple services"
HOMEPAGE="http://sourceforge.net/projects/inadyn-mt"
SRC_URI="mirror://sourceforge/${PN}/${PN}.v.${PV}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="!net-dns/inadyn"
RDEPEND=${DEPEND}

S=${WORKDIR}/${PN}

pkg_setup() {
	enewuser ${PN}
}

src_install() {
	dosbin bin/linux/${PN} || die

	# inadyn-mt comes with outdated inadyn man pages - see inadyn-mt bug 2445206
	rm man/inadyn.8
	rm man/inadyn.conf.5
	doman man/* || die
	newman man/inadyn-mt.8 inadyn.8 || die
	newman man/inadyn-mt.conf.5 inadyn.conf.5 || die
	# end workaround

	dohtml readme.html || die

	newinitd "${FILESDIR}"/${PN}.initd ${PN} || die
	newconfd "${FILESDIR}"/${PN}.conf ${PN} || die
}

pkg_postinst() {
	elog "You will need to edit /etc/inadyn-mt.conf before running inadyn-mt"
	elog "for the first time. The format is basically the same as the"
	elog "command line options; see inadyn-mt and inadyn-mt.conf manpages."
}