Gentoo Archives: gentoo-commits

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