Gentoo Archives: gentoo-commits

From: Joshua Kinard <kumba@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/ncpfs/
Date: Mon, 30 Apr 2018 03:40:55
Message-Id: 1525059573.b596f24ddd523ec65e6ee65583926930bd36af5f.kumba@gentoo
1 commit: b596f24ddd523ec65e6ee65583926930bd36af5f
2 Author: Joshua Kinard <kumba <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 30 03:39:01 2018 +0000
4 Commit: Joshua Kinard <kumba <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 30 03:39:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b596f24d
7
8 net-fs/ncpfs: Remove PHP support
9
10 Removed the PHP USE flag and force-disabled PHP support.
11 Also removed epatch lines for ncpfs-2.2.5-php.patch and
12 ncpfs-2.2.6-zend_function_entry.patch. See Bug #582516.
13
14 Package-Manager: Portage-2.3.31, Repoman-2.3.9
15
16 net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild | 91 ++++++++++++++++++++++++++++++++++++++
17 1 file changed, 91 insertions(+)
18
19 diff --git a/net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild b/net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild
20 new file mode 100644
21 index 00000000000..14c992bac3a
22 --- /dev/null
23 +++ b/net-fs/ncpfs/ncpfs-2.2.6-r5.ebuild
24 @@ -0,0 +1,91 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +inherit pam
31 +
32 +DESCRIPTION="Provides access to Netware services using the NCP protocol"
33 +HOMEPAGE="ftp://platan.vc.cvut.cz/pub/linux/ncpfs/"
34 +SRC_URI="ftp://platan.vc.cvut.cz/pub/linux/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
39 +IUSE="nls pam"
40 +
41 +DEPEND="
42 + nls? ( sys-devel/gettext )
43 + pam? ( virtual/pam )"
44 +
45 +RDEPEND="${DEPEND}"
46 +
47 +MY_PATCHES=(
48 + # Build fixes.
49 + "${FILESDIR}"/${P}-gcc4.patch
50 + "${FILESDIR}"/${P}-missing-includes.patch
51 +
52 + # Add a patch to fix multiple vulnerabilities.
53 + # CVE-2010-0788, CVE-2010-0790, & CVE-2010-0791.
54 + # http://seclists.org/fulldisclosure/2010/Mar/122
55 + "${FILESDIR}"/${P}-multiple-vulns.patch
56 +
57 + # Add a patch that removes the __attribute__((packed)); directive
58 + # from several struct members in include/ncp/ncplib.h. This will
59 + # cut down on a large number of compile warnings generated by modern
60 + # gcc releases.
61 + "${FILESDIR}"/${P}-remove-packed-attrib.patch
62 +
63 + # Misc patches borrowed from Mageia.
64 + "${FILESDIR}"/${P}-align-fix.patch
65 + "${FILESDIR}"/${P}-getuid-fix.patch
66 + "${FILESDIR}"/${P}-pam_ncp_auth-fix.patch
67 + "${FILESDIR}"/${P}-servername-array-fix.patch
68 +
69 + # Misc patches borrowed from Debian.
70 + # Fixes Bug #497278
71 + "${FILESDIR}"/${P}-drop-kernel-check.patch
72 + "${FILESDIR}"/${P}-drop-mtab-support.patch
73 + "${FILESDIR}"/${P}-no-suid-root.patch
74 + "${FILESDIR}"/${P}-remove-libncp_atomic-header.patch
75 +
76 + # Support LDFLAGS.
77 + "${FILESDIR}"/${P}-ldflags-support.patch
78 +
79 + # Bug 446696. This might need re-diffing if additional Makefile
80 + # fixes are added.
81 + "${FILESDIR}"/${P}-makefile-fix-soname-link.patch
82 +)
83 +
84 +DOCS=( FAQ README )
85 +
86 +src_prepare() {
87 + default
88 +
89 + # Bug #273484.
90 + sed -i '/ldconfig/d' lib/Makefile.in || die
91 +
92 + epatch "${MY_PATCHES[@]}"
93 +}
94 +
95 +src_configure() {
96 + # PHP integration no longer supported in Gentoo, per Bug #582516.
97 + econf \
98 + $(use_enable nls) \
99 + $(use_enable pam pam "$(getpam_mod_dir)") \
100 + --disable-php
101 +}
102 +
103 +src_install() {
104 + dodir $(getpam_mod_dir) /usr/sbin /sbin
105 +
106 + # Install main software and headers.
107 + emake DESTDIR="${D}" install
108 + emake DESTDIR="${D}" install-dev
109 +
110 + # Install a startup script in /etc/init.d and a conf file in /etc/conf.d
111 + newconfd "${FILESDIR}"/ipx.confd ipx
112 + newinitd "${FILESDIR}"/ipx.init ipx
113 +
114 + einstalldocs
115 +}