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