Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/netatalk/
Date: Thu, 13 Apr 2017 17:48:53
Message-Id: 1492105719.7b4f8073c68c05ed4b8cf7dba915ab683872f928.xmw@gentoo
1 commit: 7b4f8073c68c05ed4b8cf7dba915ab683872f928
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 13 17:48:20 2017 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 13 17:48:39 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b4f8073
7
8 net-fs/netatalk: Version bump (bug 614420).
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 net-fs/netatalk/Manifest | 1 +
13 net-fs/netatalk/netatalk-3.1.11.ebuild | 181 +++++++++++++++++++++++++++++++++
14 2 files changed, 182 insertions(+)
15
16 diff --git a/net-fs/netatalk/Manifest b/net-fs/netatalk/Manifest
17 index e585b948f2c..77f1bbc418f 100644
18 --- a/net-fs/netatalk/Manifest
19 +++ b/net-fs/netatalk/Manifest
20 @@ -1,2 +1,3 @@
21 DIST netatalk-3.1.10.tar.bz2 1811929 SHA256 2b40161985bb32cff5660bf689a4704f15c33bb87565efc7805dd5c75ad1fcc7 SHA512 dd1f49307b5298a784e2b487c0da94459632bab8353cf505cd4b104f4c0b55bbb77caf73e8b4c60af64018b345df78337accac3b5ed6cb5620309b163a86d32b WHIRLPOOL f5996ef249e98e5cb95ab214087f482502e6177bfa4d259119db8362e45665d775ca4e41277b34e627c4c199859915f9732c101adc0f17ba56bdcf64efc7a789
22 +DIST netatalk-3.1.11.tar.bz2 1812227 SHA256 3434472ba96d3bbe3b024274438daad83b784ced720f7662a4c1d0a1078799a6 SHA512 330e584f34b5f5e8714b3eca8e11adb93134cc0afa73e9bc25ddadcf3e9a96779a2979dfc08a64d343b148bc2d4e0e0f25b08d9c46d6b68057611d04ecfd06ea WHIRLPOOL d5bc44c13585cb41b8cfd48876398842900b830a8f685585ad993d719bb0a3614bb87d1d43213200eceb9b57ebc48138f3dc6c02692ab6dd27196aa3e59f8e8d
23 DIST netatalk-3.1.8.tar.bz2 1802404 SHA256 34668d5f53b780e9f143c2d7ee06ebc1c2bd7758c60ca483c8b08da27dcc4d4c SHA512 734745743b2d5fe39f3d6716f377e6255d6a061e3c615a4fe30db388ec6d848f6db063d733dfa24ccf967f1e9042841bce4824f4bed391952c4304ee11e11b0d WHIRLPOOL dff6050c746b301864d34b9577f9cea7195878434306e4ad83032a51ba6841b4b8537db6cedef27642d751beeefacba62026addd4b8f5056a9fe9b0b07bf98d8
24
25 diff --git a/net-fs/netatalk/netatalk-3.1.11.ebuild b/net-fs/netatalk/netatalk-3.1.11.ebuild
26 new file mode 100644
27 index 00000000000..761f1c4f004
28 --- /dev/null
29 +++ b/net-fs/netatalk/netatalk-3.1.11.ebuild
30 @@ -0,0 +1,181 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +
36 +PYTHON_COMPAT=( python2_7 )
37 +
38 +AUTOTOOLS_AUTORECONF=yes
39 +
40 +inherit autotools-utils flag-o-matic multilib pam python-r1 systemd versionator
41 +
42 +DESCRIPTION="Open Source AFP server"
43 +HOMEPAGE="http://netatalk.sourceforge.net/"
44 +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/$(get_version_component_range 1-3)/${P}.tar.bz2"
45 +
46 +LICENSE="GPL-2 BSD"
47 +SLOT="0/17.0"
48 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
49 +IUSE="acl cracklib dbus debug kerberos ldap pam pgp quota samba +shadow ssl static-libs tracker tcpd +utils zeroconf"
50 +
51 +CDEPEND="
52 + !app-editors/yudit
53 + dev-libs/libevent:0=
54 + >=dev-libs/libgcrypt-1.2.3:0
55 + sys-apps/coreutils
56 + >=sys-libs/db-4.2.52:=
57 + sys-libs/tdb
58 + acl? (
59 + sys-apps/attr
60 + sys-apps/acl
61 + )
62 + cracklib? ( sys-libs/cracklib )
63 + dbus? ( sys-apps/dbus dev-libs/dbus-glib )
64 + kerberos? ( virtual/krb5 )
65 + ldap? ( net-nds/openldap )
66 + pam? ( virtual/pam )
67 + ssl? ( dev-libs/openssl:0 )
68 + tcpd? ( sys-apps/tcp-wrappers )
69 + tracker? ( app-misc/tracker )
70 + utils? ( ${PYTHON_DEPS} )
71 + zeroconf? ( net-dns/avahi[dbus] )
72 +"
73 +RDEPEND="${CDEPEND}
74 + utils? (
75 + dev-lang/perl
76 + dev-python/dbus-python[${PYTHON_USEDEP}]
77 + )"
78 +DEPEND="${CDEPEND}
79 + virtual/yacc
80 + sys-devel/flex"
81 +
82 +RESTRICT="test"
83 +
84 +REQUIRED_USE="
85 + ldap? ( acl )
86 + tracker? ( dbus )
87 + utils? ( ${PYTHON_REQUIRED_USE} )"
88 +
89 +PATCHES=(
90 + "${FILESDIR}"/${PN}-3.1.7-gentoo.patch
91 + "${FILESDIR}"/${PN}-3.1.8-disable-ld-library-path.patch #564350
92 +)
93 +
94 +src_prepare() {
95 + if ! use utils; then
96 + sed \
97 + -e "s:shell_utils::g" \
98 + -i contrib/Makefile.am || die
99 + fi
100 + autotools-utils_src_prepare
101 +}
102 +
103 +src_configure() {
104 + local myeconfargs=()
105 +
106 + append-flags -fno-strict-aliasing
107 +
108 + # Ignore --with-init-style=gentoo, we install the init.d by hand and we avoid having
109 + # to sed the Makefiles to not do rc-update.
110 + # TODO:
111 + # systemd : --with-init-style=systemd
112 + myeconfargs+=(
113 + $(use_enable debug)
114 + $(use_enable debug debugging)
115 + $(use_enable pgp pgp-uam)
116 + $(use_enable kerberos)
117 + $(use_enable kerberos krbV-uam)
118 + $(use_enable quota)
119 + $(use_enable tcpd tcp-wrappers)
120 + $(use_enable zeroconf)
121 + $(use_with acl acls)
122 + $(use_with cracklib)
123 + $(use_with dbus afpstats)
124 + $(use_with ldap)
125 + $(use_with pam)
126 + $(use_with samba smbsharemodes)
127 + $(use_with shadow)
128 + $(use_with ssl ssl-dir)
129 + $(use_with tracker)
130 + $(use_with tracker dbus-daemon "${EPREFIX}/usr/bin/dbus-daemon")
131 + $(use_with tracker tracker-pkgconfig-version $(get_version_component_range 1-2 $(best_version app-misc/tracker | sed 's:app-misc/tracker-::g')))
132 + --enable-overwrite
133 + --disable-krb4-uam
134 + --disable-afs
135 + --with-libevent-header=/usr/include
136 + --with-libevent-lib=/usr/$(get_libdir)
137 + --with-bdb=/usr
138 + --with-uams-path=/usr/$(get_libdir)/${PN}
139 + --disable-silent-rules
140 + --with-init-style=gentoo-openrc
141 + --without-libevent
142 + --without-tdb
143 + --with-lockfile=/run/lock/${PN}
144 + )
145 + autotools-utils_src_configure
146 +}
147 +
148 +src_install() {
149 + autotools-utils_src_install
150 +
151 + if use zeroconf; then
152 + sed -i -e '/avahi-daemon/s:use:need:g' "${D}"/etc/init.d/${PN} || die
153 + else
154 + sed -i -e '/avahi-daemon/d' "${D}"/etc/init.d/${PN} || die
155 + fi
156 +
157 + # The pamd file isn't what we need, use pamd_mimic_system
158 + rm -rf "${ED}/etc/pam.d" || die
159 + pamd_mimic_system netatalk auth account password session
160 +
161 + sed \
162 + -e "s|:SBINDIR:|${EPREFIX}/usr/sbin|g" \
163 + -e "s|:PATH_NETATALK_LOCK:|/run/lock/netatalk|g" \
164 + distrib/initscripts/service.systemd.tmpl \
165 + > "${T}"/service.systemd || die
166 + systemd_newunit "${T}"/service.systemd ${PN}.service
167 +
168 + use utils && python_foreach_impl python_doscript contrib/shell_utils/afpstats
169 +}
170 +
171 +pkg_postinst() {
172 + local fle v
173 + for v in ${REPLACING_VERSIONS}; do
174 + if ! version_is_at_least 3 ${v}; then
175 + for fle in afp_signature.conf afp_voluuid.conf; do
176 + if [[ -f "${ROOT}"etc/netatalk/${fle} ]]; then
177 + if [[ ! -f "${ROOT}"var/lib/netatalk/${fle} ]]; then
178 + mv \
179 + "${ROOT}"etc/netatalk/${fle} \
180 + "${ROOT}"var/lib/netatalk/
181 + fi
182 + fi
183 + done
184 +
185 + echo ""
186 + elog "Starting from version 3.0 only uses a single init script again"
187 + elog "Please update your runlevels accordingly"
188 + echo ""
189 + elog "Dependencies should be resolved automatically depending on settings"
190 + elog "but please report issues with this on https://bugs.gentoo.org/ if"
191 + elog "you find any."
192 + echo ""
193 + elog "Following config files are obsolete now:"
194 + elog "afpd.conf, netatalk.conf, AppleVolumes.default and afp_ldap.conf"
195 + elog "in favour of"
196 + elog "/etc/afp.conf"
197 + echo ""
198 + elog "Please convert your existing configs before you restart your daemon"
199 + echo ""
200 + elog "The new AppleDouble default backend is appledouble = ea"
201 + elog "Existing entries will be updated on access, but can do an offline"
202 + elog "conversion with"
203 + elog "dbd -ruve /path/to/Volume"
204 + echo ""
205 + elog "For general notes on the upgrade, please visit"
206 + elog "http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html"
207 + echo ""
208 + break
209 + fi
210 + done
211 +}