blob: 42dd72d48461b1049df101c5a74e79daa805b787 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils
MY_P=${PN}.v.${PV}
DESCRIPTION="Dynamic DNS (DynDNS) Update daemon in C that supports multiple services"
HOMEPAGE="http://sourceforge.net/projects/inadyn-mt"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE="+threads +async"
RDEPEND="!net-dns/inadyn"
S=${WORKDIR}/${PN}/${MY_P}
pkg_setup() {
enewuser ${PN}
GETHOSTBYNAME_PARAMS=3
if use threads ; then
USE_THREADS=1
if use async ; then
ASYNC_LOOKUP=1
fi
fi
TARGET_ARCH=linux
}
src_install() {
cd "${MY_P}"
dosbin bin/linux/${PN} || die
# inadyn-mt comes with outdated inadyn man pages - see inadyn-mt bug 2445206
rm man/inadyn.8 man/inadyn.conf.5 || die
# end workaround
doman man/* || die
dohtml readme.html || die
newinitd "${FILESDIR}"/${PN}.initd ${PN} || die
insinto /etc
doins "${FILESDIR}"/${PN}.conf || 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."
}
|