blob: 2f63f736e72f6ae70e1d9b1d1dc2b56f060cdf6e (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/noip-updater/noip-updater-2.1.9-r1.ebuild,v 1.7 2014/01/10 23:46:26 pacho Exp $
EAPI=5
inherit eutils readme.gentoo systemd toolchain-funcs
MY_P=${P/-updater/}
DESCRIPTION="no-ip.com dynamic DNS updater"
HOMEPAGE="http://www.no-ip.com"
SRC_URI="http://www.no-ip.com/client/linux/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm ~hppa ia64 ~mips ~ppc ppc64 sparc x86"
IUSE=""
RDEPEND=""
DEPEND="sys-devel/gcc"
S=${WORKDIR}/${MY_P}
DOC_CONTENTS="
Configuration can be done manually via /usr/sbin/noip2 -C or
by using this ebuild's config option.
"
src_prepare() {
epatch "${FILESDIR}"/noip-2.1.9-flags.patch
epatch "${FILESDIR}"/noip-2.1.9-daemon.patch
sed -i \
-e "s:\(#define CONFIG_FILEPATH\).*:\1 \"/etc\":" \
-e "s:\(#define CONFIG_FILENAME\).*:\1 \"/etc/no-ip2.conf\":" \
noip2.c || die "sed failed"
}
src_compile() {
emake \
CC=$(tc-getCC) \
PREFIX=/usr \
CONFDIR=/etc
}
src_install() {
dosbin noip2
dodoc README.FIRST
newinitd "${FILESDIR}"/noip2.start noip
systemd_dounit "${FILESDIR}"/noip.service
readme.gentoo_create_doc
}
pkg_config() {
cd /tmp
einfo "Answer the following questions."
noip2 -C || die
}
|