Gentoo Archives: gentoo-commits

From: "Yixun Lan (dlan)" <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/ez-ipupdate: ChangeLog ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild
Date: Tue, 28 Jan 2014 09:22:53
Message-Id: 20140128092250.1D6B62004E@flycatcher.gentoo.org
1 dlan 14/01/28 09:22:50
2
3 Modified: ChangeLog
4 Added: ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild
5 Log:
6 support ipv6 address via -a option, bug #432764, thanks Andreas Steinmetz
7
8 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
9
10 Revision Changes Path
11 1.37 net-dns/ez-ipupdate/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/ez-ipupdate/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/ez-ipupdate/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/ez-ipupdate/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- ChangeLog 13 Oct 2013 16:00:04 -0000 1.36
24 +++ ChangeLog 28 Jan 2014 09:22:49 -0000 1.37
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-dns/ez-ipupdate
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v 1.36 2013/10/13 16:00:04 pacho Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ChangeLog,v 1.37 2014/01/28 09:22:49 dlan Exp $
31 +
32 +*ez-ipupdate-3.0.11.13.3_beta8-r1 (28 Jan 2014)
33 +
34 + 28 Jan 2014; Yixun Lan <dlan@g.o>
35 + +ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild,
36 + +files/ez-ipupdate-3.0.11.13.3_beta8-ipv6.diff, files/ez-ipupdate.initd:
37 + support ipv6 address via -a option, bug #432764, thanks Andreas Steinmetz
38
39 13 Oct 2013; Pacho Ramos <pacho@g.o> files/ez-ipupdate.initd:
40 Stop using deprecated stuff for init.d (#466846)
41
42
43
44 1.1 net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r1.ebuild,v 1.1 2014/01/28 09:22:49 dlan Exp $
54
55 EAPI="5"
56
57 inherit eutils user versionator
58
59 MY_BETA="$(get_version_component_range 6)"
60 MY_PATCH="$(get_version_component_range 4-5)"
61 MY_PV="$(get_version_component_range 1-3)${MY_BETA/beta/b}"
62
63 DESCRIPTION="Dynamic DNS client for lots of dynamic dns services"
64 HOMEPAGE="http://ez-ipupdate.com/"
65 SRC_URI="mirror://debian/pool/main/e/ez-ipupdate/${PN}_${MY_PV}.orig.tar.gz
66 mirror://debian/pool/main/e/ez-ipupdate/${PN}_${MY_PV}-${MY_PATCH}.diff.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
71 IUSE=""
72
73 DEPEND=""
74 RDEPEND=""
75
76 S="${WORKDIR}/${PN}-${MY_PV}"
77
78 src_prepare() {
79 # apply debian patches
80 epatch "${WORKDIR}/${PN}_${MY_PV}-${MY_PATCH}.diff"
81
82 # repair/apply additional debian patches
83 sed -i -e "s|^\(---\s*\)\.\./|\1|g" debian/patches/*.diff
84 EPATCH_SOURCE="${S}/debian/patches" EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch
85
86 # adding members.3322.org support
87 epatch "${FILESDIR}/${P}-3322.diff"
88
89 # adding www.dnsexit.com support
90 epatch "${FILESDIR}/${P}-dnsexit.diff"
91
92 # make ez-ipupdate work with iproute2/dhcpcd under linux (bug #318905)
93 epatch "${FILESDIR}/${P}-linux.diff"
94
95 # allows to set IPv6 via -a option, (bug #432764)
96 epatch "${FILESDIR}/${P}-ipv6.diff"
97
98 # repair format mask issues
99 sed -i -e "s|\(\s*\)\(strlen(putbuf)\)|\1(int)\2|g" ez-ipupdate.c || die
100
101 # comment out obsolete options
102 sed -i -e "s:^\(run-as-user.*\):#\1:g" \
103 -e "s:^\(cache-file.*\):#\1:g" ex*conf || die
104
105 # make 'missing' executable (bug #103480)
106 chmod +x missing
107 }
108
109 src_configure() {
110 econf --bindir=/usr/sbin
111 }
112
113 src_install() {
114 emake DESTDIR="${D}" install || die "emake install failed"
115 newinitd "${FILESDIR}/ez-ipupdate.initd" ez-ipupdate
116 keepdir /etc/ez-ipupdate
117
118 # install docs
119 dodoc README
120 newdoc debian/README.Debian README.debian
121 newdoc debian/changelog ChangeLog.debian
122 newdoc CHANGELOG ChangeLog
123 doman debian/ez-ipupdate.8
124
125 # install example configs
126 docinto examples
127 dodoc ex*conf
128 }
129
130 pkg_preinst() {
131 enewgroup ez-ipupd
132 enewuser ez-ipupd -1 -1 /var/cache/ez-ipupdate ez-ipupd
133 }
134
135 pkg_postinst() {
136 chmod 750 /etc/ez-ipupdate /var/cache/ez-ipupdate
137 chown ez-ipupd:ez-ipupd /etc/ez-ipupdate /var/cache/ez-ipupdate
138
139 elog
140 elog "Please create one or more config files in"
141 elog "/etc/ez-ipupdate/. A bunch of samples can"
142 elog "be found in the doc directory."
143 elog
144 elog "All config files must have a '.conf' extension."
145 elog
146 elog "Please do not use the 'run-as-user', 'run-as-euser',"
147 elog "'cache-file' and 'pidfile' options, since these are"
148 elog "handled internally by the init-script!"
149 elog
150 elog "If you want to use ez-ipupdate in daemon mode,"
151 elog "please add 'daemon' to the config file(s) and"
152 elog "add the ez-ipupdate init-script to the default"
153 elog "runlevel."
154 elog
155 elog "Without the 'daemon' option, you can run the"
156 elog "init-script with the 'update' parameter inside"
157 elog "your PPP ip-up script."
158 elog
159
160 if [ -f /etc/ez-ipupdate.conf ]; then
161 elog "!!! IMPORTANT UPDATE NOTICE !!!"
162 elog
163 elog "The ez-ipupdate init-script can now handle more"
164 elog "than one config file. New config file location is"
165 elog "/etc/ez-ipupdate/*.conf"
166 elog
167 if [ ! -f /etc/ez-ipupdate/default.conf ]; then
168 mv -f /etc/ez-ipupdate.conf /etc/ez-ipupdate/default.conf
169 elog "Your old configuration has been moved to"
170 elog "/etc/ez-ipupdate/default.conf"
171 elog
172 fi
173 fi
174 }