Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/ddclient: ChangeLog ddclient-3.8.0.ebuild
Date: Wed, 04 Feb 2009 15:16:29
Message-Id: E1LUiZ1-0007j4-2l@stork.gentoo.org
1 patrick 09/02/04 14:17:15
2
3 Modified: ChangeLog
4 Added: ddclient-3.8.0.ebuild
5 Log:
6 Bump to 3.8.0, fixes #257200
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.38 net-dns/ddclient/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ChangeLog?rev=1.38&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ChangeLog?rev=1.38&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ChangeLog?r1=1.37&r2=1.38
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v
19 retrieving revision 1.37
20 retrieving revision 1.38
21 diff -u -r1.37 -r1.38
22 --- ChangeLog 21 Jan 2008 18:17:50 -0000 1.37
23 +++ ChangeLog 4 Feb 2009 14:17:14 -0000 1.38
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-dns/ddclient
26 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.37 2008/01/21 18:17:50 armin76 Exp $
28 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.38 2009/02/04 14:17:14 patrick Exp $
30 +
31 +*ddclient-3.8.0 (04 Feb 2009)
32 +
33 + 04 Feb 2009; Patrick Lauer <patrick@g.o> +ddclient-3.8.0.ebuild:
34 + Bump to 3.8.0, fixes #257200
35
36 21 Jan 2008; Raúl Porcel <armin76@g.o> -files/ddclient.init,
37 -files/ddclient.rc6, -files/ddclient-daemon0inconfig.diff,
38
39
40
41 1.1 net-dns/ddclient/ddclient-3.8.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ddclient-3.8.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ddclient-3.8.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ddclient-3.8.0.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.8.0.ebuild,v 1.1 2009/02/04 14:17:14 patrick Exp $
51
52 inherit eutils
53
54 DESCRIPTION="Perl updater client for dynamic DNS services"
55 HOMEPAGE="http://ddclient.sourceforge.net/"
56 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
61 IUSE="ssl"
62
63 RDEPEND=">=dev-lang/perl-5.1
64 ssl? ( dev-perl/IO-Socket-SSL )"
65
66 pkg_setup() {
67 enewgroup ${PN}
68 enewuser ${PN} -1 -1 -1 ${PN}
69 }
70
71 src_unpack() {
72 unpack ${A}
73 cd "${S}"
74
75 epatch "${FILESDIR}/${PN}-reasonable-security.patch"
76
77 einfo "Applying version string fix"
78 if ! sed -i "s/3\.7\.1/$PV/" "$PN"; then
79 eerror "Failed to update ddclient's internal version string"
80 eerror 'ddclient 3.7.2 will erroneously report a version of 3.7.1'
81 fi
82
83 # Remove pid line, because it is specified in /etc/conf.d/ddclient
84 einfo "Applying PID setup"
85 if ! sed -i "/^pid=*/d" "sample-etc_${PN}.conf"; then
86 eerror "Failed to remove pid from /etc/$PN/$PN.conf"
87 eerror "Please set the PID in /etc/conf.d/$PN, not /etc/$PN/$PN.conf"
88 fi
89
90 if ! use ssl; then
91 einfo "Disabling ssl per your useflags"
92 sed -i "/^ssl=*/d" "sample-etc_${PN}.conf" ||
93 eerror "Failed to remove ssl from /etc/$PN/$PN.conf"
94 fi
95 }
96
97 src_install() {
98 dosbin ${PN} || die "dosbin failed"
99 dodoc README* Change* COPYRIGHT sample*
100
101 newinitd "${FILESDIR}"/${PN}.initd ${PN}
102 newconfd "${FILESDIR}"/${PN}.confd ${PN}
103 keepdir /var/{cache,run}/${PN}
104
105 # Filename of sample conf - use live filename if available
106 local sample=${PN}.conf
107 [[ -e "${ROOT}/etc/${PN}/${sample}" ]] && sample="${sample}.sample"
108 insinto /etc/${PN}
109 insopts -m 0640 -o root -g ${PN}
110 newins sample-etc_${PN}.conf "${sample}" || die "newins conf failed"
111 }
112
113 pkg_postinst() {
114 # ensure the directories are owned by the user:group for this pkg
115 chown ${PN}:${PN} /var/{cache,run}/${PN}
116
117 use ssl && return
118 ewarn
119 ewarn "$PN will not have support for ssl, which means your dynamic DNS account"
120 ewarn "information -- including your password -- will be sent over the Internet in the"
121 ewarn "clear. To secure your information, add 'ssl' to your USEflags,"
122 ewarn "emerge -N ddclient, and add 'ssl=yes' to /etc/$PN/$PN.conf"
123 ewarn
124 }