Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/dcc: dcc-1.3.119.ebuild ChangeLog
Date: Mon, 01 Feb 2010 08:39:46
Message-Id: E1Nbros-0006QM-Un@stork.gentoo.org
1 robbat2 10/02/01 08:39:42
2
3 Modified: ChangeLog
4 Added: dcc-1.3.119.ebuild
5 Log:
6 Bug #299258: version bump.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.60 mail-filter/dcc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/ChangeLog?rev=1.60&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/ChangeLog?rev=1.60&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/ChangeLog?r1=1.59&r2=1.60
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v
19 retrieving revision 1.59
20 retrieving revision 1.60
21 diff -p -w -b -B -u -u -r1.59 -r1.60
22 --- ChangeLog 23 Sep 2009 17:52:47 -0000 1.59
23 +++ ChangeLog 1 Feb 2010 08:39:42 -0000 1.60
24 @@ -1,6 +1,11 @@
25 # ChangeLog for mail-filter/dcc
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v 1.59 2009/09/23 17:52:47 patrick Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v 1.60 2010/02/01 08:39:42 robbat2 Exp $
30 +
31 +*dcc-1.3.119 (01 Feb 2010)
32 +
33 + 01 Feb 2010; Robin H. Johnson <robbat2@g.o> +dcc-1.3.119.ebuild:
34 + Bug #299258: version bump.
35
36 23 Sep 2009; Patrick Lauer <patrick@g.o> dcc-1.3.55.ebuild,
37 dcc-1.3.97.ebuild, dcc-1.3.102.ebuild:
38
39
40
41 1.1 mail-filter/dcc/dcc-1.3.119.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/dcc-1.3.119.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/dcc-1.3.119.ebuild?rev=1.1&content-type=text/plain
45
46 Index: dcc-1.3.119.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/dcc-1.3.119.ebuild,v 1.1 2010/02/01 08:39:42 robbat2 Exp $
51
52 inherit flag-o-matic
53
54 DESCRIPTION="Distributed Checksum Clearinghouse"
55 HOMEPAGE="http://www.rhyolite.com/anti-spam/dcc/"
56 SRC_URI="http://www.rhyolite.com/anti-spam/dcc/source/old/${PN}-${PV}.tar.Z"
57
58 LICENSE="DCC"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
61 IUSE="ipv6 rrdtool milter"
62
63 RDEPEND="dev-lang/perl
64 rrdtool? ( net-analyzer/rrdtool )
65 || ( net-misc/wget www-client/fetch net-misc/curl net-ftp/ftp )
66 milter? ( mail-filter/libmilter )"
67 DEPEND="sys-apps/sed
68 sys-devel/gcc
69 ${RDEPEND}"
70
71 dcc_cgibin=/var/www/localhost/cgi-bin/dcc
72 dcc_homedir=/var/dcc
73 dcc_libexec=/usr/sbin
74 dcc_man=/usr/share/man
75 dcc_rundir=/var/run/dcc
76
77 src_unpack() {
78 unpack ${A}
79 #cd "${S}"
80 #epatch "${FILESDIR}"/${PN}-1.3.86.patch
81 }
82
83 src_compile() {
84 local myconf
85 myconf="${myconf} --homedir=${dcc_homedir}"
86 myconf="${myconf} --bindir=/usr/bin"
87 myconf="${myconf} --libexecdir=${dcc_libexec}"
88 myconf="${myconf} --mandir=/usr/share/man"
89 myconf="${myconf} --with-updatedcc_pfile=${dcc_homedir}/updatecc.pfile"
90 myconf="${myconf} --with-installroot=${D}"
91 myconf="${myconf} --with-DCC-MD5"
92 myconf="${myconf} --with-uid=root"
93 myconf="${myconf} --enable-server"
94 myconf="${myconf} --enable-dccifd"
95 #myconf="${myconf} --without-cgibin"
96 myconf="${myconf} --with-cgibin=${dcc_cgibin}"
97 myconf="${myconf} --with-rundir=${dcc_rundir}"
98 myconf="${myconf} --with-db-memory=64"
99 myconf="${myconf} --with-max-db-mem=128"
100 myconf="${myconf} --with-max-log-size=0"
101 myconf="${myconf} $(use_enable ipv6 IPv6)"
102
103 if use milter ; then
104 myconf="${myconf} --enable-dccm"
105 myconf="${myconf} --with-sendmail="
106 else
107 myconf="${myconf} --disable-dccm"
108 fi
109
110 einfo "Using config: ${myconf}"
111
112 # This is NOT a normal configure script.
113 ./configure ${myconf} || die "configure failed!"
114 #make -C homedir
115 emake || die "emake failed!"
116 }
117
118 moveconf() {
119 for i in $@; do
120 local into=/etc/dcc/
121 mv "${D}"${dcc_homedir}/${i} "${D}"${into}
122 dosym ${into}${i} ${dcc_homedir}/${i}
123 done
124 }
125
126 src_install() {
127 # stolen from the RPM .spec and modified for gentoo
128 MANOWN=root MANGRP=root export MANOWN MANGRP
129 BINOWN=$MANOWN BINGRP=$MANGRP export BINOWN BINGRP
130 DCC_PROTO_HOMEDIR="${D}${dcc_homedir}" export DCC_PROTO_HOMEDIR
131 DCC_CGIBINDIR="${D}${dcc_cgibin}" export DCC_CGIBINDIR
132 DCC_SUID=$BINOWN DCC_OWN=$BINOWN DCC_GRP=$BINGRP export DCC_SUID DCC_OWN DCC_GRP
133
134 dodir /etc/cron.daily ${dcc_homedir} ${dcc_cgibin} /usr/bin /usr/sbin /usr/share/man/man{0,8} /etc/dcc
135 keepdir /var/run/dcc /var/log/dcc
136
137 addwrite "${dcc_homedir}/map"
138 # This package now takes "${D}" at compile-time!
139 # make DESTDIR="${D}" DCC_BINDIR="${D}"/usr/bin MANDIR="${D}"/usr/share/man/man DCC_HOMEDIR="${D}"${dcc_homedir} install || die
140 emake install || die
141
142 einfo "Branding and setting reasonable defaults"
143 sed -e "s/BRAND=\$/BRAND='Gentoo ${PF}'/;" \
144 -e "s/DCCM_LOG_AT=5\$/DCCM_LOG_AT=50/;" \
145 -e "s,DCCM_LOGDIR=log\$,DCCM_LOGDIR=/var/log/dcc,;" \
146 -e "s/DCCM_ARGS=\$/DCCM_ARGS='-SHELO -Smail_host -SSender -SList-ID'/;" \
147 -e "s/DCCIFD_ARGS=\$/DCCIFD_ARGS=\"\$DCCM_ARGS\"/;" \
148 -e 's/DCCIFD_ENABLE=off/DCCIFD_ENABLE=on/' \
149 -i "${D}"${dcc_homedir}/dcc_conf
150
151 einfo "Enabling milter"
152 if use milter ; then
153 sed -i -e "s:^[\t #]*\(DCCM_ENABLE[\t ]*=[\t ]*\).*:\1on:g" \
154 "${D}"${dcc_homedir}/dcc_conf
155 fi
156
157 einfo "Providing cronjob"
158 mv "${D}"/usr/sbin/cron-dccd "${D}"/etc/cron.daily/dccd
159
160 einfo "Cleaning up"
161 mv "${D}"/usr/sbin/logger "${D}"/usr/sbin/logger-dcc
162
163 statslist="${D}/usr/sbin/{dcc-stats-graph,dcc-stats-init,dcc-stats-collect}"
164 if ! use rrdtool; then
165 einfo "Removing rrdtool interface scripts"
166 eval rm -f ${statslist} || die "Failed to clean up rrdtool scripts"
167 fi
168
169 einfo "Cleaning up"
170 rm -f "${D}"/usr/sbin/{rcDCC,updatedcc}
171
172 einfo "Placing configuration files into /etc instead of /var/dcc"
173 moveconf dcc_conf flod grey_flod grey_whitelist ids map map.txt whiteclnt whitecommon whitelist
174
175 einfo "Install conf.d configuration"
176 newconfd "${FILESDIR}"/dcc.confd dcc
177
178 einfo "Install init.d script"
179 newinitd "${FILESDIR}"/dcc.initd dcc
180
181 rmdir "${D}"/var/dcc/log/
182 }