1 |
pacho 13/08/30 19:06:19 |
2 |
|
3 |
Modified: opensmtpd-5.3.3.201308201232_p1.ebuild ChangeLog |
4 |
Added: opensmtpd-5.3.3_p1-r1.ebuild |
5 |
Log: |
6 |
Add unit file (#470662 by Agostino Sarubbo) |
7 |
|
8 |
(Portage version: 2.1.13.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 mail-mta/opensmtpd/opensmtpd-5.3.3.201308201232_p1.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3.201308201232_p1.ebuild?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3.201308201232_p1.ebuild?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3.201308201232_p1.ebuild?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: opensmtpd-5.3.3.201308201232_p1.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3.201308201232_p1.ebuild,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- opensmtpd-5.3.3.201308201232_p1.ebuild 26 Aug 2013 12:29:32 -0000 1.1 |
24 |
+++ opensmtpd-5.3.3.201308201232_p1.ebuild 30 Aug 2013 19:06:18 -0000 1.2 |
25 |
@@ -1,10 +1,10 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3.201308201232_p1.ebuild,v 1.1 2013/08/26 12:29:32 zx2c4 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3.201308201232_p1.ebuild,v 1.2 2013/08/30 19:06:18 pacho Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
|
33 |
-inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools versionator |
34 |
+inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools systemd versionator |
35 |
|
36 |
DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" |
37 |
HOMEPAGE="http://www.opensmtpd.org/" |
38 |
@@ -61,6 +61,7 @@ |
39 |
src_install() { |
40 |
default |
41 |
newinitd "${FILESDIR}"/smtpd.initd smtpd |
42 |
+ systemd_dounit "${FILESDIR}"/smtpd.{service,socket} |
43 |
use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd |
44 |
if use mta ; then |
45 |
dodir /usr/sbin |
46 |
|
47 |
|
48 |
|
49 |
1.24 mail-mta/opensmtpd/ChangeLog |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/ChangeLog?rev=1.24&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/ChangeLog?rev=1.24&content-type=text/plain |
53 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/ChangeLog?r1=1.23&r2=1.24 |
54 |
|
55 |
Index: ChangeLog |
56 |
=================================================================== |
57 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/ChangeLog,v |
58 |
retrieving revision 1.23 |
59 |
retrieving revision 1.24 |
60 |
diff -u -r1.23 -r1.24 |
61 |
--- ChangeLog 26 Aug 2013 12:29:32 -0000 1.23 |
62 |
+++ ChangeLog 30 Aug 2013 19:06:18 -0000 1.24 |
63 |
@@ -1,6 +1,13 @@ |
64 |
# ChangeLog for mail-mta/opensmtpd |
65 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
66 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/ChangeLog,v 1.23 2013/08/26 12:29:32 zx2c4 Exp $ |
67 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/ChangeLog,v 1.24 2013/08/30 19:06:18 pacho Exp $ |
68 |
+ |
69 |
+*opensmtpd-5.3.3_p1-r1 (30 Aug 2013) |
70 |
+ |
71 |
+ 30 Aug 2013; Pacho Ramos <pacho@g.o> +files/smtpd.service, |
72 |
+ +files/smtpd.socket, +opensmtpd-5.3.3_p1-r1.ebuild, |
73 |
+ opensmtpd-5.3.3.201308201232_p1.ebuild: |
74 |
+ Add unit file (#470662 by Agostino Sarubbo) |
75 |
|
76 |
*opensmtpd-5.3.3.201308201232_p1 (26 Aug 2013) |
77 |
|
78 |
|
79 |
|
80 |
|
81 |
1.1 mail-mta/opensmtpd/opensmtpd-5.3.3_p1-r1.ebuild |
82 |
|
83 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3_p1-r1.ebuild?rev=1.1&view=markup |
84 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3_p1-r1.ebuild?rev=1.1&content-type=text/plain |
85 |
|
86 |
Index: opensmtpd-5.3.3_p1-r1.ebuild |
87 |
=================================================================== |
88 |
# Copyright 1999-2013 Gentoo Foundation |
89 |
# Distributed under the terms of the GNU General Public License v2 |
90 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/opensmtpd-5.3.3_p1-r1.ebuild,v 1.1 2013/08/30 19:06:18 pacho Exp $ |
91 |
|
92 |
EAPI=5 |
93 |
|
94 |
inherit multilib user flag-o-matic eutils pam toolchain-funcs autotools systemd versionator |
95 |
|
96 |
DESCRIPTION="Lightweight but featured SMTP daemon from OpenBSD" |
97 |
HOMEPAGE="http://www.opensmtpd.org/" |
98 |
MY_DP="${P}" |
99 |
MY_P="${P}" |
100 |
if [ $(get_last_version_component_index) -eq 4 ]; then |
101 |
MY_DP="${PN}-$(get_version_component_range 4-)" |
102 |
MY_P="${PN}-${PV/.$(get_version_component_range 4)}" |
103 |
fi |
104 |
SRC_URI="http://www.opensmtpd.org/archives/${MY_DP/_}.tar.gz" |
105 |
|
106 |
LICENSE="ISC BSD BSD-1 BSD-2 BSD-4" |
107 |
SLOT="0" |
108 |
KEYWORDS="~amd64 ~x86" |
109 |
IUSE="pam sqlite +mta" |
110 |
|
111 |
DEPEND="dev-libs/openssl |
112 |
sys-libs/zlib |
113 |
pam? ( virtual/pam ) |
114 |
sys-libs/db |
115 |
sqlite? ( dev-db/sqlite:3 ) |
116 |
dev-libs/libevent |
117 |
!mail-mta/courier |
118 |
!mail-mta/esmtp |
119 |
!mail-mta/exim |
120 |
!mail-mta/mini-qmail |
121 |
!mail-mta/msmtp[mta] |
122 |
!mail-mta/netqmail |
123 |
!mail-mta/nullmailer |
124 |
!mail-mta/postfix |
125 |
!mail-mta/qmail-ldap |
126 |
!mail-mta/sendmail |
127 |
!mail-mta/ssmtp[mta] |
128 |
" |
129 |
RDEPEND="${DEPEND}" |
130 |
|
131 |
S=${WORKDIR}/${MY_P/_} |
132 |
|
133 |
src_prepare() { |
134 |
epatch "${FILESDIR}"/build-warnings.patch |
135 |
epatch_user |
136 |
eautoreconf |
137 |
} |
138 |
|
139 |
src_configure() { |
140 |
tc-export AR |
141 |
AR="$(which "$AR")" econf \ |
142 |
--with-privsep-user=smtpd \ |
143 |
--with-filter-user=smtpf \ |
144 |
--with-queue-user=smtpq \ |
145 |
--with-privsep-path=/var/empty \ |
146 |
--with-sock-dir=/var/run \ |
147 |
--sysconfdir=/etc/opensmtpd \ |
148 |
$(use_with sqlite experimental-sqlite) \ |
149 |
$(use_with pam) |
150 |
#--with-lookup-user=smtpl will be available in the release after some point |
151 |
} |
152 |
|
153 |
src_install() { |
154 |
default |
155 |
newinitd "${FILESDIR}"/smtpd.initd smtpd |
156 |
systemd_dounit "${FILESDIR}"/smtpd.{service,socket} |
157 |
use pam && newpamd "${FILESDIR}"/smtpd.pam smtpd |
158 |
if use mta ; then |
159 |
dodir /usr/sbin |
160 |
dosym /usr/sbin/smtpctl /usr/sbin/sendmail |
161 |
dosym /usr/sbin/smtpctl /usr/bin/sendmail |
162 |
dosym /usr/sbin/smtpctl /usr/$(get_libdir)/sendmail |
163 |
fi |
164 |
} |
165 |
|
166 |
pkg_preinst() { |
167 |
enewgroup smtpd 25 |
168 |
enewuser smtpd 25 -1 /var/empty smtpd |
169 |
enewgroup smtpf 251 |
170 |
enewuser smtpf 251 -1 /var/empty smtpf |
171 |
enewgroup smtpq 252 |
172 |
enewuser smtpq 252 -1 /var/empty smtpq |
173 |
|
174 |
# For release after some point: |
175 |
#enewgroup smtpl 253 |
176 |
#enewuser smtpl 253 -1 /var/empty smtpl |
177 |
} |