summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2013-12-28 04:33:15 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2013-12-28 04:33:15 +0000
commit8d93a087e850fbc3c7b23482b28659bb0c55d442 (patch)
treeda18a3b5ed4f3b9703aa6513087efc7d23aa0c60 /mail-filter/dcc
parentReally fix manifest... (diff)
downloadhistorical-8d93a087e850fbc3c7b23482b28659bb0c55d442.tar.gz
historical-8d93a087e850fbc3c7b23482b28659bb0c55d442.tar.bz2
historical-8d93a087e850fbc3c7b23482b28659bb0c55d442.zip
Bug #452328: bump, also bashisms in init script.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Diffstat (limited to 'mail-filter/dcc')
-rw-r--r--mail-filter/dcc/ChangeLog8
-rw-r--r--mail-filter/dcc/Manifest33
-rw-r--r--mail-filter/dcc/dcc-1.3.154.ebuild136
-rw-r--r--mail-filter/dcc/files/dcc.initd-1.3.154101
4 files changed, 252 insertions, 26 deletions
diff --git a/mail-filter/dcc/ChangeLog b/mail-filter/dcc/ChangeLog
index bd2aefcf4d15..33b8254e1dc8 100644
--- a/mail-filter/dcc/ChangeLog
+++ b/mail-filter/dcc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/dcc
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v 1.75 2013/01/01 18:03:36 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/ChangeLog,v 1.76 2013/12/28 04:33:08 robbat2 Exp $
+
+*dcc-1.3.154 (28 Dec 2013)
+
+ 28 Dec 2013; Robin H. Johnson <robbat2@gentoo.org> +dcc-1.3.154.ebuild,
+ +files/dcc.initd-1.3.154:
+ Bug #452328: bump, also bashisms in init script.
01 Jan 2013; Lars Wendler <polynomial-c@gentoo.org> files/dcc.initd-1.3.140:
Non-maintainer commit: Removed bashism in init script (bug #388723).
diff --git a/mail-filter/dcc/Manifest b/mail-filter/dcc/Manifest
index 465fe20b80f4..f65b2485c3da 100644
--- a/mail-filter/dcc/Manifest
+++ b/mail-filter/dcc/Manifest
@@ -1,40 +1,23 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX dcc-1.3.140-configure-fix.patch 426 SHA256 b3cebec1d0f22d3158f15613a227c924dc6e8edc1f14fd9e562306da3fc132ba SHA512 e6057fef60053a07013c5575422e46ad50004583385650f5b95593bbb45949779fe65c10776952eaa3edaa504d24a1243fa6be8026873b63a915bfccb0b8740a WHIRLPOOL c59d9ec0343180e9682b2278dd5c015a01e30211d8ab8488829879aca96cb457d62d9842fa49dc0a4540e99ffc3f6ce3b42958845219f8f29af8bb1e596d06bf
AUX dcc-1.3.86.patch 1337 SHA256 0ff766a5c4254be8af20bfc7e3b350e8f9990faa6ebb87d1f5d8b982f8bb572b SHA512 4d50a6d0f682603155f5a5ac025944356f8bee03fbea8f0782342c9f6aa2f3174069e02386dcd6eecd400f6be8066c656fcdfc88a3baa1f812b2170d4ba84143 WHIRLPOOL 923fd00df319f4c064fcc0f186189f918fc603161b088356e805f32cb4c01353cfbbd8c387ee44c5c0619f839122962cd1e7292b3d3b6c199834fc9d802ebd8e
AUX dcc.confd 274 SHA256 c3c379c26d3c06a18ba87bd22bb299cbcacad262eff78ce75385c6d753373a0e SHA512 15b7e4ded3e56e9d15509305df244e29ec7a6c3c163c49a4597e16274317d88f5aff5522984a2a3002f838d0220d04c2ea3def8d771712a11685408a4983d3b4 WHIRLPOOL b69c606ee2ab80a430ee45ccfcb1b329ded8938aecfc751187e085aafb10733dc74a62d57751c4797b1211c9f47a72c347e18a2065c505c45c5c6d399c1f0515
AUX dcc.initd 3119 SHA256 3b953c64975953d657f67d7d4697626508696ef262e786616a951017445dd339 SHA512 b3a3d050528127e8550f101e77cf07ebbe991c6a0cd51e8d9506c9747b8a212193ee87a201931425ca1be77c427c1098fa0d02b4d1eb511a0a9218c66be337c4 WHIRLPOOL 1a73ec208fea17cd128424a5f318d34804c1a7a61b048ba987d7e4f29e0f6af8b2f64ba76756d96a662a25d820a6e9d3f6b049b2e3cb4259391de42ea8cb399a
AUX dcc.initd-1.3.140 2812 SHA256 8ccc6f817d8cc9568fee920c597987340114b319436e79403336faf82f5c5b50 SHA512 e29613b7159f30a23eb58253801813cd0e5636a0d6ddeabf9d89d9e9556a1d46961cadae779ae2bfe756f125751ef00ac0a44431af699a3ea6344d155c121eea WHIRLPOOL ed81bb971a5e58dbbdb8e41994183e1b9bd1ce8b43379d00e5dc74ddd3b6b097e66ed1910a22760437acf49182d945bce7d331ddf05b1b913dadac9d9477763f
-DIST dcc-1.3.102.tar.Z 2451793 SHA256 5da6d017048801b8dec39a7a4a078e15b41fa26aa1c486ad69c1fc1b41bde149
-DIST dcc-1.3.119.tar.Z 1635339 SHA256 1527d293481a7c957227cc2e39609135401adb0c1281b48f4132ee31bc903bd2
-DIST dcc-1.3.135.tar.Z 1680018 SHA256 d439c2d4b05884826646b46139a81a769857e669150c732266cede6a30506670
+AUX dcc.initd-1.3.154 2815 SHA256 52fbf589ebf813b6bb051d88e179d19fb2179303f6d4c94b8898e543dd6bc8cd SHA512 baafe53a9ee5543794a1aaa563dc7e759cd9b18d065314d7b3bcd7a89f8a004af0847c757bd5f3396a98b9af9a2d8a38c85040657495c9d85bb83cf50ecff161 WHIRLPOOL 8b0b605698a1f4849a724710146443a4a9ba6a15db8a5cc0212ede91d384b37143cdb3fb9355214ad9736d23153968a33565f73f34156bc951c431ffc5e3be2a
+DIST dcc-1.3.102.tar.Z 2451793 SHA256 5da6d017048801b8dec39a7a4a078e15b41fa26aa1c486ad69c1fc1b41bde149 SHA512 eced863f2955756c7fbd2a2f951fe79b77369ad4d86a6df6a790bb81c89c0f792b93feef84ce2a8e750e1a9b72fb35a33a4beae2cc265f861dcb9c15602ef6e2 WHIRLPOOL 8ac599b2c0647723a4ad9f59f5bb549be1900cf18806b2071e45c881623f9c234ac6388c1d47b686a500a38ef0a4365dcd639e9b3e4a885ffcd803f9f30711f1
+DIST dcc-1.3.119.tar.Z 1635339 SHA256 1527d293481a7c957227cc2e39609135401adb0c1281b48f4132ee31bc903bd2 SHA512 ea22941031edd02e1f86755a03b78214baf9acbc3f9764ada9e2948cc0a07e9ac4ab7e5566e506d9f40a56f15d482a97b404f3709ac174f84b1fd2f5c3377454 WHIRLPOOL 3bc5e8b3a80139982fda42f042a9f2945f94c1ac3c7460a7fc40f467718f4d026161635be9e2eb59687536d841faf212364dc92f3fae68416bcab71612fa487b
+DIST dcc-1.3.135.tar.Z 1680018 SHA256 d439c2d4b05884826646b46139a81a769857e669150c732266cede6a30506670 SHA512 48fd0a496915e9a5c6678613ab6a80e70767f1a8122ae687b955314d90dc5fef44dc24daf43874dbac99987094b238173a0e090694976532e19a4232931d57f9 WHIRLPOOL 2270549c30c1b12f60281fe61df397d41a7a00c35d2faa840efeaa4f1631ef4212751109ec56a82f575832305118affd2db4ca058e57bfc0384b3a7a120a1e90
DIST dcc-1.3.140.tar.Z 1681539 SHA256 19060563d3d72b70578d8f16e6780458d36f1a1db18a6d1e533bc42d80c38f24 SHA512 1c36bb32ae36480ded8306ca6a460a3070758397075cd6a4cee9c01a0e306ad371336037adf7759c8ef96f46b36c408699b7ec43b01268ac8e7c289d1e31d2e1 WHIRLPOOL 9415bd94a74b6e0d22ec323a8cf5227c08f5026c24b1530c7708321d092d5f0c58d6f3d5e7beb03d0dca948ea8c75cf3220d34e1b077030ee0b9b85c80644b64
-DIST dcc-1.3.97.tar.Z 2548599 SHA256 d959351a7440e0703f35ebcfc4bfd8e83b92867a82970f716816aa84c55c49f7
+DIST dcc-1.3.154.tar.Z 1711292 SHA256 bc2e1496ec04914690c1d6d9d0f8be0954551b4165d731eb2d07dad307269399 SHA512 703bd3de44ccff3f318239dc2ca26a285f83ae0340a91391bcc5b719c298e77c8122d1502665350ddfc9fb14f12d9b6a56cba422ff8985db9cee6c91091fb987 WHIRLPOOL 7595b36066d3a89b1d2f4952334f6abe7cc70a1c03ff06ac6596b8901b8590329c944c9eeb132ed6253a4841150308378bef87dc5b2b74495c92a283110e0b14
+DIST dcc-1.3.97.tar.Z 2548599 SHA256 d959351a7440e0703f35ebcfc4bfd8e83b92867a82970f716816aa84c55c49f7 SHA512 33e7f79e4de7356f094c653205445bfbeecd7b80c5fa667a482aec571c5023f826bdd47a5ff8f95613b24604d90bb1e63e6be9acfa012a7c5e13755d95781e8c WHIRLPOOL d533efc55ed07b474080ad72e80e30a2629b10c9c234166f139c4b5376d140a575002942eebcc076d6b5366684039692202802db0ca9be8f4599cb994cc96461
DIST dcc-dccd-1.3.55.tar.Z 1457561 SHA256 9aa82c645b90a1000c6cc812e6df18768885486e053194220e8753d1c45ebb94 SHA512 8f2d3ed12818f61b5f8e9a247187ef3b22106f5d6063448b322a171f9c278e4c6333427aa4a5e3ce4a331279d885811d6e513e9b74da3b2c73267a14d86005f8 WHIRLPOOL 205d4025eae2b1bf283257823c5ab10fe9e343c43ea03527e9f4ab7cfc592332f4b3fee8a81173f7ad5a66be910429478b5ae855ee1fc3021e98889978a3076a
EBUILD dcc-1.3.102.ebuild 4242 SHA256 63d7e19498fbb8e0696cd142e0a289f2258d5d8906ab057df4a3fae5a35981c3 SHA512 cd8ee5d60be41dfe7122cad79c29babf72176ae390eae7bed0aa0bca16568aff5d378d62efed8575f8667e84f3755c004f52089f692751f1e7ac30a4be0aa504 WHIRLPOOL 2e76679bbc8f3a2a69534c29b3aae2999e21fc1a7ad284fc5af2c9dec7489220ba9cd1498cc139faec302ae6b7fcb5ea8364090240bc6df4a04e05a3410638c3
EBUILD dcc-1.3.119-r1.ebuild 4316 SHA256 dd5febb6de63cc2fb531c61570f4863f49fb39c6fcb6ec4923cedb64398a7802 SHA512 83f787805293e439f9659e995ab3ae6d2c5b19b7da8330d326ce4ddf13f1ea0faebc5311689c2def30771b8f2f77c40fd7898186967b9094fe4dcbb4ce1f5c0e WHIRLPOOL d6b8259a42a40d775b7811b73eaae3091dc2333d7820340bd2079edec1769a6d19ff21feea84bd69deb20e7db37cc7f42a59692fd4802b4509d65c6d708cae5a
EBUILD dcc-1.3.119.ebuild 4281 SHA256 5e41bf38b798a92def77c40dabd34d7a243238565de8cdb945ad9990a7c8c9b1 SHA512 9b6156799e998cec0493e117805de4bedfc90e5cc2469822364e70cc64d1dc641abb95e6986e273daac49c359409aaf6b9c723089b748399c86010283eb7a8e0 WHIRLPOOL 50e78833927355ab4bd639cfb5998d6ce666efcb9d86707db3225bc672ee0dfd3f3feb2f42b0c7c2897a9f34a29a2a789646d41444fc540a691f4e1c90319b84
EBUILD dcc-1.3.135.ebuild 4312 SHA256 9259c69aae7641f99b001638902bf6f7597938d3bfe237b15c3d9e0b4da1f4d5 SHA512 46c88df862d3a605e7cbf25000beae7003dcf2e148b9d3803ba9501c7b7a4619a322a1e03c10c1d8bf77a5779ebed47109636cb289522387a05ae4cb57284d6b WHIRLPOOL 97bdd35a6017cee61a31a3d0b83ae48753db4e2be32c56ac2413f0749dc3c760be4109684eda0754d08b865fafb178e17e68c91edbe53b2826075b934d2f3aec
EBUILD dcc-1.3.140-r1.ebuild 4560 SHA256 73a6cbe5e37398351af758a3b31289aeb45bf7083f58e0ff66999e4df3b8e7cf SHA512 c4428d6ef0232e18bbcf23b9f4adbe203b7c245053089ae587bcc0de1da9af2fc0e4441c6555b0c986d8c8d9a9de7369760946376cd04798f16cf69507ac82b1 WHIRLPOOL 753ad160163ed57e826344654d690d50dccfe77d3991f7abeddd5ad52967b4718e02d67f0210ea9072e5a327a1dc463b912f545c69ab3aba970d747aef40417a
+EBUILD dcc-1.3.154.ebuild 4473 SHA256 2f8960b5c9ab85ffc179e1196b08de9460628bd8e5e5b510ce56e20f1d26e3c3 SHA512 010e428b5c8f8ec3456ddee1f116efb1e3dc65b1a94ca306c6a8cfb832b4e6fab5bef6cc382d8c3985da998fedcc3b8acef737022dcca799bc140e530b0f5681 WHIRLPOOL 889e52fb580f7539f3f8d1daaf1c2aa1b519c9c8839598f73a1591ca6d3949ab961fcf76f9c02f3d7f35cde0ad7980e0d05241427ecfa96e9a71515e143a8dc8
EBUILD dcc-1.3.55.ebuild 3905 SHA256 6e40f958e75847e4b515dc20677294808ee11af0474b094c6e3bff160379a036 SHA512 380fb1ccbb88f96a008694a4398444a00591601b1f4ead3820b95080c10feb7f040498eeec6ed52608cccef2791bc86d0788895d3dbc69a49c616d8da2c44849 WHIRLPOOL 05a4b98fc6a165e107d221be145b319a58676b0520f0d47bbf2a6c68643b31054cf93bd1a5f3852f392b1c31023e77b0475c25c8a00e4d887b52315c8eac2cca
EBUILD dcc-1.3.97.ebuild 4241 SHA256 0833e9402dd81fabae7c99f63a25e8ee0b11eebf950884643cc6c22329c9ff4d SHA512 7fe980e4dec6632c5dd2c77967a4d10babbb14dcbcb253cf047c088a818c05ebd156da212eb7d82c3f8d3d3fcd5f92d1fa432eb5789f933594994c63b268ffef WHIRLPOOL c7ec85d3eaeaf3ec76a0075569b97c1f05c17f57f1bf1f891b794adb03f0d9260f6fec330782d85968e82721ce0542b5c3ce04304cf45f7f0437df9e8af36553
-MISC ChangeLog 9351 SHA256 2ec2f76778931fa927f8f56fc330934e8819e3c0df4e976c9571e447576d9ae4 SHA512 1e80ba8e2c8c22c0fd81ee7fe54b5af64c124a0eea48351ada047201d979a1953e568a21fc25bca01e694c73592655cf4f1d721301c75dac87aa1e0e7f0340f6 WHIRLPOOL 073e688d802a2ff38faf77a58fab8d8ceb79b03ec81fa8646fff5b66233b6d56ea82f73b622301bf73fa6a0a8dde927db91e2f7db131937a45a0673da8827918
+MISC ChangeLog 9528 SHA256 f034cd501a4ae1eeb1ccf033b556f668d16067b37f22739d7e108707da420395 SHA512 e69eb6ffece470fe688881594d6c1cf96965700616919bc83967dd795961ad36d547bf5877057c2a3596f88cc871187c88479eed4ae4601260963aac7d7ebecf WHIRLPOOL bb8491a3b83539d7f5e22b1ee230bf66530bbb38284be1332b43267344075a936add5d2ea1f94ba73ee2260a948deaf5d3b63293bca3f286d0f0863529422998
MISC metadata.xml 324 SHA256 ceb55854f84ec88f0305b0138c48c22bd8fa0834127c78cc158447527dad7155 SHA512 cd9f142a6a797fdc44efb0f11740c7a940140d6e4a8ad80c0369925062da0f9bc6e93645d53400941c91396e547200f79ce0c54de96034fa788be19b5794f25a WHIRLPOOL 7f4703f428f5b3902b1b50b7c09082a7bfee2f2a6913574eb6d5c73076157ac42796def2dea991cc996cc4b3c6949de555a07aa44992dc4e2d3e4504cbf70fd9
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQIcBAEBCAAGBQJQ4yT5AAoJEPiazRVxLXTFX3AP/1WeUz6otKtFlwaQkaoto9U1
-yEIpy2ul0iLC746nT5aq9cv9Qxp7P9FPokjtlXcjQCuG5avQ3rIY7Cuec7HQ19sO
-P6daD9GYF2tePPla8rYqxwnYSx3SV5TWTvr/3Ll21eHWVguafm+sNCBD1W4KlFbQ
-wez26Fvq5pynumV1W097CmTR9F01dcYSpRSET1pAjstzr5lFcAgNAKr2wuu15M3w
-cndWcpnViXS857TsH8PtrjquGSCSi7TN4nIMGXW+peoTEcWrf55gg4zLH+aAe3xr
-X7cmQP3JSvYU4JZqGfhOIetwjyuT+dqZ2JglWgre1807e8YEvGv0Og0bdNpOxC8w
-OCmVuhYYJpOMkj1YmdN2ugkWa0m6955Uw3ZpaTF2cRePf+DuAEA2JIHG6iRv4bYB
-5t/103ispQZg39+LK0/8B09DdLVT2hbKMbaKuVau5XApWFfeLXFe238px0SDbg7c
-YFrPNDPnrK2Ix3lEXbGPC5eGVbv+R7xH5vSEPH/JyPCYOfXFPog4BWLt6K/WipAE
-D5ds5I6BL6u4ObnnkChwmkhHZiMhIH1YIyesNjvQOhSchjLDWxPx+s6l6Wnbb6BS
-ydz7OwCbmNQ4cel6rjyUhSMehYQzpn3vT8t+6keI1wG/q6VB67xB+p6/9qEz1C15
-uaiTSct4vgXtuis1MCqD
-=/9Fv
------END PGP SIGNATURE-----
diff --git a/mail-filter/dcc/dcc-1.3.154.ebuild b/mail-filter/dcc/dcc-1.3.154.ebuild
new file mode 100644
index 000000000000..19feef3f5b3b
--- /dev/null
+++ b/mail-filter/dcc/dcc-1.3.154.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/dcc-1.3.154.ebuild,v 1.1 2013/12/28 04:33:08 robbat2 Exp $
+
+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"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+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-configure-fix.patch # Merged upstream
+
+src_configure() {
+ 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} $(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!"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake 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=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 || die "emake install failed"
+
+ # 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}
+}
diff --git a/mail-filter/dcc/files/dcc.initd-1.3.154 b/mail-filter/dcc/files/dcc.initd-1.3.154
new file mode 100644
index 000000000000..f55c91b7a2a6
--- /dev/null
+++ b/mail-filter/dcc/files/dcc.initd-1.3.154
@@ -0,0 +1,101 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dcc/files/dcc.initd-1.3.154,v 1.1 2013/12/28 04:33:08 robbat2 Exp $
+
+depend() {
+ use logger
+ need net
+ before mta
+}
+
+checkconfig() {
+ if [ ! -f "/etc/dcc/dcc_conf" ]; then
+ eerror "You need a DCC configuration in /etc/dcc/dcc_conf"
+ return 1
+ fi
+ for i in DCCD_ENABLE GREY_ENABLE DCCM_ENABLE DCCIFD_ENABLE DCC_LIBEXEC DCC_RUNDIR \
+ SOCKET_USER SOCKET_GROUP SOCKET_MODE; do
+ read -r ${i} <<-EOF
+ $( grep ^[[:space:]]*${i} /etc/dcc/dcc_conf | sed s/.*=// )
+ EOF
+ done
+ DCC_RUNDIR="${DCC_RUNDIR:-/var/run/dcc}"
+ if [ ! -d "${DCC_RUNDIR}" ]; then
+ checkpath -q -d -o root:root -m 0755 "${DCC_RUNDIR}" || return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ local atleastone="${DCCD_ENABLE}${GREY_ENABLE}${DCCM_ENABLE}${DCCIFD_ENABLE}"
+ atleastone=$( echo ${atleastone} | tr -d 'off' )
+ if [ -z "${atleastone}" ]; then
+ eend 1 "At least one service should be 'on' in /etc/dcc/dcc_conf"
+ return 1
+ fi
+
+ if [ "${DCCD_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-dccd" ]; then
+ ebegin "Starting dccd"
+ ${DCC_LIBEXEC}/start-dccd >/dev/null 2>&1
+ eend ${?}
+ fi
+
+ if [ "${GREY_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-grey" ]; then
+ ebegin "Starting grey"
+ ${DCC_LIBEXEC}/start-grey >/dev/null 2>&1
+ eend ${?}
+ fi
+
+ if [ "${DCCM_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-dccm" ]; then
+ ebegin "Starting dccm"
+ ${DCC_LIBEXEC}/start-dccm >/dev/null 2>&1
+ eend ${?}
+ local dccmtimeout=0
+ while [ ${dcctimeout} -le 20 ] ; do
+ if [ -S "${DCC_RUNDIR}/dccm" ] || [ -r "${DCC_RUNDIR}/dccm" ]; then
+ break
+ else
+ sleep 1
+ dcctimeout=$(($dcctimeout + 1))
+ fi
+ done
+ chown ${SOCKET_USER:-milter}:${SOCKET_GROUP:-milter} ${DCC_RUNDIR}/dccm 1>/dev/null 2>&1
+ chmod ${SOCKET_MODE:-664} ${DCC_RUNDIR}/dccm 1>/dev/null 2>&1
+ sed -i -e "s:^\-::" ${DCC_RUNDIR}/dccm.pid 1>/dev/null 2>&1 || return 1
+ fi
+
+ if [ "${DCCIFD_ENABLE}" = "on" ] && [ -x "${DCC_LIBEXEC}/start-dccifd" ]; then
+ ebegin "Starting dccif"
+ ${DCC_LIBEXEC}/start-dccifd >/dev/null 2>&1
+ eend ${?}
+ fi
+}
+
+stop() {
+ checkconfig || return 1
+
+ if [ -r "${DCC_RUNDIR}/dccifd.pid" ]; then
+ ebegin "Stopping dccif"
+ kill -s 15 $(cat ${DCC_RUNDIR}/dccifd.pid) 2>/dev/null
+ eend ${?}
+ fi
+
+ if [ -r "${DCC_RUNDIR}/dccm.pid" ]; then
+ ebegin "Stopping dccm"
+ kill -s 15 $(cat ${DCC_RUNDIR}/dccm.pid) 2>/dev/null
+ eend ${?}
+ fi
+
+ if (pidof dccd >/dev/null 2>&1) && [ -x "${DCC_LIBEXEC}/stop-dccd" ]; then
+ ebegin "Stopping dccd"
+ ${DCC_LIBEXEC}/stop-dccd >/dev/null 2>&1
+ eend ${?}
+ fi
+
+ if (pidof dccd >/dev/null 2>&1) && [ -x "${DCC_LIBEXEC}/stop-dccd" ]; then
+ ebegin "Stopping grey"
+ ${DCC_LIBEXEC}/stop-dccd -G >/dev/null 2>&1
+ eend ${?}
+ fi
+}