diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-30 21:33:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-30 21:33:31 +0100 |
commit | 2f8db31405fac68eea6f7257d58529243815033b (patch) | |
tree | 54259cc8988a98a10586fc0496b1f3501cd1e2a1 /net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild | |
parent | a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (diff) |
gentoo resync : 30.04.2018
Diffstat (limited to 'net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild')
-rw-r--r-- | net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild b/net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild new file mode 100644 index 000000000000..14c992bac3a1 --- /dev/null +++ b/net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit pam + +DESCRIPTION="Provides access to Netware services using the NCP protocol" +HOMEPAGE="ftp://platan.vc.cvut.cz/pub/linux/ncpfs/" +SRC_URI="ftp://platan.vc.cvut.cz/pub/linux/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86" +IUSE="nls pam" + +DEPEND=" + nls? ( sys-devel/gettext ) + pam? ( virtual/pam )" + +RDEPEND="${DEPEND}" + +MY_PATCHES=( + # Build fixes. + "${FILESDIR}"/${P}-gcc4.patch + "${FILESDIR}"/${P}-missing-includes.patch + + # Add a patch to fix multiple vulnerabilities. + # CVE-2010-0788, CVE-2010-0790, & CVE-2010-0791. + # http://seclists.org/fulldisclosure/2010/Mar/122 + "${FILESDIR}"/${P}-multiple-vulns.patch + + # Add a patch that removes the __attribute__((packed)); directive + # from several struct members in include/ncp/ncplib.h. This will + # cut down on a large number of compile warnings generated by modern + # gcc releases. + "${FILESDIR}"/${P}-remove-packed-attrib.patch + + # Misc patches borrowed from Mageia. + "${FILESDIR}"/${P}-align-fix.patch + "${FILESDIR}"/${P}-getuid-fix.patch + "${FILESDIR}"/${P}-pam_ncp_auth-fix.patch + "${FILESDIR}"/${P}-servername-array-fix.patch + + # Misc patches borrowed from Debian. + # Fixes Bug #497278 + "${FILESDIR}"/${P}-drop-kernel-check.patch + "${FILESDIR}"/${P}-drop-mtab-support.patch + "${FILESDIR}"/${P}-no-suid-root.patch + "${FILESDIR}"/${P}-remove-libncp_atomic-header.patch + + # Support LDFLAGS. + "${FILESDIR}"/${P}-ldflags-support.patch + + # Bug 446696. This might need re-diffing if additional Makefile + # fixes are added. + "${FILESDIR}"/${P}-makefile-fix-soname-link.patch +) + +DOCS=( FAQ README ) + +src_prepare() { + default + + # Bug #273484. + sed -i '/ldconfig/d' lib/Makefile.in || die + + epatch "${MY_PATCHES[@]}" +} + +src_configure() { + # PHP integration no longer supported in Gentoo, per Bug #582516. + econf \ + $(use_enable nls) \ + $(use_enable pam pam "$(getpam_mod_dir)") \ + --disable-php +} + +src_install() { + dodir $(getpam_mod_dir) /usr/sbin /sbin + + # Install main software and headers. + emake DESTDIR="${D}" install + emake DESTDIR="${D}" install-dev + + # Install a startup script in /etc/init.d and a conf file in /etc/conf.d + newconfd "${FILESDIR}"/ipx.confd ipx + newinitd "${FILESDIR}"/ipx.init ipx + + einstalldocs +} |