blob: 1ae510cfa3bd297437e8def1662838f18c1af271 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="3"
inherit user 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}/${PN}/${MY_P}/${MY_P}.tar.gz"
LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="media-libs/libao"
DEPEND="${RDEPEND}"
S="${WORKDIR}"/${MY_P}
pkg_setup() {
enewuser ${PN}
}
src_prepare() {
rm -R bin || die
# inadyn-mt comes with outdated inadyn man pages - see inadyn-mt bug 2445206
rm man/inadyn.8
rm man/inadyn.conf.5
}
src_install() {
# dodir /usr/share || die
emake DESTDIR="${D}" INSTALL_PREFIX="${D}"/usr/share install || die
dodoc ChangeLog NEWS README NOTICE AUTHORS || 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."
}
|