Gentoo Archives: gentoo-commits

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