1 |
flameeyes 12/04/08 21:04:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: netatalk-2.2.1-r3.ebuild |
5 |
Removed: netatalk-2.1.ebuild netatalk-2.1.3.ebuild |
6 |
netatalk-2.2.0.ebuild netatalk-2.2.1-r2.ebuild |
7 |
netatalk-2.1.5.ebuild netatalk-2.2.1-r1.ebuild |
8 |
netatalk-2.1.6.ebuild netatalk-2.2.1.ebuild |
9 |
Log: |
10 |
Add a new init script to make sure that the entropy-gathering daemons are started before afpd, for safety, and remove older versions. |
11 |
|
12 |
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64) |
13 |
|
14 |
Revision Changes Path |
15 |
1.75 net-fs/netatalk/ChangeLog |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/ChangeLog?rev=1.75&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/ChangeLog?rev=1.75&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/ChangeLog?r1=1.74&r2=1.75 |
20 |
|
21 |
Index: ChangeLog |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v |
24 |
retrieving revision 1.74 |
25 |
retrieving revision 1.75 |
26 |
diff -u -r1.74 -r1.75 |
27 |
--- ChangeLog 18 Oct 2011 07:37:57 -0000 1.74 |
28 |
+++ ChangeLog 8 Apr 2012 21:04:02 -0000 1.75 |
29 |
@@ -1,6 +1,15 @@ |
30 |
# ChangeLog for net-fs/netatalk |
31 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.74 2011/10/18 07:37:57 flameeyes Exp $ |
33 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
34 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.75 2012/04/08 21:04:02 flameeyes Exp $ |
35 |
+ |
36 |
+*netatalk-2.2.1-r3 (08 Apr 2012) |
37 |
+ |
38 |
+ 08 Apr 2012; Diego E. Pettenò <flameeyes@g.o> +files/afpd.init.3, |
39 |
+ +netatalk-2.2.1-r3.ebuild, -netatalk-2.1.3.ebuild, -netatalk-2.1.5.ebuild, |
40 |
+ -netatalk-2.1.6.ebuild, -netatalk-2.1.ebuild, -netatalk-2.2.0.ebuild, |
41 |
+ -netatalk-2.2.1-r1.ebuild, -netatalk-2.2.1-r2.ebuild, -netatalk-2.2.1.ebuild: |
42 |
+ Add a new init script to make sure that the entropy-gathering daemons are |
43 |
+ started before afpd, for safety, and remove older versions. |
44 |
|
45 |
*netatalk-2.2.1-r2 (18 Oct 2011) |
46 |
|
47 |
|
48 |
|
49 |
|
50 |
1.1 net-fs/netatalk/netatalk-2.2.1-r3.ebuild |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/netatalk-2.2.1-r3.ebuild?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/netatalk-2.2.1-r3.ebuild?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: netatalk-2.2.1-r3.ebuild |
56 |
=================================================================== |
57 |
# Copyright 1999-2012 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-2.2.1-r3.ebuild,v 1.1 2012/04/08 21:04:02 flameeyes Exp $ |
60 |
|
61 |
EAPI="4" |
62 |
|
63 |
inherit pam flag-o-matic multilib autotools |
64 |
|
65 |
RESTRICT="test" |
66 |
DESCRIPTION="Open Source AFP server and other AppleTalk-related utilities" |
67 |
HOMEPAGE="http://netatalk.sourceforge.net/" |
68 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
69 |
|
70 |
LICENSE="GPL-2 BSD" |
71 |
SLOT="0" |
72 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
73 |
IUSE="acl appletalk avahi cracklib cups debug kerberos ldap pam quota slp ssl static-libs tcpd" |
74 |
|
75 |
RDEPEND=">=sys-libs/db-4.2.52 |
76 |
avahi? ( net-dns/avahi[dbus] ) |
77 |
cracklib? ( sys-libs/cracklib ) |
78 |
pam? ( virtual/pam ) |
79 |
ssl? ( dev-libs/openssl ) |
80 |
tcpd? ( sys-apps/tcp-wrappers ) |
81 |
slp? ( net-libs/openslp ) |
82 |
kerberos? ( virtual/krb5 ) |
83 |
>=sys-apps/coreutils-7.1 |
84 |
!app-text/yudit |
85 |
dev-libs/libgcrypt |
86 |
appletalk? ( |
87 |
cups? ( net-print/cups ) |
88 |
) |
89 |
acl? ( |
90 |
sys-apps/attr |
91 |
sys-apps/acl |
92 |
) |
93 |
ldap? ( |
94 |
net-nds/openldap |
95 |
) |
96 |
" |
97 |
DEPEND="${RDEPEND}" |
98 |
RDEPEND="sys-apps/openrc" |
99 |
|
100 |
REQUIRED_USE="ldap? ( acl )" |
101 |
|
102 |
DOCS=( CONTRIBUTORS NEWS VERSION AUTHORS doc/README.AppleTalk ) |
103 |
|
104 |
src_prepare() { |
105 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
106 |
eautoreconf |
107 |
} |
108 |
|
109 |
src_configure() { |
110 |
local myconf= |
111 |
|
112 |
if use appletalk; then |
113 |
myconf+=" --enable-ddp --enable-timelord $(use_enable cups)" |
114 |
else |
115 |
myconf+=" --disable-ddp --disable-timelord --disable-cups" |
116 |
fi |
117 |
|
118 |
if use acl; then |
119 |
myconf+=" --with-acls $(use_with ldap)" |
120 |
else |
121 |
myconf+=" --without-acls --without-ldap" |
122 |
fi |
123 |
|
124 |
append-flags -fno-strict-aliasing |
125 |
|
126 |
# Ignore --enable-gentoo, we install the init.d by hand and we avoid having |
127 |
# to sed the Makefiles to not do rc-update. |
128 |
econf \ |
129 |
$(use_enable avahi zeroconf) \ |
130 |
$(use_enable debug) \ |
131 |
$(use_enable kerberos krbV-uam) \ |
132 |
$(use_enable quota) \ |
133 |
$(use_enable slp srvloc) \ |
134 |
$(use_enable static-libs static) \ |
135 |
$(use_enable tcpd tcp-wrappers) \ |
136 |
$(use_with cracklib) \ |
137 |
$(use_with pam) \ |
138 |
$(use_with ssl ssl-dir) \ |
139 |
--disable-krb4-uam \ |
140 |
--disable-afs \ |
141 |
--enable-fhs \ |
142 |
--with-bdb=/usr \ |
143 |
${myconf} |
144 |
} |
145 |
|
146 |
src_install() { |
147 |
default |
148 |
|
149 |
newinitd "${FILESDIR}"/afpd.init.3 afpd |
150 |
newinitd "${FILESDIR}"/cnid_metad.init.2 cnid_metad |
151 |
|
152 |
if use appletalk; then |
153 |
newinitd "${FILESDIR}"/atalkd.init atalkd |
154 |
newinitd "${FILESDIR}"/atalk_service.init.2 timelord |
155 |
newinitd "${FILESDIR}"/atalk_service.init.2 papd |
156 |
fi |
157 |
|
158 |
use avahi || sed -i -e '/need avahi-daemon/d' "${D}"/etc/init.d/afpd |
159 |
use slp || sed -i -e '/need slpd/d' "${D}"/etc/init.d/afpd |
160 |
|
161 |
use ldap || rm "${D}"/etc/netatalk/afp_ldap.conf |
162 |
|
163 |
rm "${D}"/etc/netatalk/netatalk.conf |
164 |
|
165 |
# The pamd file isn't what we need, use pamd_mimic_system |
166 |
rm -rf "${D}/etc/pam.d" |
167 |
pamd_mimic_system netatalk auth account password session |
168 |
|
169 |
# Move /usr/include/netatalk to /usr/include/netatalk2 to avoid collisions |
170 |
# with /usr/include/netatalk/at.h provided by glibc (strange, uh?) |
171 |
# Packages that wants to link to netatalk should then probably change the |
172 |
# includepath then, but right now, nothing uses netatalk. |
173 |
# On a side note, it also solves collisions with freebsd-lib and other libcs |
174 |
mv "${D}"/usr/include/netatalk{,2} || die |
175 |
sed -i \ |
176 |
-e 's/include <netatalk/include <netatalk2/g' \ |
177 |
"${D}"usr/include/{netatalk2,atalk}/* || die |
178 |
|
179 |
# These are not used at all, as the uams are loaded with their .so |
180 |
# extension. |
181 |
rm "${D}"/usr/$(get_libdir)/netatalk/*.la |
182 |
|
183 |
use static-libs || rm "${D}"/usr/$(get_libdir)/*.la |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
elog "Starting from version 2.2.1-r1 the netatalk init script has been split" |
188 |
elog "into different services depending on what you need to start." |
189 |
elog "This was done to make sure that all services are started and reported" |
190 |
elog "properly." |
191 |
elog "" |
192 |
elog "The new services are:" |
193 |
elog " cnid_metad" |
194 |
elog " afpd" |
195 |
if use appletalk; then |
196 |
elog " atalkd" |
197 |
elog " timelord" |
198 |
elog " papd" |
199 |
fi |
200 |
elog "" |
201 |
elog "Dependencies should be resolved automatically depending on settings" |
202 |
elog "but please report issues with this on https://bugs.gentoo.org/ if" |
203 |
elog "you find any." |
204 |
elog "" |
205 |
elog "The old configuration file /etc/netatalk/netatalk.conf is no longer" |
206 |
elog "installed, and will be ignored. The new configuration is supposed" |
207 |
elog "to be done through individual /etc/conf.d files, for everything that" |
208 |
elog "cannot be set already through their respective configuration files." |
209 |
} |