Gentoo Archives: gentoo-commits

From: "Doug Klima (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/ddclient: ChangeLog ddclient-3.7.3-r1.ebuild
Date: Mon, 03 Dec 2007 16:02:24
Message-Id: E1IzDkR-0006uY-4x@stork.gentoo.org
1 cardoe 07/12/03 16:02:19
2
3 Modified: ChangeLog
4 Added: ddclient-3.7.3-r1.ebuild
5 Log:
6 Ensure the right directories are owned by the user:group for this pkg. bug #191174
7 (Portage version: 2.1.4_rc6)
8
9 Revision Changes Path
10 1.29 net-dns/ddclient/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ChangeLog?rev=1.29&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ChangeLog?rev=1.29&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ChangeLog?r1=1.28&r2=1.29
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v
19 retrieving revision 1.28
20 retrieving revision 1.29
21 diff -u -r1.28 -r1.29
22 --- ChangeLog 21 Aug 2007 13:46:09 -0000 1.28
23 +++ ChangeLog 3 Dec 2007 16:02:18 -0000 1.29
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-dns/ddclient
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.28 2007/08/21 13:46:09 uberlord Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.29 2007/12/03 16:02:18 cardoe Exp $
29 +
30 +*ddclient-3.7.3-r1 (03 Dec 2007)
31 +
32 + 03 Dec 2007; Doug Klima <cardoe@g.o> +ddclient-3.7.3-r1.ebuild:
33 + Ensure the right directories are owned by the user:group for this pkg. bug
34 + #191174
35
36 *ddclient-3.7.3 (21 Aug 2007)
37
38
39
40
41 1.1 net-dns/ddclient/ddclient-3.7.3-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ddclient-3.7.3-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/ddclient/ddclient-3.7.3-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ddclient-3.7.3-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 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.7.3-r1.ebuild,v 1.1 2007/12/03 16:02:18 cardoe 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 use ssl && return
115 ewarn
116 ewarn "$PN will not have support for ssl, which means your dynamic DNS account"
117 ewarn "information -- including your password -- will be sent over the Internet in the"
118 ewarn "clear. To secure your information, add 'ssl' to your USEflags,"
119 ewarn "emerge -N ddclient, and add 'ssl=yes' to /etc/$PN/$PN.conf"
120 ewarn
121
122 # ensure the directories are owned by the user:group for this pkg
123 chown ${PN}:${PN} /var/{cache,run}/${PN}
124 }
125
126
127
128 --
129 gentoo-commits@g.o mailing list