diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-05-08 17:34:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-05-08 17:34:29 +0000 |
commit | 62a8202905ea217c7be9de1b93428709e38cdf2d (patch) | |
tree | 79132a02169510d74432877e25a043bbefd96817 /net-fs/netatalk | |
parent | old (diff) | |
download | gentoo-2-62a8202905ea217c7be9de1b93428709e38cdf2d.tar.gz gentoo-2-62a8202905ea217c7be9de1b93428709e38cdf2d.tar.bz2 gentoo-2-62a8202905ea217c7be9de1b93428709e38cdf2d.zip |
Version bump #318849 by Russell Knighton.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-fs/netatalk')
-rw-r--r-- | net-fs/netatalk/ChangeLog | 7 | ||||
-rw-r--r-- | net-fs/netatalk/netatalk-2.1.ebuild | 93 |
2 files changed, 99 insertions, 1 deletions
diff --git a/net-fs/netatalk/ChangeLog b/net-fs/netatalk/ChangeLog index b4ba3a0f5edd..a1c2cba4dff1 100644 --- a/net-fs/netatalk/ChangeLog +++ b/net-fs/netatalk/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-fs/netatalk # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.62 2010/04/01 17:16:34 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.63 2010/05/08 17:34:29 vapier Exp $ + +*netatalk-2.1 (08 May 2010) + + 08 May 2010; Mike Frysinger <vapier@gentoo.org> +netatalk-2.1.ebuild: + Version bump #318849 by Russell Knighton. 01 Apr 2010; Raúl Porcel <armin76@gentoo.org> netatalk-2.0.5-r1.ebuild: sh/sparc stable wrt #252210 diff --git a/net-fs/netatalk/netatalk-2.1.ebuild b/net-fs/netatalk/netatalk-2.1.ebuild new file mode 100644 index 000000000000..51086bb615ed --- /dev/null +++ b/net-fs/netatalk/netatalk-2.1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-2.1.ebuild,v 1.1 2010/05/08 17:34:29 vapier Exp $ + +EAPI="2" + +inherit pam + +DESCRIPTION="Kernel level implementation of the AppleTalk Protocol Suite" +HOMEPAGE="http://netatalk.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="cracklib cups debug kerberos krb4 pam slp ssl tcpd xfs" + +RDEPEND=">=sys-libs/db-4.2.52 + cracklib? ( sys-libs/cracklib ) + pam? ( virtual/pam ) + ssl? ( dev-libs/openssl ) + tcpd? ( sys-apps/tcp-wrappers ) + slp? ( net-libs/openslp ) + cups? ( net-print/cups ) + kerberos? ( virtual/krb5 ) + krb4? ( virtual/krb5 ) + >=sys-apps/coreutils-7.1 + !app-text/yudit" +DEPEND="${RDEPEND} + xfs? ( sys-fs/xfsprogs <sys-kernel/linux-headers-2.6.16 )" + +src_prepare() { + # until someone that understands their config script build + # system gets a patch pushed upstream to make + # --enable-srvloc passed to configure also add slpd to the + # use line on the initscript, we'll need to do it this way + if use slp ; then + sed -i -e '/^[[:space:]]*use\>/s:$: slpd:' \ + distrib/initscripts/rc.atalk.gentoo.tmpl || die + fi +} + +src_configure() { + if ! use xfs ; then + eval $(printf '%s\n' {linux,xfs}/{dqblk_xfs,libxfs,xqm,xfs_fs}.h | \ + sed -e 's:[/.]:_:g' -e 's:^:export ac_cv_header_:' -e 's:$:=no:') + fi + + # Ignore --enable-gentoo, we install the init.d by hand and we avoid having + # to sed the Makefiles to not do rc-update. + # --enable-shadow: let build system detect shadow.h in toolchain + econf \ + $(use_with pam) \ + $(use_enable cups) \ + $(use_enable debug) \ + $(use_enable tcpd tcp-wrappers) \ + $(use_enable kerberos krbV-uam) \ + $(use_enable krb4 krb4-uam) \ + $(use_enable slp srvloc) \ + $(use_with ssl ssl-dir) \ + $(use_with cracklib) \ + $(use_with slp srvloc) \ + --disable-afs \ + --enable-fhs \ + --with-bdb=/usr +} + +src_compile() { + emake || die + + # Create the init script manually (it's more messy to --enable-gentoo) + emake -C distrib/initscripts rc.atalk.gentoo || die +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc CONTRIBUTORS NEWS README TODO VERSION + + newinitd distrib/initscripts/rc.atalk.gentoo atalk || die + + # The pamd file isn't what we need, use pamd_mimic_system + rm -rf "${D}/etc/pam.d" + pamd_mimic_system netatalk auth account password session + + # Move /usr/include/netatalk to /usr/include/netatalk2 to avoid collisions + # with /usr/include/netatalk/at.h provided by glibc (strange, uh?) + # Packages that wants to link to netatalk should then probably change the + # includepath then, but right now, nothing uses netatalk. + # On a side note, it also solves collisions with freebsd-lib and other libcs + mv "${D}"/usr/include/netatalk{,2} || die + sed -e 's/include <netatalk/include <netatalk2/g' \ + -i "${D}"usr/include/{netatalk2,atalk}/* || die +} |