1 |
hanno 08/05/20 10:20:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: courier-authlib-0.60.2-r1.ebuild |
5 |
Log: |
6 |
remove vpopmail support from courier-authlib (dead upstream) |
7 |
(Portage version: 2.1.5) |
8 |
|
9 |
Revision Changes Path |
10 |
1.73 net-libs/courier-authlib/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/courier-authlib/ChangeLog?rev=1.73&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/courier-authlib/ChangeLog?rev=1.73&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/courier-authlib/ChangeLog?r1=1.72&r2=1.73 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v |
19 |
retrieving revision 1.72 |
20 |
retrieving revision 1.73 |
21 |
diff -u -r1.72 -r1.73 |
22 |
--- ChangeLog 18 May 2008 23:27:37 -0000 1.72 |
23 |
+++ ChangeLog 20 May 2008 10:20:50 -0000 1.73 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-libs/courier-authlib |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.72 2008/05/18 23:27:37 fmccor Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.73 2008/05/20 10:20:50 hanno Exp $ |
29 |
+ |
30 |
+*courier-authlib-0.60.2-r1 (20 May 2008) |
31 |
+ |
32 |
+ 20 May 2008; Hanno Boeck <hanno@g.o> |
33 |
+ +courier-authlib-0.60.2-r1.ebuild: |
34 |
+ Remove vpopmail-support. |
35 |
|
36 |
18 May 2008; Ferris McCormick <fmccor@g.o> |
37 |
courier-authlib-0.60.2.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-libs/courier-authlib/courier-authlib-0.60.2-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.60.2-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.60.2-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: courier-authlib-0.60.2-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.60.2-r1.ebuild,v 1.1 2008/05/20 10:20:50 hanno Exp $ |
51 |
|
52 |
inherit eutils flag-o-matic autotools |
53 |
|
54 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
55 |
|
56 |
DESCRIPTION="Courier authentication library." |
57 |
SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" |
58 |
HOMEPAGE="http://www.courier-mta.org/" |
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
IUSE="berkdb crypt debug gdbm ldap mysql pam postgres" |
62 |
|
63 |
RESTRICT="userpriv" |
64 |
|
65 |
RDEPEND="gdbm? ( sys-libs/gdbm ) |
66 |
!gdbm? ( sys-libs/db )" |
67 |
|
68 |
DEPEND="${RDEPEND} |
69 |
>=dev-libs/openssl-0.9.6 |
70 |
ldap? ( >=net-nds/openldap-1.2.11 ) |
71 |
mysql? ( virtual/mysql ) |
72 |
pam? ( virtual/pam ) |
73 |
postgres? ( >=dev-db/postgresql-7.2 )" |
74 |
|
75 |
pkg_setup() { |
76 |
enewuser mail -1 -1 /var/spool/mail |
77 |
|
78 |
if ! has_version 'dev-tcltk/expect' ; then |
79 |
ewarn 'The dev-tcltk/expect package is not installed.' |
80 |
ewarn 'Without it, you will not be able to change system login passwords.' |
81 |
ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' |
82 |
ewarn 'and others) will work just fine.' |
83 |
fi |
84 |
} |
85 |
|
86 |
src_unpack() { |
87 |
unpack ${A} |
88 |
cd "${S}" |
89 |
|
90 |
if ! use gdbm ; then |
91 |
epatch "${FILESDIR}/0.59.2-configure-db4.patch" |
92 |
else |
93 |
epatch "${FILESDIR}/0.59.2-remove-obsolete-macro.patch" |
94 |
fi |
95 |
|
96 |
sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in || die "sed failed" |
97 |
sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in || die "sed failed" |
98 |
sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' authmigrate.in || die "sed failed" |
99 |
sed -i -e"s|@@INDENT@@| |g" authmigrate.in || die "sed failed" |
100 |
sed -i -e"s|\$sbindir/makeuserdb||g" authmigrate.in || die "sed failed" |
101 |
|
102 |
local d |
103 |
for d in $(find -name configure.in) ; do |
104 |
[[ ${d} == */libltdl/* ]] && continue |
105 |
cd "${S}"/${d%configure.in} |
106 |
eautoreconf |
107 |
done |
108 |
} |
109 |
|
110 |
src_compile() { |
111 |
filter-flags -fomit-frame-pointer |
112 |
|
113 |
local myconf="" |
114 |
|
115 |
myconf="${myconf} `use_with pam authpam`" |
116 |
myconf="${myconf} `use_with ldap authldap`" |
117 |
|
118 |
if use berkdb ; then |
119 |
if use gdbm ; then |
120 |
ewarn "Both gdbm and berkdb selected. Using gdbm." |
121 |
else |
122 |
myconf="${myconf} --with-db=db" |
123 |
fi |
124 |
fi |
125 |
use gdbm && myconf="${myconf} --with-db=gdbm" |
126 |
|
127 |
myconf="${myconf} --without-authvchkpw `use_with mysql authmysql` `use_with postgres authpgsql`" |
128 |
|
129 |
use debug && myconf="${myconf} debug=true" |
130 |
|
131 |
einfo "Configuring courier-authlib: ${myconf}" |
132 |
|
133 |
econf \ |
134 |
--sysconfdir=/etc/courier \ |
135 |
--datadir=/usr/share/courier \ |
136 |
--libexecdir=/usr/$(get_libdir)/courier \ |
137 |
--localstatedir=/var/lib/courier \ |
138 |
--sharedstatedir=/var/lib/courier/com \ |
139 |
--with-authdaemonvar=/var/lib/courier/authdaemon \ |
140 |
--with-authshadow \ |
141 |
--without-redhat \ |
142 |
--with-mailuser=mail \ |
143 |
--with-mailgroup=mail \ |
144 |
--cache-file="${S}/configuring.cache" \ |
145 |
${myconf} || die "econf failed" |
146 |
emake || die "emake failed" |
147 |
} |
148 |
|
149 |
orderfirst() { |
150 |
file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" |
151 |
if [[ -e "${file}" ]] ; then |
152 |
orig="$(grep \"^${option}=\" ${file} | cut -d'\"' -f 2)" |
153 |
new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" |
154 |
sed -i -e "s/^${option}=.*$/${new}/" "${file}" |
155 |
fi |
156 |
} |
157 |
|
158 |
finduserdb() { |
159 |
for dir in \ |
160 |
/etc/courier/authlib /etc/courier /etc/courier-imap \ |
161 |
/usr/lib/courier/etc /usr/lib/courier-imap/etc \ |
162 |
/usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ |
163 |
/usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ |
164 |
/usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do |
165 |
if [[ -e "${dir}/userdb" ]] ; then |
166 |
einfo "Found userdb at: ${dir}/userdb" |
167 |
cp -f "${dir}/userdb" "${D}/etc/courier/authlib/" |
168 |
chmod go-rwx "${D}/etc/courier/authlib/userdb" |
169 |
continue |
170 |
fi |
171 |
done |
172 |
} |
173 |
|
174 |
src_install() { |
175 |
diropts -o mail -g mail |
176 |
dodir /etc/courier |
177 |
keepdir /var/lib/courier/authdaemon |
178 |
keepdir /etc/courier/authlib |
179 |
emake DESTDIR="${D}" install || die "emake install failed" |
180 |
emake DESTDIR="${D}" install-migrate|| die "emake install-migrate failed" |
181 |
[[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb |
182 |
emake DESTDIR="${D}" install-configure || die "emake install-configure failed" |
183 |
rm -f "${D}"/etc/courier/authlib/*.bak |
184 |
chown mail:mail "${D}"/etc/courier/authlib/* |
185 |
for y in "${D}"/etc/courier/authlib/*.dist ; do |
186 |
[[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" |
187 |
done |
188 |
use pam && orderfirst authdaemonrc authmodulelist authpam |
189 |
use ldap && orderfirst authdaemonrc authmodulelist authldap |
190 |
use postgres && orderfirst authdaemonrc authmodulelist authpgsql |
191 |
use mysql && orderfirst authdaemonrc authmodulelist authmysql |
192 |
dodoc AUTHORS ChangeLog* INSTALL NEWS README |
193 |
dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html |
194 |
if use mysql ; then |
195 |
dodoc README.authmysql.myownquery |
196 |
dohtml README.authmysql.html |
197 |
fi |
198 |
if use postgres ; then |
199 |
dohtml README.authpostgres.html README.authmysql.html |
200 |
fi |
201 |
if use ldap ; then |
202 |
dodoc README.ldap |
203 |
dodir /etc/openldap/schema |
204 |
cp -f authldap.schema "${D}/etc/openldap/schema/" |
205 |
fi |
206 |
doinitd "${FILESDIR}/${PN}" || die "doinitd failed" |
207 |
} |
208 |
|
209 |
pkg_postinst() { |
210 |
if [[ -e /etc/courier/authlib/userdb ]] ; then |
211 |
einfo "Running makeuserdb ..." |
212 |
chmod go-rwx /etc/courier/authlib/userdb |
213 |
makeuserdb |
214 |
fi |
215 |
|
216 |
# Suggest cleaning out the following old files |
217 |
list="$(find /etc/courier -maxdepth 1 -type f | grep \"^/etc/courier/auth\")" |
218 |
if [[ ! -z "${list}" ]] ; then |
219 |
ewarn "Courier authentication files are now in /etc/courier/authlib/" |
220 |
elog "The following files are no longer needed and can likely be removed:" |
221 |
elog " rm $(echo \"${list}\")" |
222 |
fi |
223 |
|
224 |
ewarn "vpopmail support has been removed, it's unmaintained upstream and will be removed with the next release." |
225 |
} |
226 |
|
227 |
|
228 |
|
229 |
-- |
230 |
gentoo-commits@l.g.o mailing list |