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