From: Lars Wendler Date: Thu, 8 Oct 2015 09:35:10 +0000 (+0200) Subject: mail-filter/dcc: Bump to version 1.3.158 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2d5b2177ec900e30e315859ab0e2ed5f37de79f;p=gentoo.git mail-filter/dcc: Bump to version 1.3.158 Package-Manager: portage-2.2.22 Signed-off-by: Lars Wendler --- diff --git a/mail-filter/dcc/Manifest b/mail-filter/dcc/Manifest index fd22ebed0025..195ffe30c484 100644 --- a/mail-filter/dcc/Manifest +++ b/mail-filter/dcc/Manifest @@ -1,2 +1,3 @@ DIST dcc-1.3.140.tar.Z 1681539 SHA256 19060563d3d72b70578d8f16e6780458d36f1a1db18a6d1e533bc42d80c38f24 SHA512 1c36bb32ae36480ded8306ca6a460a3070758397075cd6a4cee9c01a0e306ad371336037adf7759c8ef96f46b36c408699b7ec43b01268ac8e7c289d1e31d2e1 WHIRLPOOL 9415bd94a74b6e0d22ec323a8cf5227c08f5026c24b1530c7708321d092d5f0c58d6f3d5e7beb03d0dca948ea8c75cf3220d34e1b077030ee0b9b85c80644b64 DIST dcc-1.3.154.tar.Z 1711292 SHA256 bc2e1496ec04914690c1d6d9d0f8be0954551b4165d731eb2d07dad307269399 SHA512 703bd3de44ccff3f318239dc2ca26a285f83ae0340a91391bcc5b719c298e77c8122d1502665350ddfc9fb14f12d9b6a56cba422ff8985db9cee6c91091fb987 WHIRLPOOL 7595b36066d3a89b1d2f4952334f6abe7cc70a1c03ff06ac6596b8901b8590329c944c9eeb132ed6253a4841150308378bef87dc5b2b74495c92a283110e0b14 +DIST dcc-1.3.158.tar.Z 1714175 SHA256 596bb4a02800a87501818215e61ac877e4d5a31ec0c8c227f23438f6b6b831c6 SHA512 24fba5ea713e8df1468644508c323d64b3868685716b7cc02263933476940a807cfc4593432a9195371308c83d4ea93653e89634681d95dcb32f5d65c7274599 WHIRLPOOL ba625cc91c02d8b919a297ec99e28e64ca3720b2dba1bc657ad30df6d8abb0d58614254ad4e48870cb301a4d6339a934746f64542e1bc4a2bee8a8328f80ae96 diff --git a/mail-filter/dcc/dcc-1.3.158.ebuild b/mail-filter/dcc/dcc-1.3.158.ebuild new file mode 100644 index 000000000000..8648467d309f --- /dev/null +++ b/mail-filter/dcc/dcc-1.3.158.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit base eutils flag-o-matic toolchain-funcs + +DESCRIPTION="Distributed Checksum Clearinghouse" +HOMEPAGE="http://www.rhyolite.com/anti-spam/dcc/" +SRC_URI="http://www.rhyolite.com/anti-spam/dcc/source/old/${P}.tar.Z" + +LICENSE="DCC GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" # ~amd64-fbsd +IUSE="cgi ipv6 rrdtool milter" + +RDEPEND="dev-lang/perl + rrdtool? ( net-analyzer/rrdtool ) + || ( net-misc/wget www-client/fetch net-misc/curl net-ftp/ftp ) + milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )" +DEPEND="sys-apps/sed + sys-devel/gcc + ${RDEPEND}" + +dcc_cgibin=/var/www/localhost/cgi-bin/dcc +dcc_homedir=/var/dcc +dcc_libexec=/usr/sbin +dcc_man=/usr/share/man +dcc_rundir=/var/run/dcc + +PATCHES=( "${FILESDIR}"/dcc-1.3.140-freebsd.patch ) + +src_configure() { + tc-export CC AR RANLIB + local myconf + myconf="${myconf} --homedir=${dcc_homedir}" + myconf="${myconf} --bindir=/usr/bin" + myconf="${myconf} --libexecdir=${dcc_libexec}" + myconf="${myconf} --mandir=/usr/share/man" + myconf="${myconf} --with-updatedcc_pfile=${dcc_homedir}/updatecc.pfile" + myconf="${myconf} --with-installroot=${D}" + # sigh. should be DCC-MD5 but see line 486 in the shipped configure script + myconf="${myconf} --with-DDC-MD5" + myconf="${myconf} --with-uid=root" + myconf="${myconf} --enable-server" + myconf="${myconf} --enable-dccifd" + myconf="${myconf} --with-rundir=${dcc_rundir}" + myconf="${myconf} --with-db-memory=64" + myconf="${myconf} --with-max-db-mem=128" + myconf="${myconf} --with-max-log-size=0" + myconf="${myconf} --with-make-cmd=${MAKE:-make}" + myconf="${myconf} $(use_enable ipv6 IPv6)" + myconf="${myconf} $(use_with cgi cgibin ${dcc_cgibin})" + myconf="${myconf} $(use_enable milter dccm)" + use milter && myconf="${myconf} --with-sendmail=" + + einfo "Using config: ${myconf}" + + # This is NOT a normal configure script. + ./configure ${myconf} || die "configure failed!" +} + +moveconf() { + local into=/etc/dcc/ + for i in $@; do + mv "${D}${dcc_homedir}/${i}" "${D}${into}" + dosym "${into}${i}" "${dcc_homedir}/${i}" + done +} + +src_install() { + # stolen from the RPM .spec and modified for gentoo + MANOWN=root MANGRP=$(id -g -n root) export MANOWN MANGRP + BINOWN="${MANOWN}" BINGRP="${MANGRP}" export BINOWN BINGRP + DCC_PROTO_HOMEDIR="${D}${dcc_homedir}" export DCC_PROTO_HOMEDIR + DCC_CGIBINDIR="${D}${dcc_cgibin}" export DCC_CGIBINDIR + DCC_SUID="${BINOWN}" DCC_OWN="${BINOWN}" DCC_GRP="${BINGRP}" export DCC_SUID DCC_OWN DCC_GRP + + dodir /etc/cron.daily "${dcc_homedir}" /usr/bin /usr/sbin /usr/share/man/man{0,8} /etc/dcc + if use cgi ; then + dodir "${dcc_cgibin}" + fi + keepdir /var/log/dcc + + # This package now takes "${D}" at compile-time! + # make DESTDIR="${D}" DCC_BINDIR="${D}"/usr/bin MANDIR="${D}"/usr/share/man/man DCC_HOMEDIR="${D}"${dcc_homedir} install || die + emake install + + # branding and setting reasonable defaults + sed -e "s/BRAND=\$/BRAND='Gentoo ${PF}'/;" \ + -e "s/GREY_ENABLE=\$/GREY_ENABLE=off/;" \ + -e "s/DCCM_LOG_AT=5\$/DCCM_LOG_AT=50/;" \ + -e "s,DCCM_LOGDIR=\"log\"\$,DCCM_LOGDIR=\"/var/log/dcc\",;" \ + -e "s/DCCM_ARGS=\$/DCCM_ARGS='-SHELO -Smail_host -SSender -SList-ID'/;" \ + -e "s/DCCIFD_ARGS=\$/DCCIFD_ARGS=\"\$DCCM_ARGS\"/;" \ + -e 's/DCCIFD_ENABLE=off/DCCIFD_ENABLE=on/' \ + -e 's/DBCLEAN_LOGDAYS=14/DBCLEAN_LOGDAYS=1/' \ + -i "${D}${dcc_homedir}/dcc_conf" + + if use milter ; then + # enable milter + sed -i -e "s:^[\t #]*\(DCCM_ENABLE[\t ]*=[\t ]*\).*:\1on:g" \ + "${D}${dcc_homedir}"/dcc_conf + fi + + # provide cronjob + mv "${D}"/usr/sbin/cron-dccd "${D}"/etc/cron.daily/dccd || die "mv failed" + + # clean up + mv "${D}"/usr/sbin/logger "${D}"/usr/sbin/logger-dcc || die "mv failed" + + statslist="${D}/usr/sbin/{dcc-stats-graph,dcc-stats-init,dcc-stats-collect}" + if ! use rrdtool; then + # remove rrdtool interface scripts + eval rm -f ${statslist} || die "Failed to clean up rrdtool scripts" + fi + + # clean up + rm -f "${D}"/usr/sbin/{rcDCC,updatedcc} + + # place configuration files into /etc instead of /var/dcc + moveconf dcc_conf flod grey_flod grey_whitelist ids map map.txt whiteclnt whitecommon whitelist + + newinitd "${FILESDIR}"/dcc.initd-1.3.154 dcc + newconfd "${FILESDIR}"/dcc.confd dcc + + rmdir "${D}"/var/dcc/log/ + + dodoc CHANGES RESTRICTIONS + dohtml *.html + doman *.{0,8} +}