1 |
patrick 09/04/23 16:11:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dcc-1.3.102.ebuild |
5 |
Log: |
6 |
Bump to 1.3.102. Fixes #258249 |
7 |
(Portage version: 2.2_rc31/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.57 mail-filter/dcc/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/ChangeLog?rev=1.57&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/ChangeLog?rev=1.57&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/ChangeLog?r1=1.56&r2=1.57 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v |
19 |
retrieving revision 1.56 |
20 |
retrieving revision 1.57 |
21 |
diff -u -r1.56 -r1.57 |
22 |
--- ChangeLog 24 Feb 2009 06:30:13 -0000 1.56 |
23 |
+++ ChangeLog 23 Apr 2009 16:11:19 -0000 1.57 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for mail-filter/dcc |
26 |
# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v 1.56 2009/02/24 06:30:13 josejx Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v 1.57 2009/04/23 16:11:19 patrick Exp $ |
29 |
+ |
30 |
+*dcc-1.3.102 (23 Apr 2009) |
31 |
+ |
32 |
+ 23 Apr 2009; Patrick Lauer <patrick@g.o> +dcc-1.3.102.ebuild: |
33 |
+ Bump to 1.3.102. Fixes #258249 |
34 |
|
35 |
24 Feb 2009; Joseph Jezak <josejx@g.o> dcc-1.3.97.ebuild: |
36 |
Marked ~ppc for bug #239121. |
37 |
|
38 |
|
39 |
|
40 |
1.1 mail-filter/dcc/dcc-1.3.102.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/dcc-1.3.102.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dcc/dcc-1.3.102.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: dcc-1.3.102.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/dcc-1.3.102.ebuild,v 1.1 2009/04/23 16:11:19 patrick Exp $ |
50 |
|
51 |
inherit flag-o-matic |
52 |
|
53 |
DESCRIPTION="Distributed Checksum Clearinghouse" |
54 |
HOMEPAGE="http://www.rhyolite.com/anti-spam/dcc/" |
55 |
SRC_URI="http://www.rhyolite.com/anti-spam/dcc/source/old/${PN}-${PV}.tar.Z" |
56 |
|
57 |
LICENSE="DCC" |
58 |
SLOT="0" |
59 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
60 |
IUSE="ipv6 rrdtool milter" |
61 |
|
62 |
RDEPEND="dev-lang/perl |
63 |
rrdtool? ( net-analyzer/rrdtool ) |
64 |
|| ( net-misc/wget www-client/fetch net-misc/curl net-ftp/ftp ) |
65 |
milter? ( mail-filter/libmilter ) |
66 |
virtual/libc" |
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 |
./configure ${myconf} || die "configure failed!" |
113 |
#make -C homedir |
114 |
emake || die "emake failed!" |
115 |
} |
116 |
|
117 |
moveconf() { |
118 |
for i in $@; do |
119 |
local into=/etc/dcc/ |
120 |
mv "${D}"${dcc_homedir}/${i} "${D}"${into} |
121 |
dosym ${into}${i} ${dcc_homedir}/${i} |
122 |
done |
123 |
} |
124 |
|
125 |
src_install() { |
126 |
# stolen from the RPM .spec and modified for gentoo |
127 |
MANOWN=root MANGRP=root export MANOWN MANGRP |
128 |
BINOWN=$MANOWN BINGRP=$MANGRP export BINOWN BINGRP |
129 |
DCC_PROTO_HOMEDIR="${D}${dcc_homedir}" export DCC_PROTO_HOMEDIR |
130 |
DCC_CGIBINDIR="${D}${dcc_cgibin}" export DCC_CGIBINDIR |
131 |
DCC_SUID=$BINOWN DCC_OWN=$BINOWN DCC_GRP=$BINGRP export DCC_SUID DCC_OWN DCC_GRP |
132 |
|
133 |
dodir /etc/cron.daily ${dcc_homedir} ${dcc_cgibin} /usr/bin /usr/sbin /usr/share/man/man{0,8} /etc/dcc |
134 |
keepdir /var/run/dcc /var/log/dcc |
135 |
|
136 |
addwrite "${dcc_homedir}/map" |
137 |
# This package now takes "${D}" at compile-time! |
138 |
# make DESTDIR="${D}" DCC_BINDIR="${D}"/usr/bin MANDIR="${D}"/usr/share/man/man DCC_HOMEDIR="${D}"${dcc_homedir} install || die |
139 |
emake install || die |
140 |
|
141 |
einfo "Branding and setting reasonable defaults" |
142 |
sed -e "s/BRAND=\$/BRAND='Gentoo ${PF}'/;" \ |
143 |
-e "s/DCCM_LOG_AT=5\$/DCCM_LOG_AT=50/;" \ |
144 |
-e "s,DCCM_LOGDIR=log\$,DCCM_LOGDIR=/var/log/dcc,;" \ |
145 |
-e "s/DCCM_ARGS=\$/DCCM_ARGS='-SHELO -Smail_host -SSender -SList-ID'/;" \ |
146 |
-e "s/DCCIFD_ARGS=\$/DCCIFD_ARGS=\"\$DCCM_ARGS\"/;" \ |
147 |
-e 's/DCCIFD_ENABLE=off/DCCIFD_ENABLE=on/' \ |
148 |
-i "${D}"${dcc_homedir}/dcc_conf |
149 |
|
150 |
einfo "Enabling milter" |
151 |
if use milter ; then |
152 |
sed -i -e "s:^[\t #]*\(DCCM_ENABLE[\t ]*=[\t ]*\).*:\1on:g" \ |
153 |
"${D}"${dcc_homedir}/dcc_conf |
154 |
fi |
155 |
|
156 |
einfo "Providing cronjob" |
157 |
mv "${D}"/usr/sbin/cron-dccd "${D}"/etc/cron.daily/dccd |
158 |
|
159 |
einfo "Cleaning up" |
160 |
mv "${D}"/usr/sbin/logger "${D}"/usr/sbin/logger-dcc |
161 |
|
162 |
statslist="${D}/usr/sbin/{dcc-stats-graph,dcc-stats-init,dcc-stats-collect}" |
163 |
if ! use rrdtool; then |
164 |
einfo "Removing rrdtool interface scripts" |
165 |
eval rm -f ${statslist} || die "Failed to clean up rrdtool scripts" |
166 |
fi |
167 |
|
168 |
einfo "Cleaning up" |
169 |
rm -f "${D}"/usr/sbin/{rcDCC,updatedcc} |
170 |
|
171 |
einfo "Placing configuration files into /etc instead of /var/dcc" |
172 |
moveconf dcc_conf flod grey_flod grey_whitelist ids map map.txt whiteclnt whitecommon whitelist |
173 |
|
174 |
einfo "Install conf.d configuration" |
175 |
newconfd "${FILESDIR}"/dcc.confd dcc |
176 |
|
177 |
einfo "Install init.d script" |
178 |
newinitd "${FILESDIR}"/dcc.initd dcc |
179 |
|
180 |
rmdir "${D}"/var/dcc/log/ |
181 |
} |