From 2e4c95e4d175af46f815f940f332e82159d55f2e Mon Sep 17 00:00:00 2001 From: Fredric Johansson Date: Sun, 18 Jan 2015 06:07:17 +0000 Subject: [PATCH] mail-mta/nullmailer: fixed to build on musl --- mail-mta/nullmailer/ChangeLog | 443 +++++++++++++++++++++ mail-mta/nullmailer/Manifest | 9 + mail-mta/nullmailer/files/init.d-nullmailer-r4 | 51 +++ .../nullmailer/files/nullmailer-1.13-uid_t.patch | 10 + mail-mta/nullmailer/files/nullmailer.service | 17 + mail-mta/nullmailer/files/remotes.sample-1.13 | 29 ++ mail-mta/nullmailer/metadata.xml | 13 + mail-mta/nullmailer/nullmailer-1.13-r99.ebuild | 168 ++++++++ 8 files changed, 740 insertions(+) create mode 100644 mail-mta/nullmailer/ChangeLog create mode 100644 mail-mta/nullmailer/Manifest create mode 100644 mail-mta/nullmailer/files/init.d-nullmailer-r4 create mode 100644 mail-mta/nullmailer/files/nullmailer-1.13-uid_t.patch create mode 100644 mail-mta/nullmailer/files/nullmailer.service create mode 100644 mail-mta/nullmailer/files/remotes.sample-1.13 create mode 100644 mail-mta/nullmailer/metadata.xml create mode 100644 mail-mta/nullmailer/nullmailer-1.13-r99.ebuild diff --git a/mail-mta/nullmailer/ChangeLog b/mail-mta/nullmailer/ChangeLog new file mode 100644 index 0000000..90b3ce2 --- /dev/null +++ b/mail-mta/nullmailer/ChangeLog @@ -0,0 +1,443 @@ +# ChangeLog for mail-mta/nullmailer +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.91 2015/01/05 12:46:00 jlec Exp $ + + 05 Jan 2015; Justin Lecher -nullmailer-1.13-r4.ebuild: + Drop old, obsoletes #521552 & #532588 + + 31 Dec 2014; Agostino Sarubbo nullmailer-1.13-r5.ebuild: + Stable for ppc, wrt bug #532622 + + 28 Dec 2014; Agostino Sarubbo nullmailer-1.13-r5.ebuild: + Stable for x86, wrt bug #532622 + + 27 Dec 2014; Agostino Sarubbo nullmailer-1.13-r5.ebuild: + Stable for amd64, wrt bug #532622 + +*nullmailer-1.13-r5 (15 Dec 2014) + + 15 Dec 2014; Justin Lecher +nullmailer-1.13-r5.ebuild: + Drop einstall in favour of plain emake, #521552; prepend chmod/chown calls in + pkg_* with ROOT, #532588 + + 27 Mar 2014; Justin Lecher -nullmailer-1.13-r2.ebuild, + -files/init.d-nullmailer-r3: + Drop old + + 24 Mar 2014; Agostino Sarubbo nullmailer-1.13-r4.ebuild: + Stable for ppc, wrt bug #502832 + + 09 Mar 2014; Pawel Hajdan jr + nullmailer-1.13-r4.ebuild: + x86 stable wrt bug #502832 + + 07 Mar 2014; Pacho Ramos nullmailer-1.13-r4.ebuild: + amd64 stable, bug #502832 + + 08 Jan 2014; Justin Lecher files/nullmailer.service: + Also enable logging for systemd systems + +*nullmailer-1.13-r4 (08 Jan 2014) + + 08 Jan 2014; Justin Lecher -nullmailer-1.13-r3.ebuild, + +nullmailer-1.13-r4.ebuild, +files/init.d-nullmailer-r4: + Enable sysloging + +*nullmailer-1.13-r3 (08 Jan 2014) + + 08 Jan 2014; Justin Lecher +nullmailer-1.13-r3.ebuild, + -files/remotes.sample-1.04, -files/remotes.sample-1.11, + -files/init.d-nullmailer-r1, -files/init.d-nullmailer-r2: + Port debian patches to 0.13 which enables syslog again, #496960 + + 21 Dec 2013; Agostino Sarubbo nullmailer-1.13-r2.ebuild: + Stable for ppc, wrt bug #480060 + + 02 Nov 2013; Justin Lecher -nullmailer-1.11-r2.ebuild, + -nullmailer-1.11-r3.ebuild: + Drop old + + 01 Nov 2013; Agostino Sarubbo nullmailer-1.13-r2.ebuild: + Stable for x86, wrt bug #480060 + + 20 Oct 2013; Pacho Ramos nullmailer-1.13-r2.ebuild: + amd64 stable, bug #480060 + + 25 Sep 2013; Justin Lecher nullmailer-1.11-r2.ebuild, + nullmailer-1.11-r3.ebuild, nullmailer-1.13-r2.ebuild: + Fix incompatibilities with some automake versions, #478312 + +*nullmailer-1.13-r2 (25 Sep 2013) + + 25 Sep 2013; Justin Lecher -nullmailer-1.11.ebuild, + -nullmailer-1.11-r1.ebuild, nullmailer-1.11-r2.ebuild, + nullmailer-1.11-r3.ebuild, -nullmailer-1.13.ebuild, + -nullmailer-1.13-r1.ebuild, +nullmailer-1.13-r2.ebuild, + +files/init.d-nullmailer-r3: + Drop old vulnerable versions, #480376; respect AR, #480394; make paludis + happy, #462846 thanks Thomas Witt for the patch; fix broken openrc + initscript, #480354 + + 25 Sep 2013; Justin Lecher metadata.xml: + Add myself as maintainer + +*nullmailer-1.11-r3 (08 Sep 2013) + + 08 Sep 2013; Pacho Ramos +nullmailer-1.11-r3.ebuild: + Backport service file to 1.11.x to allow faster stabilization as 1.13 has some + regressions now (#480354) + + 28 Aug 2013; Agostino Sarubbo nullmailer-1.11-r2.ebuild: + Stable for x86, wrt bug #480376 + + 10 Aug 2013; Agostino Sarubbo nullmailer-1.11-r2.ebuild: + Stable for ppc, wrt bug #480376 + + 10 Aug 2013; Agostino Sarubbo nullmailer-1.11-r2.ebuild: + Stable for amd64, wrt bug #480376 + +*nullmailer-1.11-r2 (09 Aug 2013) + + 09 Aug 2013; Robin H. Johnson +nullmailer-1.11-r2.ebuild, + nullmailer-1.13-r1.ebuild: + Bump to fix security bug #480376, /etc/nullmailer/remotes world-readable + (backport to stable) + +*nullmailer-1.13-r1 (09 Aug 2013) + + 09 Aug 2013; Robin H. Johnson +nullmailer-1.13-r1.ebuild: + Bump to fix security bug #480376, /etc/nullmailer/remotes world-readable + +*nullmailer-1.13 (25 Jul 2013) + + 25 Jul 2013; Justin Lecher +nullmailer-1.13.ebuild, + +files/remotes.sample-1.13, +files/nullmailer.service, metadata.xml: + Version BUmp, #468152; Add support for systemd, #478166; fix wron + documentation, #475908 + + 28 Feb 2013; Jason A. Donenfeld nullmailer-1.11-r1.ebuild, + nullmailer-1.11.ebuild: + Block opensmtpd. + + 26 Jan 2013; Agostino Sarubbo nullmailer-1.11-r1.ebuild: + Stable for ppc, wrt bug #450820 + + 22 Jan 2013; Agostino Sarubbo nullmailer-1.11-r1.ebuild: + Stable for amd64, wrt bug #450820 + + 22 Jan 2013; Agostino Sarubbo nullmailer-1.11-r1.ebuild: + Stable for x86, wrt bug #450820 + + 08 Jan 2013; Eray Aslan files/init.d-nullmailer-r2: + Do not provide mta + +*nullmailer-1.11-r1 (08 Jan 2013) + + 08 Jan 2013; Eray Aslan +files/init.d-nullmailer-r2, + +files/remotes.sample-1.11, +nullmailer-1.11-r1.ebuild: + Documentation and init script update + + 06 Dec 2012; Eray Aslan -files/init.d-nullmailer, + -files/nullmailer-1.10-fix-sendmail.patch, -nullmailer-1.05.ebuild, + -nullmailer-1.06.ebuild, -nullmailer-1.10-r1.ebuild, -nullmailer-1.10.ebuild: + Remove old + + 06 Nov 2012; Eray Aslan nullmailer-1.05.ebuild, + nullmailer-1.06.ebuild, nullmailer-1.10-r1.ebuild, nullmailer-1.10.ebuild, + nullmailer-1.11.ebuild: + mail-mta/nbsmtp is no longer in the tree - remove from DEPEND + + 18 Sep 2012; Anthony G. Basile nullmailer-1.11.ebuild: + stable ppc, bug #433303 + + 17 Sep 2012; Johannes Huber nullmailer-1.11.ebuild: + Stable for x86, wrt bug #433303 + + 09 Sep 2012; Rajiv Aaron Manglani nullmailer-1.11.ebuild: + fix automake errors, bug #434500. + + 09 Sep 2012; Agostino Sarubbo nullmailer-1.11.ebuild: + Stable for amd64, wrt bug #433303 + + 05 Aug 2012; Agostino Sarubbo nullmailer-1.10-r1.ebuild: + Stable for amd64, wrt bug #428408 + + 30 Jul 2012; Anthony G. Basile + nullmailer-1.10-r1.ebuild: + Stable ppc, bug #428408 + + 29 Jul 2012; Jeff Horelick nullmailer-1.10-r1.ebuild: + marked x86 per bug 428408 + +*nullmailer-1.11 (28 Jul 2012) + + 28 Jul 2012; Eray Aslan +nullmailer-1.11.ebuild: + Version bump + +*nullmailer-1.10-r1 (12 Jun 2012) + + 12 Jun 2012; Eray Aslan +nullmailer-1.10-r1.ebuild, + +files/nullmailer-1.10-fix-sendmail.patch: + Fix option parsing - bug #420301 + +*nullmailer-1.10 (05 Jun 2012) + + 05 Jun 2012; Eray Aslan +files/init.d-nullmailer-r1, + +nullmailer-1.10.ebuild: + Version bump. Change --chuid to --user in init script. Bugs #415417 #405529 + + 04 Jun 2012; Zac Medico nullmailer-1.05.ebuild, + nullmailer-1.06.ebuild: + inherit user for enewgroup and enewuser + + 16 Mar 2012; Pawel Hajdan jr nullmailer-1.05.ebuild, + nullmailer-1.06.ebuild: + Switch to virtual/shadow. + +*nullmailer-1.06 (09 Mar 2012) + + 09 Mar 2012; Eray Aslan -nullmailer-1.04.ebuild, + +nullmailer-1.06.ebuild: + version bump and remove old + + 09 Mar 2012; Pawel Hajdan jr nullmailer-1.05.ebuild: + x86 stable wrt bug #400367 + + 27 Feb 2012; Brent Baude nullmailer-1.05.ebuild: + Marking nullmailer-1.05 ppc for bug 400367 + + 24 Feb 2012; Agostino Sarubbo nullmailer-1.05.ebuild: + Stable for amd64, wrt bug #400367 + +*nullmailer-1.05 (20 Jul 2011) + + 20 Jul 2011; Robin H. Johnson +nullmailer-1.05.ebuild, + +nullmailer-1.05.ebuild~: + Version bump, bug #321401. + + 20 Jul 2011; Pacho Ramos metadata.xml: + Drop maintainer due retirement, bug #118937 + + 28 Mar 2011; Eray Aslan nullmailer-1.04.ebuild: + change to new style virtual/mta - bug 360305 + + 14 Jan 2010; Thilo Bangert nullmailer-1.04.ebuild: + fix SRC_URI to the permanent URL + + 23 Sep 2009; Patrick Lauer nullmailer-1.04.ebuild: + Remove virtual/libc + + 13 Sep 2009; Diego E. Pettenò + nullmailer-1.04.ebuild: + Properly rebuild autotools, closes bug #255666. + + 14 Jul 2008; Robin H. Johnson + -files/nullmailer-1.00-gcc34-fix.patch, + -files/nullmailer-1.00-smtp-auth.patch, + -files/nullmailer-1.00-syslog.patch, -files/mailer.conf, + -files/remotes.sample, -nullmailer-1.00.ebuild: + Clean up old version and files. + + 26 Jun 2008; Robin H. Johnson nullmailer-1.04.ebuild: + Stabilize on amd64 per bug 229505, tested in my work prod env for months. + + 26 Jun 2008; nixnut nullmailer-1.04.ebuild: + Stable on ppc wrt bug 229505 + + 26 Jun 2008; Christian Faulhammer + nullmailer-1.04.ebuild: + stable x86, bug 229505 + + 26 Jun 2008; Thilo Bangert -nullmailer-1.00-r2.ebuild, + -nullmailer-1.02.ebuild, -nullmailer-1.02-r1.ebuild, + -nullmailer-1.02-r2.ebuild, ChangeLog: + remove old and obsolete versions + + 28 Feb 2008; Thilo Bangert ChangeLog, + nullmailer-1.04.ebuild: + fix utf-8 borkage in ChangeLog - dont inherit mailer eclass + +*nullmailer-1.04 (28 Feb 2008) + + 28 Feb 2008; Thilo Bangert + +files/remotes.sample-1.04, +nullmailer-1.04.ebuild, metadata.xml: + version bump - see also bug #186393 + remove mailwrapper support + turn on ipv6 patch unconditionally + fix sample config file to reflect 1.01 syntax changes + dont dep on daemontools -add myself as maintainer + + 28 Oct 2007; Christian Heim nullmailer-1.00.ebuild, + nullmailer-1.00-r2.ebuild, nullmailer-1.02.ebuild, + nullmailer-1.02-r1.ebuild, nullmailer-1.02-r2.ebuild: + Include virtual/logger in RDEPEND, as the initscript already specifies 'need + logger'. + + 01 Oct 2007; Sven Wegener nullmailer-1.00.ebuild, + nullmailer-1.00-r2.ebuild, nullmailer-1.02.ebuild, + nullmailer-1.02-r1.ebuild, nullmailer-1.02-r2.ebuild: + QA: Include ${CATEGORY} in emerge --config call. There's no need to dodir + before *into. + + 18 Mar 2007; Marius Mauch nullmailer-1.00.ebuild, + nullmailer-1.00-r2.ebuild, nullmailer-1.02.ebuild, + nullmailer-1.02-r1.ebuild, nullmailer-1.02-r2.ebuild: + Replacing einfo with elog + + 22 Feb 2007; Piotr Jaroszyński ChangeLog: + Transition to Manifest2. + + 27 Apr 2006; Marien Zwart Manifest: + Fixing SHA256 digest, pass four + +*nullmailer-1.02-r2 (11 Feb 2006) +*nullmailer-1.02-r1 (11 Feb 2006) +*nullmailer-1.00-r2 (11 Feb 2006) + + 11 Feb 2006; Robin H. Johnson files/mailer.conf, + nullmailer-1.00.ebuild, +nullmailer-1.00-r2.ebuild, + nullmailer-1.02.ebuild, +nullmailer-1.02-r1.ebuild, + +nullmailer-1.02-r2.ebuild: + Fix bugs raised by #121587 - Numerous issues, fixed in >=1.02-r1. 1.00-r2 + and 1.02-r2 implement the new mailer-config system, and are in package.mask. + + 30 Jan 2006; Robin H. Johnson + -nullmailer-1.00_rc7.ebuild, -nullmailer-1.00_rc7-r1.ebuild, + -nullmailer-1.00_rc7-r2.ebuild, -nullmailer-1.00_rc7-r4.ebuild, + -nullmailer-1.00_rc7-r5.ebuild: + Remove old versions. + +*nullmailer-1.02 (30 Jan 2006) + + 30 Jan 2006; Robin H. Johnson + +files/init.d-nullmailer, +nullmailer-1.02.ebuild: + Bug #112163 - Version bump. Bug #118043 - init.d script. Bug #118826 - + ~amd64 keyword. + + 31 Dec 2005; Diego Pettenò + nullmailer-1.00_rc7.ebuild, nullmailer-1.00_rc7-r1.ebuild, + nullmailer-1.00_rc7-r2.ebuild, nullmailer-1.00_rc7-r4.ebuild, + nullmailer-1.00_rc7-r5.ebuild, nullmailer-1.00.ebuild: + Use -1 instead of /bin/false as default shell. + + 25 Dec 2005; Diego Pettenò nullmailer-1.00.ebuild: + Actually change last version, not the one before. + + 25 Dec 2005; Diego Pettenò + nullmailer-1.00_rc7-r5.ebuild: + Use bindnow-flags function instead of -Wl,-z,now. + + 29 Nov 2005; Robin H. Johnson nullmailer-1.00.ebuild: + Move 1.00 to stable x86. + + 29 Nov 2005; Robin H. Johnson nullmailer-1.00.ebuild: + Fix bug #95292 for mailwrapper sandbox violation. + +*nullmailer-1.00 (02 Jun 2005) + + 02 Jun 2005; Robin H. Johnson + +files/nullmailer-1.00-gcc34-fix.patch, + +files/nullmailer-1.00-smtp-auth.patch, + +files/nullmailer-1.00-syslog.patch, files/remotes.sample, + +nullmailer-1.00.ebuild: + Bug #74903 and #83574, bump version, and make nullmailer compile with GCC3.4 + (including under FreeBSD). + + 03 Mar 2005; Ciaran McCreesh + nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7-r2.ebuild, + nullmailer-1.00_rc7-r4.ebuild, nullmailer-1.00_rc7-r5.ebuild, + nullmailer-1.00_rc7.ebuild: + Move sys-apps/daemontools -> sys-process/daemontools + + 03 Mar 2005; Ciaran McCreesh + nullmailer-1.00_rc7-r4.ebuild: + Dependency update: sys-apps/supervise-scripts -> sys-process/supervise-scripts. + + 03 Mar 2005; Ciaran McCreesh + nullmailer-1.00_rc7-r2.ebuild: + Dependency update: sys-apps/supervise-scripts -> sys-process/supervise-scripts. + + 03 Mar 2005; Ciaran McCreesh + nullmailer-1.00_rc7-r1.ebuild: + Dependency update: sys-apps/supervise-scripts -> sys-process/supervise-scripts. + + 03 Mar 2005; Ciaran McCreesh + nullmailer-1.00_rc7-r5.ebuild: + Dependency update: sys-apps/supervise-scripts -> sys-process/supervise-scripts. + + 03 Mar 2005; Ciaran McCreesh + nullmailer-1.00_rc7.ebuild: + Dependency update: sys-apps/supervise-scripts -> sys-process/supervise-scripts. + +*nullmailer-1.00_rc7-r5 (16 Nov 2004) + + 16 Nov 2004; Robin H. Johnson + +nullmailer-1.00_rc7-r5.ebuild: + new version, includes debian fixes. + + 01 Jul 2004; Jeremy Huddleston + nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7-r2.ebuild, + nullmailer-1.00_rc7-r4.ebuild, nullmailer-1.00_rc7.ebuild: + virtual/glibc -> virtual/libc + +*nullmailer-1.00_rc7-r4 (31 May 2004) + + 31 May 2004; Grant Goodyear files/mailer.conf, + -nullmailer-1.00_rc7-r3.ebuild, +nullmailer-1.00_rc7-r4.ebuild: + Fixes to make mailwrapper an optional dep. + + Removed -r3 because the dodir for services/run was broken, and I + incorporated all other changes into -r4. + +*nullmailer-1.00_rc7-r3 (30 May 2004) + + 30 May 2004; Robin H. Johnson + nullmailer-1.00_rc7-r3.ebuild, files/mailer.conf: + make sure the mailwrapper changes are in place. + +*nullmailer-1.00_rc7-r2 (30 May 2004) + + 30 May 2004; Robin H. Johnson metadata.xml, + nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7-r2.ebuild, + nullmailer-1.00_rc7.ebuild, files/mailer.conf, files/remotes.sample: + Moved from net-mail/nullmailer to mail-mta/nullmailer. + + 28 May 2004; Robin H. Johnson metadata.xml: + Update metadata.xml. + + 27 Apr 2004; Aron Griffis + nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7-r2.ebuild, + nullmailer-1.00_rc7.ebuild: + Add inherit eutils + + 20 Apr 2004; David Holm nullmailer-1.00_rc7-r2.ebuild: + Added to ~ppc. + +*nullmailer-1.00_rc7-r2 (19 Apr 2004) + + 19 Apr 2004; Robin H. Johnson + nullmailer-1.00_rc7-r2.ebuild, files/mailer.conf: + add in urgent support for mailwrapper + + 06 Nov 2003; Robin H. Johnson + nullmailer-1.00_rc7-r1.ebuild, nullmailer-1.00_rc7.ebuild: + : instead of . for chown + + 25 Oct 2003; Robin H. Johnson metadata.xml: + add metadata.xml + +*nullmailer-1.00_rc7-r1 (06 Aug 2003) + + 06 Aug 2003; Robin H. Johnson + nullmailer-1.00_rc7-r1.ebuild: + Fix minor permissions bug and commit to stable. + + 03 Aug 2003; Robin H. Johnson + nullmailer-1.00_rc7.ebuild: + Fix /usr/lib/sendmail glitch + +*nullmailer-1.00_rc7 (01 Aug 2003) + + 01 Aug 2003; Robin H. Johnson + nullmailer-1.00_rc7.ebuild, files/remotes.sample: + Initial Commit. diff --git a/mail-mta/nullmailer/Manifest b/mail-mta/nullmailer/Manifest new file mode 100644 index 0000000..a7a81ec --- /dev/null +++ b/mail-mta/nullmailer/Manifest @@ -0,0 +1,9 @@ +AUX init.d-nullmailer-r4 1094 SHA256 91d39a07d712f03be51e15682ae92ce4e260e6add9f3c0fe452db9121d2b5022 SHA512 86554e37fa06a3e58946f283324206638419a78a48e8b754a1546b49dd26c7c9c165a192d5d3b9ce0db423fe4a2e9fd98818503249417c9cac999d6de83620d0 WHIRLPOOL 29a130e1220926af4a9ce037662cf40d2bdd152220b7adf44c0b04bdc6ddac93800a298bc06e288fdc3944836dbd9252d6a43cad5304fa07895c9da6189aa21d +AUX nullmailer-1.13-uid_t.patch 296 SHA256 c7b521020d9d3371572875e0d56d6ebfcf3493c9c669dc349d3c2936013ce252 SHA512 526f451943d5b9fe1ef1787491b8d635bbdedf53db5197423eaf989e05430d1a0823fa5c823f3c015ef77386fcd960100abf59c23e16b17a2aa71a59edb92919 WHIRLPOOL 07b264b027b2528218a86c7db3c3141a33c37d905dbf973a9766b49abbac3cb6ee1e76415caa2da414ccb652049b46b2a0d48a5626ad283a221273e5c92789ea +AUX nullmailer.service 401 SHA256 2fe58518b9a024c2136bd6b20cd7bd9458a37f32bc3e6be1203cb5711e8b8ba5 SHA512 5aebb237972a7ff20a34d40d53d8d3146966c8f12b20695aa718831a6b32ecf4a0cc9d5af41067952c454166d02d52226fcb397b48310907b81deaa2d874adb7 WHIRLPOOL f81a87473ce5c4f4717aba023ce62cfb72b6b964b6c34aa7dc25f5826cf5ab41eeeed3d3de329cc6abc662fbd4436a1b5bbb744b09dff4be75cca84e8cf062e0 +AUX remotes.sample-1.13 970 SHA256 56b9adc7762cfac88769ee6a87fa5057a42599a3d50a3cfd1c6d8d9327d02080 SHA512 8ff23a3f30e9f3b8bfca05f6e8bda44d8142b547c667d604e5e1f15b49342e0a098591578ef26c599a965d0b17e7237232e6713bb7b95b2af4e3bf6bde2604c6 WHIRLPOOL 39e87ec264d023c4d3852d1173bf9e87b8eb35fe3809c9ebfa3d2c9be81ad9a709fc1c873697be8ad80c01881566542cb8950a5e312ed9e06c65535c8cd4dac4 +DIST nullmailer-1.13.tar.gz 205431 SHA256 3f8861ebb1b46cea0a1caf1e6236e1e0d2a5a91def19551b7cad12eab676277d SHA512 96dcb3ddecde77a73e5ca1afa5167d35f965d04999f02cc2ef60b54ea7eb7a006e5cf5678fc34a54d4be4f9fd71bd0f784a8671aca40c70dbc307666c548e1d7 WHIRLPOOL b041f7cc33a257fad11c5f4c9bf74f8d849d9c45f0dc19be28268462b9d029c07e1d5802698e647a4208d5f66cac2177a1d12e49a03caac51e0244c3f9a0599c +DIST nullmailer-patches-1.13.tar.xz 8384 SHA256 8685dfbf23e9dc15269b1a0d14f700c4ef990cf49d4e6e830c0217289e8f4733 SHA512 393531e39a92b0978bccbcdf123e05b2cdad1ec8e600825cc24177ba414c1f615995c0344291ebb664f42b384a160c0359fec5ba3308cc14cbc9ceb8577d799c WHIRLPOOL 84f523be7963ceb7fbafd3f5632571e7bc12085b1b4bce5bb5c63871fd6c7ed1367a49ddf5ed66acad7055e28856b23fb1dcb59e60158fed26447128edd0a4fa +EBUILD nullmailer-1.13-r99.ebuild 4861 SHA256 54e9cc567698c53f37729b894aa0873dd8b71c533ed11eb0a12340b18ce8e9a8 SHA512 1dbc08fd80f2f25d525276fb8eb40c5bd2abaec5ab687644b25a906d04e50c35c082249dbe3d8e553017bf18635888077e0f79fc6baf4af1a5cc6f2d3b508025 WHIRLPOOL 308a44635a13848518b97d05406cbd22294824be8baf3bb24ab33dd820e06e4219c3e99fe209812a18d71425c845fdd888a961b653f4fb6a99d8c6d8a1f394f9 +MISC ChangeLog 16326 SHA256 707dc5811173c1622e66d4dfd7f063abb525573a8986c88f99e2322a1aa84384 SHA512 e1a5fb29a5d82686691da543e063411b18adfd9ec5a9f198f80e897ab5a4b3425d432cb2edc08b3e28acdaed8d75323a3a752a7edf935c3d0690d1b7d4236851 WHIRLPOOL 60749ed97297c103861a6783a8ebd96c381d28245acd41472862ab2e0f18680a7dd384a6a49fca0cc3d96cece356d859f436267cb95e60efc566a568d4df5611 +MISC metadata.xml 363 SHA256 838fae6a4f4cabb0217b0d1ebbd63acf840e802b3852e7360a4b9ae12a10459e SHA512 18675ce1eba12e093f0d73ac35ca6e456d2d7c0b1f3eee41d9b5bb466391778e3aed877d06028e7fa28c121dfff20fd6729451e5c5706a5ebc33a4f3c10c6f85 WHIRLPOOL d8911b227b42c2f4e47d68cb72f65c1e3349df2e34659aa4a597522138e9f8b055913829e504e11492db81081fbeb51e4b62512aeffde65d105e1120fbd572a4 diff --git a/mail-mta/nullmailer/files/init.d-nullmailer-r4 b/mail-mta/nullmailer/files/init.d-nullmailer-r4 new file mode 100644 index 0000000..4205a26 --- /dev/null +++ b/mail-mta/nullmailer/files/init.d-nullmailer-r4 @@ -0,0 +1,51 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/files/init.d-nullmailer-r4,v 1.1 2014/01/08 15:08:13 jlec Exp $ + +command="/usr/sbin/nullmailer-send" + +start_stop_daemon_args="--chdir /var/nullmailer --user nullmail:nullmail" + +required_dirs="/var/nullmailer" +pidfile="/run/nullmailer.pid" +command_background="true" +command_args="-s" + +depend() { + use net logger +} + +checkconfig() { + local error=0 + local f=/etc/nullmailer/me + if [ ! -s ${f} ]; then + eerror "${f} does not exist" + error=1 + fi + f=/etc/nullmailer/defaultdomain + if [ ! -s ${f} ]; then + eerror "${f} does not exist" + error=1 + fi + if [ ${error} -eq 1 ]; then + einfo "You need to run 'emerge --config nullmailer'!" + fi + if [ -e /service/nullmailer ]; then + eerror "Nullmailer is already running under svscan!" + error=2 + fi + if [ ${error} -ne 0 ]; then + return 1 + else + return 0 + fi +} + +start_pre() { + checkconfig +} + +stop_pre() { + checkconfig # to avoid init.d stopping svscan instance +} diff --git a/mail-mta/nullmailer/files/nullmailer-1.13-uid_t.patch b/mail-mta/nullmailer/files/nullmailer-1.13-uid_t.patch new file mode 100644 index 0000000..8a6087f --- /dev/null +++ b/mail-mta/nullmailer/files/nullmailer-1.13-uid_t.patch @@ -0,0 +1,10 @@ +--- nullmailer-1.13-old/lib/fdbuf/fdbuf.h 2015-01-18 05:29:46.571000000 +0000 ++++ nullmailer-1.13/lib/fdbuf/fdbuf.h 2015-01-18 05:30:31.228000000 +0000 +@@ -20,6 +20,7 @@ + #include "config.h" + #include + #include ++#include + + #ifdef _REENTRANT + #include diff --git a/mail-mta/nullmailer/files/nullmailer.service b/mail-mta/nullmailer/files/nullmailer.service new file mode 100644 index 0000000..8aae6c9 --- /dev/null +++ b/mail-mta/nullmailer/files/nullmailer.service @@ -0,0 +1,17 @@ +[Unit] +Description=Nullmailer relay-only MTA +Requires=network.target +After=local-fs.target syslog.target +ConditionPathExists=/var/nullmailer/queue +ConditionPathExists=/etc/nullmailer/defaultdomain +ConditionPathExists=/etc/nullmailer/me + +[Service] +WorkingDirectory=/var/nullmailer +ExecStart=/usr/sbin/nullmailer-send -s +User=nullmail +Group=nullmail +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/mail-mta/nullmailer/files/remotes.sample-1.13 b/mail-mta/nullmailer/files/remotes.sample-1.13 new file mode 100644 index 0000000..34cc234 --- /dev/null +++ b/mail-mta/nullmailer/files/remotes.sample-1.13 @@ -0,0 +1,29 @@ +# Format is: HOST PROTOCOL [OPTIONS] +# HOST = IP or DNS +# PROTOCOL = smtp | qmtp +# OPTIONS = [--port=NUMBER] [--user] [--pass] [--starttls | --ssl [--insecure] ] +# +# Examples: +# A standard SMTP server: +# somesendmailserver.domain.com smtp +# +# A qmail server with QMQP setup: +# someqmailserver.domain.com qmqp +# +# A nonstandard SMTP server setup: +# someotherserver.domain.com smtp --port=2525 +# +# SMTP server supporting AUTH PLAIN +# mailserver smtp --user= --pass= +# +# SMTP server supporting AUTH LOGIN +# mailserver smtp --user= --pass= --auth-login +# +# SMTP server with smtps (legacy - use starttls instead) +# mailserver smtp --user= --pass= --port=465 --ssl +# +# SMTP server on submission port with starttls +# mailserver smtp --user= --pass= --port=587 --starttls +# +# SMTP server on submission port with starttls and self-signed certificate +# mailserver smtp --user= --pass= --port=587 --starttls --insecure diff --git a/mail-mta/nullmailer/metadata.xml b/mail-mta/nullmailer/metadata.xml new file mode 100644 index 0000000..c20ce93 --- /dev/null +++ b/mail-mta/nullmailer/metadata.xml @@ -0,0 +1,13 @@ + + + + net-mail + + robbat2@gentoo.org + Robin H. Johnson + + + jlec@gentoo.org + Justin Lecher + + diff --git a/mail-mta/nullmailer/nullmailer-1.13-r99.ebuild b/mail-mta/nullmailer/nullmailer-1.13-r99.ebuild new file mode 100644 index 0000000..d11bf92 --- /dev/null +++ b/mail-mta/nullmailer/nullmailer-1.13-r99.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.13-r5.ebuild,v 1.4 2014/12/31 16:20:24 ago Exp $ + +EAPI=5 + +inherit autotools eutils flag-o-matic multilib systemd user + +MY_P="${P/_rc/RC}" + +DEBIAN_PV=1.11 +DEBIAN_PR="2" +DEBIAN_P="${PN}-${DEBIAN_PV}" +DEBIAN_PF="${DEBIAN_P/-/_}-${DEBIAN_PR}" +DEBIAN_SRC="${DEBIAN_PF}.debian.tar.gz" + +DESCRIPTION="Simple relay-only local mail transport agent" +HOMEPAGE="http://untroubled.org/nullmailer/" +SRC_URI=" + http://untroubled.org/${PN}/archive/${MY_P}.tar.gz + http://dev.gentoo.org/~jlec/distfiles/${PN}-patches-${PV}.tar.xz" +# mirror://debian/pool/main/n/${PN}/${DEBIAN_SRC}" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 ppc x86" +IUSE="ssl" + +DEPEND=" + sys-apps/groff + ssl? ( net-libs/gnutls )" +RDEPEND=" + virtual/logger + virtual/shadow + ssl? ( net-libs/gnutls ) + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp + !mail-mta/netqmail + !mail-mta/postfix + !mail-mta/qmail-ldap + !mail-mta/sendmail + !mail-mta/opensmtpd + !mail-mta/ssmtp" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + enewgroup nullmail 88 + enewuser nullmail 88 -1 /var/nullmailer nullmail +} + +src_prepare() { +# sed -i -e 's/nullmailer-1.10/nullmailer-1.11/g' \ +# "${WORKDIR}"/debian/patches/*.diff || die +# EPATCH_OPTS="-d ${S} -p1" \ +# epatch "${DISTDIR}"/${DEBIAN_SRC} + # why revert? Ask Robin when he is back! +# EPATCH_OPTS="-d ${WORKDIR} -p0 -R" \ +# epatch "${WORKDIR}"/debian/patches/02_ipv6.diff + # this fixes the debian daemon/syslog to actually compile + + # old debian patches from 1.11 + # DO NOT APPLY patch 0009... It breaks + epatch "${WORKDIR}"/patches/000{1..8}*patch + + epatch "${FILESDIR}"/nullmailer-1.13-uid_t.patch + + sed -i.orig \ + -e '/^nullmailer_send_LDADD/s, =, = ../lib/cli++/libcli++.a,' \ + "${S}"/src/Makefile.am || die "Sed failed" + sed -i.orig \ + -e '/\$(localstatedir)\/trigger/d' \ + "${S}"/Makefile.am || die "Sed failed" + sed \ + -e "s:^AC_PROG_RANLIB:AC_CHECK_TOOL(AR, ar, false)\nAC_PROG_RANLIB:g" \ + -i configure.in || die + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die + eautoreconf +} + +src_configure() { + # Note that we pass a different directory below due to bugs in the makefile! + econf \ + --localstatedir=/var \ + $(use_enable ssl tls) +} + +src_install () { + emake DESTDIR="${D}" localstatedir=/var/nullmailer install + + dodoc AUTHORS BUGS HOWTO INSTALL ChangeLog NEWS README TODO + + # A small bit of sample config + insinto /etc/nullmailer + newins "${FILESDIR}"/remotes.sample-${PV} remotes + + # This contains passwords, so should be secure + fperms 0640 /etc/nullmailer/remotes + fowners root:nullmail /etc/nullmailer/remotes + + # daemontools stuff + dodir /var/nullmailer/service{,/log} + + insinto /var/nullmailer/service + newins scripts/nullmailer.run run + fperms 700 /var/nullmailer/service/run + + insinto /var/nullmailer/service/log + newins scripts/nullmailer-log.run run + fperms 700 /var/nullmailer/service/log/run + + # usability + dosym /usr/sbin/sendmail usr/$(get_libdir)/sendmail + + # permissions stuff + keepdir /var/log/nullmailer /var/nullmailer/{tmp,queue} + fperms 770 /var/log/nullmailer /var/nullmailer/{tmp,queue} + fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq + fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq + + newinitd "${FILESDIR}"/init.d-nullmailer-r4 nullmailer + systemd_dounit "${FILESDIR}"/${PN}.service +} + +pkg_postinst() { + if [ ! -e "${ROOT}"/var/nullmailer/trigger ]; then + mkfifo "${ROOT}"/var/nullmailer/trigger + fi + chown nullmail:nullmail \ + "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue,trigger} || die + chmod 770 "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue} || die + chmod 660 "${ROOT}"/var/nullmailer/trigger || die + + # This contains passwords, so should be secure + chmod 0640 "${ROOT}"/etc/nullmailer/remotes || die + chown root:nullmail "${ROOT}"/etc/nullmailer/remotes || die + + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "To create an initial setup, please do:" + elog "emerge --config =${CATEGORY}/${PF}" + fi + #echo + #elog "To start nullmailer at boot you may use either the nullmailer init.d" + #elog "script, or emerge sys-process/supervise-scripts, enable the" + #elog "svscan init.d script and create the following link:" + #elog "ln -fs /var/nullmailer/service /service/nullmailer" + #echo +} + +pkg_postrm() { + if [[ -e "${ROOT}"/var/nullmailer/trigger ]]; then + rm "${ROOT}"/var/nullmailer/trigger || die + fi +} + +pkg_config() { + if [ ! -s "${ROOT}"/etc/nullmailer/me ]; then + einfo "Setting /etc/nullmailer/me" + /bin/hostname --fqdn > "${ROOT}"/etc/nullmailer/me + fi + if [ ! -s "${ROOT}"/etc/nullmailer/defaultdomain ]; then + einfo "Setting /etc/nullmailer/defaultdomain" + /bin/hostname --domain > "${ROOT}"/etc/nullmailer/defaultdomain + fi +} -- 2.0.5