1 |
jlec 13/11/02 11:34:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: netatalk-3.0.5-r1.ebuild |
5 |
Removed: netatalk-3.0.5.ebuild |
6 |
Log: |
7 |
net-fs/netatalk: Fix borked systemd unit, #489990 |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key B9D4F231BD1558AB!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.102 net-fs/netatalk/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/ChangeLog?rev=1.102&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/ChangeLog?rev=1.102&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/ChangeLog?r1=1.101&r2=1.102 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v |
21 |
retrieving revision 1.101 |
22 |
retrieving revision 1.102 |
23 |
diff -u -r1.101 -r1.102 |
24 |
--- ChangeLog 1 Nov 2013 13:50:50 -0000 1.101 |
25 |
+++ ChangeLog 2 Nov 2013 11:34:23 -0000 1.102 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-fs/netatalk |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.101 2013/11/01 13:50:50 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.102 2013/11/02 11:34:23 jlec Exp $ |
31 |
+ |
32 |
+*netatalk-3.0.5-r1 (02 Nov 2013) |
33 |
+ |
34 |
+ 02 Nov 2013; Justin Lecher <jlec@g.o> -netatalk-3.0.5.ebuild, |
35 |
+ +netatalk-3.0.5-r1.ebuild: |
36 |
+ Fix borked systemd unit, #489990 |
37 |
|
38 |
01 Nov 2013; Agostino Sarubbo <ago@g.o> netatalk-3.0.5.ebuild: |
39 |
Stable for x86, wrt bug #480076 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-fs/netatalk/netatalk-3.0.5-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/netatalk-3.0.5-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/netatalk/netatalk-3.0.5-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: netatalk-3.0.5-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-3.0.5-r1.ebuild,v 1.1 2013/11/02 11:34:23 jlec Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
PYTHON_COMPAT=( python2_{6,7} ) |
57 |
|
58 |
AUTOTOOLS_AUTORECONF=yes |
59 |
|
60 |
inherit autotools-utils flag-o-matic multilib pam python-r1 systemd |
61 |
|
62 |
DESCRIPTION="Open Source AFP server" |
63 |
HOMEPAGE="http://netatalk.sourceforge.net/" |
64 |
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" |
65 |
|
66 |
LICENSE="GPL-2 BSD" |
67 |
SLOT="0" |
68 |
KEYWORDS="amd64 arm ~ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd" |
69 |
IUSE="acl avahi cracklib debug pgp kerberos ldap pam quota samba +shadow ssl static-libs tcpd +utils" |
70 |
|
71 |
DEPEND=" |
72 |
!app-editors/yudit |
73 |
dev-libs/libevent |
74 |
dev-libs/libgcrypt |
75 |
sys-apps/coreutils |
76 |
>=sys-libs/db-4.2.52 |
77 |
acl? ( |
78 |
sys-apps/attr |
79 |
sys-apps/acl |
80 |
) |
81 |
avahi? ( net-dns/avahi[dbus] ) |
82 |
cracklib? ( sys-libs/cracklib ) |
83 |
kerberos? ( virtual/krb5 ) |
84 |
ldap? ( net-nds/openldap ) |
85 |
pam? ( virtual/pam ) |
86 |
ssl? ( dev-libs/openssl ) |
87 |
tcpd? ( sys-apps/tcp-wrappers ) |
88 |
utils? ( ${PYTHON_DEPS} ) |
89 |
" |
90 |
RDEPEND="${DEPEND} |
91 |
utils? ( |
92 |
dev-lang/perl |
93 |
dev-python/dbus-python[${PYTHON_USEDEP}] |
94 |
)" |
95 |
|
96 |
RESTRICT="test" |
97 |
|
98 |
REQUIRED_USE=" |
99 |
ldap? ( acl ) |
100 |
utils? ( ${PYTHON_REQUIRED_USE} )" |
101 |
|
102 |
PATCHES=( "${FILESDIR}"/${PN}-3.0.1-gentoo.patch ) |
103 |
|
104 |
src_prepare() { |
105 |
if ! use utils; then |
106 |
sed \ |
107 |
-e "s:shell_utils::g" \ |
108 |
-i contrib/Makefile.am || die |
109 |
fi |
110 |
autotools-utils_src_prepare |
111 |
} |
112 |
|
113 |
src_configure() { |
114 |
local myeconfargs=() |
115 |
|
116 |
append-flags -fno-strict-aliasing |
117 |
|
118 |
if use acl; then |
119 |
myeconfargs+=( --with-acls $(use_with ldap) ) |
120 |
else |
121 |
myeconfargs+=( --without-acls --without-ldap ) |
122 |
fi |
123 |
|
124 |
# Ignore --with-init-style=gentoo, we install the init.d by hand and we avoid having |
125 |
# to sed the Makefiles to not do rc-update. |
126 |
# TODO: |
127 |
# systemd : --with-init-style=systemd |
128 |
myeconfargs+=( |
129 |
--disable-silent-rules |
130 |
$(use_enable avahi zeroconf) |
131 |
$(use_enable debug) |
132 |
$(use_enable debug debugging) |
133 |
$(use_enable pgp pgp-uam) |
134 |
$(use_enable kerberos) |
135 |
$(use_enable kerberos krbV-uam) |
136 |
$(use_enable quota) |
137 |
$(use_enable tcpd tcp-wrappers) |
138 |
$(use_with cracklib) |
139 |
$(use_with pam) |
140 |
$(use_with samba smbsharemodes) |
141 |
$(use_with shadow) |
142 |
$(use_with ssl ssl-dir) |
143 |
--enable-overwrite |
144 |
--disable-krb4-uam |
145 |
--disable-afs |
146 |
--with-libevent-header=/usr/include |
147 |
--with-libevent-lib=/usr/$(get_libdir) |
148 |
--with-bdb=/usr |
149 |
--with-uams-path=/usr/$(get_libdir)/${PN} |
150 |
--disable-silent-rules |
151 |
--with-init-style=gentoo |
152 |
--with-lockfile=/run/lock/${PN} |
153 |
) |
154 |
autotools-utils_src_configure |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
autotools-utils_src_install |
159 |
|
160 |
if use avahi; then |
161 |
sed -i -e '/avahi-daemon/s:use:need:g' "${D}"/etc/init.d/${PN} || die |
162 |
else |
163 |
sed -i -e '/avahi-daemon/d' "${D}"/etc/init.d/${PN} || die |
164 |
fi |
165 |
|
166 |
# The pamd file isn't what we need, use pamd_mimic_system |
167 |
rm -rf "${D}/etc/pam.d" |
168 |
pamd_mimic_system netatalk auth account password session |
169 |
|
170 |
sed \ |
171 |
-e "s|:SBINDIR:|${EPREFIX}/usr/sbin|g" \ |
172 |
-e "s|:PATH_NETATALK_LOCK:|/run/lock/netatalk|g" \ |
173 |
distrib/initscripts/service.systemd.tmpl \ |
174 |
> "${T}"/service.systemd || die |
175 |
systemd_newunit "${T}"/service.systemd ${PN}.service |
176 |
|
177 |
use utils && python_foreach_impl python_doscript contrib/shell_utils/afpstats |
178 |
} |
179 |
|
180 |
pkg_postinst() { |
181 |
local fle |
182 |
if [[ ${REPLACING_VERSIONS} < 3 ]]; then |
183 |
for fle in afp_signature.conf afp_voluuid.conf; do |
184 |
if [[ -f "${ROOT}"etc/netatalk/${fle} ]]; then |
185 |
if [[ ! -f "${ROOT}"var/lib/netatalk/${fle} ]]; then |
186 |
mv \ |
187 |
"${ROOT}"etc/netatalk/${fle} \ |
188 |
"${ROOT}"var/lib/netatalk/ |
189 |
fi |
190 |
fi |
191 |
done |
192 |
|
193 |
echo "" |
194 |
elog "Starting from version 3.0 only uses a single init script again" |
195 |
elog "Please update your runlevels accordingly" |
196 |
echo "" |
197 |
elog "Dependencies should be resolved automatically depending on settings" |
198 |
elog "but please report issues with this on https://bugs.gentoo.org/ if" |
199 |
elog "you find any." |
200 |
echo "" |
201 |
elog "Following config files are obsolete now:" |
202 |
elog "afpd.conf, netatalk.conf, AppleVolumes.default and afp_ldap.conf" |
203 |
elog "in favour of" |
204 |
elog "/etc/afp.conf" |
205 |
echo "" |
206 |
elog "Please convert your existing configs before you restart your daemon" |
207 |
echo "" |
208 |
elog "The new AppleDouble default backend is appledouble = ea" |
209 |
elog "Existing entries will be updated on access, but can do an offline" |
210 |
elog "conversion with" |
211 |
elog "dbd -ruve /path/to/Volume" |
212 |
echo "" |
213 |
elog "For general notes on the upgrade, please visit" |
214 |
elog "http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html" |
215 |
echo "" |
216 |
fi |
217 |
} |