Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/nullmailer: ChangeLog nullmailer-1.10.ebuild
Date: Tue, 05 Jun 2012 13:49:16
Message-Id: 20120605134856.41E9A2004C@flycatcher.gentoo.org
1 eras 12/06/05 13:48:56
2
3 Modified: ChangeLog
4 Added: nullmailer-1.10.ebuild
5 Log:
6 Version bump. Change --chuid to --user in init script. Bugs #415417 #405529
7
8 (Portage version: 2.1.10.65/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.47 mail-mta/nullmailer/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/ChangeLog?rev=1.47&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/ChangeLog?rev=1.47&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/ChangeLog?r1=1.46&r2=1.47
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v
20 retrieving revision 1.46
21 retrieving revision 1.47
22 diff -u -r1.46 -r1.47
23 --- ChangeLog 4 Jun 2012 21:06:18 -0000 1.46
24 +++ ChangeLog 5 Jun 2012 13:48:56 -0000 1.47
25 @@ -1,6 +1,9 @@
26 # ChangeLog for mail-mta/nullmailer
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.46 2012/06/04 21:06:18 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/ChangeLog,v 1.47 2012/06/05 13:48:56 eras Exp $
30 +
31 + 05 Jun 2012; Eray Aslan <eras@g.o> +files/init.d-nullmailer-r1:
32 + Version bump. Change --chuid to --user in init script. Bugs #415417 #405529
33
34 04 Jun 2012; Zac Medico <zmedico@g.o> nullmailer-1.05.ebuild,
35 nullmailer-1.06.ebuild:
36
37
38
39 1.1 mail-mta/nullmailer/nullmailer-1.10.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/nullmailer-1.10.ebuild?rev=1.1&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/nullmailer-1.10.ebuild?rev=1.1&content-type=text/plain
43
44 Index: nullmailer-1.10.ebuild
45 ===================================================================
46 # Copyright 1999-2012 Gentoo Foundation
47 # Distributed under the terms of the GNU General Public License v2
48 # $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/nullmailer-1.10.ebuild,v 1.1 2012/06/05 13:48:56 eras Exp $
49
50 EAPI=4
51 inherit eutils flag-o-matic autotools user multilib
52
53 MY_P="${P/_rc/RC}"
54 S=${WORKDIR}/${MY_P}
55 DEBIAN_PV=1.10
56 DEBIAN_PR="1"
57 DEBIAN_P="${PN}-${DEBIAN_PV}"
58 DEBIAN_PF="${DEBIAN_P/-/_}-${DEBIAN_PR}"
59 DEBIAN_SRC="${DEBIAN_PF}.debian.tar.gz"
60 DESCRIPTION="Simple relay-only local mail transport agent"
61 SRC_URI="http://untroubled.org/${PN}/archive/${MY_P}.tar.gz
62 mirror://debian/pool/main/n/${PN}/${DEBIAN_SRC}"
63 HOMEPAGE="http://untroubled.org/nullmailer/"
64
65 SLOT="0"
66 LICENSE="GPL-2"
67 KEYWORDS="~amd64 ~ppc ~x86"
68
69 IUSE="ssl"
70
71 DEPEND="sys-apps/groff
72 ssl? ( net-libs/gnutls )"
73 RDEPEND="virtual/shadow
74 virtual/logger
75 ssl? ( net-libs/gnutls )
76 !mail-mta/courier
77 !mail-mta/esmtp
78 !mail-mta/exim
79 !mail-mta/mini-qmail
80 !mail-mta/msmtp
81 !mail-mta/nbsmtp
82 !mail-mta/netqmail
83 !mail-mta/postfix
84 !mail-mta/qmail-ldap
85 !mail-mta/sendmail
86 !mail-mta/ssmtp"
87
88 src_prepare() {
89 EPATCH_OPTS="-d ${S} -p1" \
90 epatch "${DISTDIR}"/${DEBIAN_SRC}
91 # why revert? Ask Robin when he is back!
92 EPATCH_OPTS="-d ${WORKDIR} -p0 -R" \
93 epatch "${WORKDIR}"/debian/patches/02_ipv6.diff
94 # this fixes the debian daemon/syslog to actually compile
95 sed -i.orig \
96 -e '/^nullmailer_send_LDADD/s, =, = ../lib/cli++/libcli++.a,' \
97 "${S}"/src/Makefile.am || die "Sed failed"
98
99 eautoreconf
100 }
101
102 pkg_setup() {
103 enewgroup nullmail 88
104 enewuser nullmail 88 -1 /var/nullmailer nullmail
105 }
106
107 src_configure() {
108 # Note that we pass a different directory below due to bugs in the makefile!
109 econf \
110 --localstatedir=/var \
111 $(use_enable ssl tls)
112 }
113
114 src_install () {
115 einstall localstatedir="${D}"/var/nullmailer
116 dodoc AUTHORS BUGS HOWTO INSTALL ChangeLog NEWS README TODO
117 # A small bit of sample config
118 insinto /etc/nullmailer
119 newins "${FILESDIR}"/remotes.sample-1.04 remotes
120 # daemontools stuff
121 dodir /var/nullmailer/service{,/log}
122 insinto /var/nullmailer/service
123 newins scripts/nullmailer.run run
124 fperms 700 /var/nullmailer/service/run
125 insinto /var/nullmailer/service/log
126 newins scripts/nullmailer-log.run run
127 fperms 700 /var/nullmailer/service/log/run
128 # usablity
129 dodir /usr/$(get_libdir)
130 dosym /usr/sbin/sendmail usr/$(get_libdir)/sendmail
131 # permissions stuff
132 keepdir /var/log/nullmailer /var/nullmailer/{tmp,queue}
133 fperms 770 /var/log/nullmailer /var/nullmailer/{tmp,queue}
134 fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
135 fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
136 fowners nullmail:nullmail /var/log/nullmailer /var/nullmailer/{tmp,queue,trigger}
137 fperms 660 /var/nullmailer/trigger
138 newinitd "${FILESDIR}"/init.d-nullmailer-r1 nullmailer
139 }
140
141 pkg_postinst() {
142 [ ! -e "${ROOT}"/var/nullmailer/trigger ] && mkfifo "${ROOT}"/var/nullmailer/trigger
143 chown nullmail:nullmail "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue,trigger}
144 chmod 770 "${ROOT}"/var/log/nullmailer "${ROOT}"/var/nullmailer/{tmp,queue}
145 chmod 660 "${ROOT}"/var/nullmailer/trigger
146
147 elog "To create an initial setup, please do:"
148 elog "emerge --config =${CATEGORY}/${PF}"
149 echo
150 elog "To start nullmailer at boot you may use either the nullmailer init.d"
151 elog "script, or emerge sys-process/supervise-scripts, enable the"
152 elog "svscan init.d script and create the following link:"
153 elog "ln -fs /var/nullmailer/service /service/nullmailer"
154 echo
155 }
156
157 pkg_config() {
158 if [ ! -s "${ROOT}"/etc/nullmailer/me ]; then
159 einfo "Setting /etc/nullmailer/me"
160 /bin/hostname --fqdn > "${ROOT}"/etc/nullmailer/me
161 fi
162 if [ ! -s "${ROOT}"/etc/nullmailer/defaultdomain ]; then
163 einfo "Setting /etc/nullmailer/defaultdomain"
164 /bin/hostname --domain > "${ROOT}"/etc/nullmailer/defaultdomain
165 fi
166 }