Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/nullmailer/
Date: Mon, 07 Mar 2016 21:40:41
Message-Id: 1457386746.fd0c3a3111e0809008e02050368fd10980a53140.vapier@gentoo
1 commit: fd0c3a3111e0809008e02050368fd10980a53140
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 7 21:39:06 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 7 21:39:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd0c3a31
7
8 mail-mta/nullmailer: style cleanups -- no functional changes
9
10 mail-mta/nullmailer/asd | 123 ------------------------------
11 mail-mta/nullmailer/nullmailer-2.0.ebuild | 4 +-
12 2 files changed, 2 insertions(+), 125 deletions(-)
13
14 diff --git a/mail-mta/nullmailer/asd b/mail-mta/nullmailer/asd
15 deleted file mode 100644
16 index c461dea..0000000
17 --- a/mail-mta/nullmailer/asd
18 +++ /dev/null
19 @@ -1,123 +0,0 @@
20 -# Copyright 1999-2015 Gentoo Foundation
21 -# Distributed under the terms of the GNU General Public License v2
22 -# $Id$
23 -
24 -EAPI=5
25 -
26 -inherit autotools eutils flag-o-matic multilib systemd user
27 -
28 -DESCRIPTION="Simple relay-only local mail transport agent"
29 -HOMEPAGE="http://untroubled.org/nullmailer/"
30 -SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz"
31 -
32 -SLOT="0"
33 -LICENSE="GPL-2"
34 -KEYWORDS="amd64 ppc x86"
35 -IUSE="ssl"
36 -
37 -DEPEND="
38 - sys-apps/groff
39 - ssl? ( net-libs/gnutls )"
40 -RDEPEND="
41 - virtual/logger
42 - virtual/shadow
43 - ssl? ( net-libs/gnutls )
44 - !mail-mta/courier
45 - !mail-mta/esmtp
46 - !mail-mta/exim
47 - !mail-mta/mini-qmail
48 - !mail-mta/msmtp
49 - !mail-mta/netqmail
50 - !mail-mta/postfix
51 - !mail-mta/qmail-ldap
52 - !mail-mta/sendmail
53 - !mail-mta/opensmtpd
54 - !mail-mta/ssmtp"
55 -
56 -pkg_setup() {
57 - enewgroup nullmail 88
58 - enewuser nullmail 88 -1 /var/spool/nullmailer nullmail
59 -}
60 -
61 -src_prepare() {
62 - sed -e "s#/usr/local/etc#/etc#" -e "s#/usr/local/libexec#/usr/libexec#" -i doc/nullmailer-send.8
63 -}
64 -
65 -src_configure() {
66 - econf \
67 - --localstatedir=/var \
68 - $(use_enable ssl tls)
69 -}
70 -
71 -src_install () {
72 - emake DESTDIR="${D}" install
73 -
74 - dodoc AUTHORS BUGS HOWTO INSTALL ChangeLog NEWS README TODO doc/DIAGRAM
75 -
76 - # A small bit of sample config
77 - insinto /etc/nullmailer
78 - newins "${FILESDIR}"/remotes.sample-1.13 remotes
79 -
80 - # This contains passwords, so should be secure
81 - fperms 0640 /etc/nullmailer/remotes
82 - fowners root:nullmail /etc/nullmailer/remotes
83 -
84 - # daemontools stuff
85 - dodir /var/spool/nullmailer/service{,/log}
86 -
87 - insinto /var/spool/nullmailer/service
88 - newins scripts/nullmailer.run run
89 - fperms 700 /var/spool/nullmailer/service/run
90 -
91 - insinto /var/spool/nullmailer/service/log
92 - newins scripts/nullmailer-log.run run
93 - fperms 700 /var/spool/nullmailer/service/log/run
94 -
95 - # usability
96 - dosym /usr/sbin/sendmail usr/$(get_libdir)/sendmail
97 -
98 - # permissions stuff
99 - keepdir /var/log/nullmailer /var/spool/nullmailer/{tmp,queue}
100 - fperms 770 /var/log/nullmailer /var/spool/nullmailer/{tmp,queue}
101 - fowners nullmail:nullmail /usr/sbin/nullmailer-queue /usr/bin/mailq
102 - fperms 4711 /usr/sbin/nullmailer-queue /usr/bin/mailq
103 -
104 - newinitd "${FILESDIR}"/init.d-nullmailer-r4 nullmailer
105 - systemd_dounit scripts/${PN}.service
106 -}
107 -
108 -pkg_postinst() {
109 - if [ ! -e "${ROOT}"/var/spool/nullmailer/trigger ]; then
110 - mkfifo "${ROOT}"/var/spool/nullmailer/trigger
111 - fi
112 - chown nullmail:nullmail \
113 - "${ROOT}"/var/log/nullmailer "${ROOT}"/var/spool/nullmailer/{tmp,queue,trigger} || die
114 - chmod 770 "${ROOT}"/var/log/nullmailer "${ROOT}"/var/spool/nullmailer/{tmp,queue} || die
115 - chmod 660 "${ROOT}"/var/spool/nullmailer/trigger || die
116 -
117 - # This contains passwords, so should be secure
118 - chmod 0640 "${ROOT}"/etc/nullmailer/remotes || die
119 - chown root:nullmail "${ROOT}"/etc/nullmailer/remotes || die
120 -
121 - if [[ -z ${REPLACING_VERSIONS} ]]; then
122 - elog "To create an initial setup, please do:"
123 - elog "emerge --config =${CATEGORY}/${PF}"
124 - fi
125 -}
126 -
127 -pkg_postrm() {
128 - if [[ -e "${ROOT}"/var/spool/nullmailer/trigger ]]; then
129 - rm "${ROOT}"/var/spool/nullmailer/trigger || die
130 - fi
131 -}
132 -
133 -pkg_config() {
134 - if [ ! -s "${ROOT}"/etc/nullmailer/me ]; then
135 - einfo "Setting /etc/nullmailer/me"
136 - /bin/hostname --fqdn > "${ROOT}"/etc/nullmailer/me
137 - fi
138 - if [ ! -s "${ROOT}"/etc/nullmailer/defaultdomain ]; then
139 - einfo "Setting /etc/nullmailer/defaultdomain"
140 - /bin/hostname --domain > "${ROOT}"/etc/nullmailer/defaultdomain
141 - fi
142 -}
143
144 diff --git a/mail-mta/nullmailer/nullmailer-2.0.ebuild b/mail-mta/nullmailer/nullmailer-2.0.ebuild
145 index 1c3e959..859c4b3 100644
146 --- a/mail-mta/nullmailer/nullmailer-2.0.ebuild
147 +++ b/mail-mta/nullmailer/nullmailer-2.0.ebuild
148 @@ -10,8 +10,8 @@ DESCRIPTION="Simple relay-only local mail transport agent"
149 HOMEPAGE="http://untroubled.org/nullmailer/"
150 SRC_URI="http://untroubled.org/${PN}/archive/${P}.tar.gz"
151
152 -SLOT="0"
153 LICENSE="GPL-2"
154 +SLOT="0"
155 KEYWORDS="~amd64 ~ppc ~x86"
156 IUSE="ssl"
157
158 @@ -61,7 +61,7 @@ src_configure() {
159 $(use_enable ssl tls)
160 }
161
162 -src_install () {
163 +src_install() {
164 default
165
166 # A small bit of sample config