/[gentoo-x86]/net-fs/netatalk/netatalk-3.0.1.ebuild
Gentoo

Contents of /net-fs/netatalk/netatalk-3.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Sep 30 07:34:43 2013 UTC (6 years, 10 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
net-fs/netatalk: Drop old, bump series 2

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-3.0.1.ebuild,v 1.4 2013/08/22 16:01:55 jlec Exp $
4
5 EAPI=4
6
7 AUTOTOOLS_AUTORECONF=yes
8
9 inherit autotools-utils flag-o-matic multilib pam
10
11 DESCRIPTION="Open Source AFP server"
12 HOMEPAGE="http://netatalk.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2"
14
15 LICENSE="GPL-2 BSD"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
18 IUSE="acl avahi cracklib debug pgp kerberos ldap pam quota samba +shadow ssl static-libs tcpd"
19
20 RDEPEND="
21 !app-editors/yudit
22 dev-libs/libevent
23 dev-libs/libgcrypt
24 sys-apps/coreutils
25 >=sys-libs/db-4.2.52
26 acl? (
27 sys-apps/attr
28 sys-apps/acl
29 )
30 avahi? ( net-dns/avahi[dbus] )
31 cracklib? ( sys-libs/cracklib )
32 kerberos? ( virtual/krb5 )
33 ldap? ( net-nds/openldap )
34 pam? ( virtual/pam )
35 ssl? ( dev-libs/openssl )
36 tcpd? ( sys-apps/tcp-wrappers )
37 "
38 DEPEND="${RDEPEND}"
39
40 RESTRICT="test"
41
42 REQUIRED_USE="ldap? ( acl )"
43
44 DOCS=( CONTRIBUTORS NEWS VERSION AUTHORS doc/DEVELOPER )
45
46 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
47
48 src_configure() {
49 local myeconfargs=()
50
51 append-flags -fno-strict-aliasing
52
53 if use acl; then
54 myconf+=( --with-acls $(use_with ldap) )
55 else
56 myconf+=( --without-acls --without-ldap )
57 fi
58
59 # Ignore --with-init-style=gentoo, we install the init.d by hand and we avoid having
60 # to sed the Makefiles to not do rc-update.
61 # TODO:
62 # systemd : --with-init-style=systemd
63 myeconfargs+=(
64 --disable-silent-rules
65 $(use_enable avahi zeroconf)
66 $(use_enable debug)
67 $(use_enable debug debugging)
68 $(use_enable pgp pgp-uam)
69 $(use_enable kerberos)
70 $(use_enable kerberos krbV-uam)
71 $(use_enable quota)
72 $(use_enable tcpd tcp-wrappers)
73 $(use_with cracklib)
74 $(use_with pam)
75 $(use_with samba smbsharemodes)
76 $(use_with shadow)
77 $(use_with ssl ssl-dir)
78 --enable-overwrite
79 --disable-krb4-uam
80 --disable-afs
81 --with-libevent-header=/usr/include
82 --with-libevent-lib=/usr/$(get_libdir)
83 --with-bdb=/usr
84 --with-uams-path=/usr/$(get_libdir)/${PN}
85 --disable-silent-rules
86 --with-init-style=gentoo
87 )
88 autotools-utils_src_configure
89 }
90
91 src_install() {
92 autotools-utils_src_install
93
94 if use avahi; then
95 sed -i -e '/avahi-daemon/s:use:need:g' "${D}"/etc/init.d/${PN} || die
96 else
97 sed -i -e '/avahi-daemon/d' "${D}"/etc/init.d/${PN} || die
98 fi
99
100 # The pamd file isn't what we need, use pamd_mimic_system
101 rm -rf "${D}/etc/pam.d"
102 pamd_mimic_system netatalk auth account password session
103 }
104
105 pkg_postinst() {
106 local fle
107 if [[ ${REPLACING_VERSIONS} < 3 ]]; then
108 for fle in afp_signature.conf afp_voluuid.conf; do
109 if [[ -f "${ROOT}"etc/netatalk/${fle} ]]; then
110 if [[ ! -f "${ROOT}"var/lib/netatalk/${fle} ]]; then
111 mv \
112 "${ROOT}"etc/netatalk/${fle} \
113 "${ROOT}"var/lib/netatalk/
114 fi
115 fi
116 done
117
118 echo ""
119 elog "Starting from version 3.0 only uses a single init script again"
120 elog "Please update your runlevels accordingly"
121 echo ""
122 elog "Dependencies should be resolved automatically depending on settings"
123 elog "but please report issues with this on https://bugs.gentoo.org/ if"
124 elog "you find any."
125 echo ""
126 elog "Following config files are obsolete now:"
127 elog "afpd.conf, netatalk.conf, AppleVolumes.default and afp_ldap.conf"
128 elog "in favour of"
129 elog "/etc/afp.conf"
130 echo ""
131 elog "Please convert your existing configs before you restart your daemon"
132 echo ""
133 elog "The new AppleDouble default backend is appledouble = ea"
134 elog "Existing entries will be updated on access, but can do an offline"
135 elog "conversion with"
136 elog "dbd -ruve /path/to/Volume"
137 echo ""
138 elog "For general notes on the upgrade, please visit"
139 elog "http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html"
140 echo ""
141 fi
142 }

  ViewVC Help
Powered by ViewVC 1.1.20