summaryrefslogtreecommitdiff
blob: 473654e7a79d1d72b630a0033a7223327a846c1f (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Dyndns client in C supporting various services"
HOMEPAGE="http://inadyn.ina-tech.net/"
SRC_URI="http://inadyn.ina-tech.net/${PN}.v${PV}.zip"

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

DEPEND="app-arch/unzip"
RDEPEND=""

S=${WORKDIR}/${PN}

pkg_setup() {
	enewuser inadyn -1 -1 -1
}

src_install() {
	dosbin bin/linux/inadyn
	doman man/*
	dohtml readme.html

	newinitd "${FILESDIR}"/inadyn.initd inadyn

	insinto /etc
	doins "${FILESDIR}"/inadyn.conf
}

pkg_postinst() {
	elog "You will need to edit /etc/inadyn.conf file before"
	elog "running inadyn for the firt time. The file is basically"
	elog "command line options; see inadyn and inayn.conf manpages."
}