Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573090 - mail-mta/nullmailer-2.0 version bump
Summary: mail-mta/nullmailer-2.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-27 10:11 UTC by Tobias Roeser
Modified: 2016-03-15 11:15 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nullmailer-2.0.ebuild (nullmailer-2.0.ebuild,3.24 KB, text/plain)
2016-02-24 13:51 UTC, Roland Hopferwieser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Roeser 2016-01-27 10:11:42 UTC
The new version has new features required to run it successfully with some special restrictive mail servers.

Reproducible: Always
Comment 1 Roland Hopferwieser 2016-02-24 13:51:02 UTC
Created attachment 426420 [details]
nullmailer-2.0.ebuild
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2016-02-24 16:28:08 UTC
(In reply to Roland Hopferwieser from comment #1)
> Created attachment 426420 [details]
> nullmailer-2.0.ebuild

Thanks for the ebuild. I am adding a couple of enhancements

--- asd	2016-02-24 15:51:03.738683005 +0100
+++ nullmailer-2.0.ebuild	2016-02-24 15:59:30.932966157 +0100
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$

-EAPI=5
+EAPI=6

 inherit autotools eutils flag-o-matic multilib systemd user

@@ -40,7 +40,19 @@
 }

 src_prepare() {
-	sed -e "s#/usr/local/etc#/etc#" -e "s#/usr/local/libexec#/usr/libexec#" -i doc/nullmailer-send.8
+	default
+	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.ac || die
+	sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
+	sed \
+		-e "s#/usr/lib#\0exec#" -e "s#/usr/local#/usr#" \
+		-e 's:/usr/etc/:/etc/:g' \
+		-i doc/nullmailer-send.8 || die
+	eautoreconf
 }

 src_configure() {
@@ -50,13 +62,11 @@
 }

 src_install () {
-	emake DESTDIR="${D}" install
-
-	dodoc AUTHORS BUGS HOWTO INSTALL ChangeLog NEWS README TODO doc/DIAGRAM
+	default

 	# A small bit of sample config
 	insinto /etc/nullmailer
-	newins "${FILESDIR}"/remotes.sample-1.13 remotes
+	newins "${FILESDIR}"/remotes.sample-${PV} remotes

 	# This contains passwords, so should be secure
 	fperms 0640 /etc/nullmailer/remotes
@@ -78,21 +88,24 @@

 	# permissions stuff
 	keepdir /var/log/nullmailer /var/spool/nullmailer/{tmp,queue}
-	fperms 770 /var/log/nullmailer /var/spool/nullmailer/{tmp,queue}
+	fperms 770 /var/log/nullmailer
 	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
+	newinitd "${FILESDIR}"/init.d-nullmailer-r5 nullmailer
 	systemd_dounit scripts/${PN}.service
 }

 pkg_postinst() {
 	if [ ! -e "${ROOT}"/var/spool/nullmailer/trigger ]; then
-		mkfifo "${ROOT}"/var/spool/nullmailer/trigger
+		mkfifo "${ROOT}"/var/spool/nullmailer/trigger || die
 	fi
 	chown nullmail:nullmail \
-		"${ROOT}"/var/log/nullmailer "${ROOT}"/var/spool/nullmailer/{tmp,queue,trigger} || die
-	chmod 770 "${ROOT}"/var/log/nullmailer "${ROOT}"/var/spool/nullmailer/{tmp,queue} || die
+		"${ROOT}"/var/log/nullmailer \
+		"${ROOT}"/var/spool/nullmailer/{tmp,queue,trigger} || die
+	chmod 770 \
+		"${ROOT}"/var/log/nullmailer \
+		"${ROOT}"/var/spool/nullmailer/{tmp,queue} || die
 	chmod 660 "${ROOT}"/var/spool/nullmailer/trigger || die

 	# This contains passwords, so should be secure
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2016-02-24 16:36:01 UTC
commit 250d3d079190d5f98e29f7c68e64ab340587a933
Author: Justin Lecher <jlec@gentoo.org>
Date:   Wed Feb 24 17:33:37 2016 +0100

    mail-mta/nullmailer: Version Bump

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573090
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562912

    Package-Manager: portage-2.2.27
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=250d3d079190d5f98e29f7c68e64ab340587a933

commit fd33c0507f55b852c9fcd94a61a2591c94fb3166
Comment 4 Tobias Roeser 2016-03-15 11:15:52 UTC
Thank you! Works great.