diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2004-06-03 07:04:52 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2004-06-03 07:04:52 +0000 |
commit | 4fc22a43c7a12d38807df83988102249d95fb894 (patch) | |
tree | c2cc8d61635cabc2f8a839bceabd7d7b845b24e7 /mail-filter | |
parent | add mail-filter (diff) | |
download | gentoo-2-4fc22a43c7a12d38807df83988102249d95fb894.tar.gz gentoo-2-4fc22a43c7a12d38807df83988102249d95fb894.tar.bz2 gentoo-2-4fc22a43c7a12d38807df83988102249d95fb894.zip |
Moved from net-mail/dcc to mail-filter/dcc.
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/dcc/ChangeLog | 16 | ||||
-rw-r--r-- | mail-filter/dcc/Manifest | 4 | ||||
-rw-r--r-- | mail-filter/dcc/dcc-1.2.28.ebuild | 90 | ||||
-rw-r--r-- | mail-filter/dcc/files/digest-dcc-1.2.28 | 1 | ||||
-rw-r--r-- | mail-filter/dcc/metadata.xml | 8 |
5 files changed, 119 insertions, 0 deletions
diff --git a/mail-filter/dcc/ChangeLog b/mail-filter/dcc/ChangeLog new file mode 100644 index 000000000000..d5b7eab04763 --- /dev/null +++ b/mail-filter/dcc/ChangeLog @@ -0,0 +1,16 @@ +# ChangeLog for net-mail/dcc +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v 1.1 2004/06/03 07:04:52 seemant Exp $ + +*dcc-1.2.28 (03 Jun 2004) + + 03 Jun 2004; Seemant Kulleen <seemant@gentoo.org> +metadata.xml, + +dcc-1.2.28.ebuild: + Moved from net-mail/dcc to mail-filter/dcc. + +*dcc-1.2.28 (20 Jan 2004) + + 20 Jan 2004; Robin H. Johnson <robbat2@gentoo.org> dcc-1.2.28.ebuild, + metadata.xml: + initial commit, ebuild by robbat2@gentoo.org + diff --git a/mail-filter/dcc/Manifest b/mail-filter/dcc/Manifest new file mode 100644 index 000000000000..b94f09f2b7c3 --- /dev/null +++ b/mail-filter/dcc/Manifest @@ -0,0 +1,4 @@ +MD5 28242c59b16ea7c8b8f3070bd4d816d8 dcc-1.2.28.ebuild 3071 +MD5 10595585d817c28e26035aab612a4b32 ChangeLog 370 +MD5 2f5d2faaf988e9e5fdad1e48c66f6fc4 metadata.xml 224 +MD5 f4024b299ddf4d0921ef9dc6cce1b0c3 files/digest-dcc-1.2.28 67 diff --git a/mail-filter/dcc/dcc-1.2.28.ebuild b/mail-filter/dcc/dcc-1.2.28.ebuild new file mode 100644 index 000000000000..c98d15b43175 --- /dev/null +++ b/mail-filter/dcc/dcc-1.2.28.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/dcc-1.2.28.ebuild,v 1.1 2004/06/03 07:04:52 seemant Exp $ + +DESCRIPTION="Distributed Checksum Clearinghouse" +HOMEPAGE="http://www.rhyolite.com/anti-spam/dcc/" +MY_P="dcc-dccd-${PV}" +SRC_URI="${HOMEPAGE}/source/${MY_P}.tar.Z" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" + +RDEPEND="dev-lang/perl + net-mail/procmail + || ( net-misc/wget net-www/fetch net-misc/curl net-ftp/ftp ) + virtual/glibc" +DEPEND="sys-apps/sed + sys-devel/gcc + ${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +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 + +src_compile() { + local myconf + myconf="${myconf} --homedir=${dcc_homedir}" + myconf="${myconf} --libexecdir=${dcc_libexec}" + myconf="${myconf} --bindir=/usr/bin" + myconf="${myconf} --mandir=/usr/share/man" + myconf="${myconf} --with-cgibin=${dcc_cgibin}" + myconf="${myconf} --disable-dccm" + #myconf="${myconf} --without-cgibin" + myconf="${myconf} --with-rundir=/var/run/dcc" + myconf="${myconf} `use_enable ipv6 IPv6`" + ./configure ${myconf} || die "configure failed!" + #make -C homedir + emake || die "emake failed!" +} + +moveconf() { + for i in $@; do + local into=/etc/dcc/ + local from=/var/dcc/ + mv ${D}${from}${i} ${D}${into} + dosym ${into}${i} ${from}${i} + done +} + +src_install() { + # stolen from the RPM .spec and modified for gentoo + MANOWN=root MANGRP=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} ${dcc_cgibin} /usr/bin /usr/sbin /usr/share/man/man{0,8} /etc/dcc + keepdir /var/run/dcc /var/log/dcc + + make DESTDIR=${D} DCC_BINDIR=${D}/usr/bin MANDIR=${D}/usr/share/man/man install || die + + einfo "Branding and setting reasonable defaults" + sed -e "s/BRAND=\$/BRAND='Gentoo ${PF}'/;" \ + -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/' \ + -i ${D}${dcc_homedir}/dcc_conf + + einfo "Providing cronjob" + mv ${D}/usr/bin/cron-dccd ${D}/etc/cron.daily/dccd + + einfo "Puting system code in sbin instead of bin" + mv ${D}/usr/bin/{dbclean,dblist,dccd,dccsight,refeed,start-dccd,stop-dccd,wlist,dcc-stats-graph,newwebuser,dcc-stats-init,stats-get,dcc-stats-collect,dccifd,start-grey,start-dccifd,fetch-testmsg-whitelist} ${D}/usr/sbin/ + + einfo "Cleaning up" + rm -f ${D}/usr/bin/{logger,hackmc,na-spam,ng-spam,rcDCC,start-dccm,updatedcc} + + einfo "Placing configuration files into /etc instead of /var/run" + moveconf dcc_conf flod grey_flod grey_whitelist ids map.txt whiteclnt whitecommon whitelist + + rmdir ${D}/var/dcc/log/ +} diff --git a/mail-filter/dcc/files/digest-dcc-1.2.28 b/mail-filter/dcc/files/digest-dcc-1.2.28 new file mode 100644 index 000000000000..2910d3ee7679 --- /dev/null +++ b/mail-filter/dcc/files/digest-dcc-1.2.28 @@ -0,0 +1 @@ +MD5 10a8402de107e81a028664cf4b93ec97 dcc-dccd-1.2.28.tar.Z 1221437 diff --git a/mail-filter/dcc/metadata.xml b/mail-filter/dcc/metadata.xml new file mode 100644 index 000000000000..0f6802b938a7 --- /dev/null +++ b/mail-filter/dcc/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-herd</herd> +<maintainer> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> |