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