Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ncp/files/, net-misc/ncp/
Date: Thu, 17 Sep 2020 20:35:18
Message-Id: 1600374908.ae7177032a6ae2e40d4d70d6d74beac411165732.sam@gentoo
1 commit: ae7177032a6ae2e40d4d70d6d74beac411165732
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 18 16:17:36 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 17 20:35:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae717703
7
8 net-misc/ncp: remove diet use flag, fix bug #737254
9
10 Package-Manager: Portage-3.0.2, Repoman-2.3.23
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Closes: https://bugs.gentoo.org/737254
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-misc/ncp/files/ncp-1.2.4-fix-makefile.patch | 16 ++++++++++
16 net-misc/ncp/metadata.xml | 1 -
17 net-misc/ncp/ncp-1.2.4-r2.ebuild | 40 +++++++++++++++++++++++++
18 3 files changed, 56 insertions(+), 1 deletion(-)
19
20 diff --git a/net-misc/ncp/files/ncp-1.2.4-fix-makefile.patch b/net-misc/ncp/files/ncp-1.2.4-fix-makefile.patch
21 new file mode 100644
22 index 00000000000..54608a66541
23 --- /dev/null
24 +++ b/net-misc/ncp/files/ncp-1.2.4-fix-makefile.patch
25 @@ -0,0 +1,16 @@
26 +Never strip executable
27 +
28 +Patch by Michael Mair-Keimberger
29 +
30 +--- ncp-1.2.4/GNUmakefile 2005-05-13 19:17:17.000000000 +0200
31 ++++ ncp-1.2.4-ng/GNUmakefile 2020-09-04 20:08:50.399902892 +0200
32 +@@ -53,9 +53,6 @@
33 +
34 + ncp: ncp.o libsocket
35 + $(CC) $< -o $@ -I. $(CFLAGS) $(LDFLAGS) $(LDLIBS) `cat libsocket`
36 +-ifeq ($(DEBUG),)
37 +- strip -R .note -R .comment ncp || strip ncp
38 +-endif
39 +
40 + install:
41 + install -d $(PREFIX)/bin $(PREFIX)/man/man1
42
43 diff --git a/net-misc/ncp/metadata.xml b/net-misc/ncp/metadata.xml
44 index 874363d1925..17fb58cb0b1 100644
45 --- a/net-misc/ncp/metadata.xml
46 +++ b/net-misc/ncp/metadata.xml
47 @@ -12,5 +12,4 @@
48 <longdescription lang="en">
49 "ncp" is a utility for copying files in a LAN. It has absolutely no security or integrity checking, no throttling, no features, except one: you don't have to type the coordinates of your peer.
50 </longdescription>
51 - <use><flag name="diet">Compile against <pkg>dev-libs/dietlibc</pkg></flag></use>
52 </pkgmetadata>
53
54 diff --git a/net-misc/ncp/ncp-1.2.4-r2.ebuild b/net-misc/ncp/ncp-1.2.4-r2.ebuild
55 new file mode 100644
56 index 00000000000..cb6d5545c43
57 --- /dev/null
58 +++ b/net-misc/ncp/ncp-1.2.4-r2.ebuild
59 @@ -0,0 +1,40 @@
60 +# Copyright 1999-2020 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=7
64 +
65 +inherit toolchain-funcs
66 +
67 +DESCRIPTION="Utility for copying files in a LAN (npoll, npush)"
68 +HOMEPAGE="https://www.fefe.de/ncp/"
69 +SRC_URI="https://dl.fefe.de/${P}.tar.bz2"
70 +
71 +LICENSE="public-domain" # mail from author, bug 446540
72 +SLOT="0"
73 +KEYWORDS="~amd64 ~x86"
74 +
75 +DEPEND=">=dev-libs/libowfat-0.28-r1[-diet]"
76 +
77 +PATCHES=( "${FILESDIR}/${P}-fix-makefile.patch" )
78 +
79 +src_prepare() {
80 + default
81 + rm Makefile || die
82 +}
83 +
84 +src_compile() {
85 + emake \
86 + CC="$(tc-getCC)" \
87 + CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
88 + LDFLAGS="${LDFLAGS}" \
89 + STRIP="#"
90 +}
91 +
92 +src_install() {
93 + dobin ${PN}
94 + dosym ${PN} /usr/bin/npoll
95 + dosym ${PN} /usr/bin/npush
96 +
97 + doman ncp.1 npush.1
98 + dodoc NEWS
99 +}