1 |
commit: 80bbda5bfac7dd4b6727f17b1bfbed04bbf773f1 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 25 11:17:11 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 25 11:17:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80bbda5b |
7 |
|
8 |
net-misc/etherdfs: respect users LDFLAGS |
9 |
|
10 |
Closes: https://bugs.gentoo.org/725236 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-misc/etherdfs/etherdfs-20180203-r1.ebuild | 60 +++++++++++++++++++++++++++ |
15 |
1 file changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/etherdfs/etherdfs-20180203-r1.ebuild b/net-misc/etherdfs/etherdfs-20180203-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..d5a7bfb7698 |
20 |
--- /dev/null |
21 |
+++ b/net-misc/etherdfs/etherdfs-20180203-r1.ebuild |
22 |
@@ -0,0 +1,60 @@ |
23 |
+# Copyright 2019-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+MY_PN="ethersrv-linux" |
29 |
+MY_PV_TSR="0.8.2" |
30 |
+MY_P="${MY_PN}-${PV}" |
31 |
+ |
32 |
+inherit systemd toolchain-funcs |
33 |
+ |
34 |
+DESCRIPTION="An ethernet-based file system for DOS" |
35 |
+HOMEPAGE="http://etherdfs.sourceforge.net/" |
36 |
+SRC_URI=" |
37 |
+ mirror://sourceforge/${PN}/${MY_P}.tar.xz |
38 |
+ tsr? ( mirror://sourceforge/${PN}/v${MY_PV_TSR}/${PN}.zip -> ${P}.zip ) |
39 |
+" |
40 |
+ |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="tsr" |
45 |
+ |
46 |
+BDEPEND="tsr? ( app-arch/unzip )" |
47 |
+ |
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+ |
50 |
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) |
51 |
+ |
52 |
+DOCS=( "ethersrv-linux.txt" "history.txt" ) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ # Respect users LDFLAGS |
58 |
+ sed -e 's/$(CFLAGS)/& $(LDFLAGS)/' -i Makefile || die |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ tc-export CC |
63 |
+ |
64 |
+ default |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ dobin ethersrv-linux |
69 |
+ |
70 |
+ if use tsr; then |
71 |
+ insinto /usr/share/etherdfs |
72 |
+ newins ../ETHERDFS.EXE etherdfs.exe |
73 |
+ |
74 |
+ DOCS+=( "../ETHERDFS.TXT" "../HISTORY.TXT" ) |
75 |
+ fi |
76 |
+ |
77 |
+ newinitd "${FILESDIR}"/etherdfs.initd etherdfs |
78 |
+ newconfd "${FILESDIR}"/etherdfs.confd etherdfs |
79 |
+ systemd_dounit "${FILESDIR}"/etherdfs.service |
80 |
+ |
81 |
+ einstalldocs |
82 |
+} |