1 |
commit: 87194a48f419b2fe6abdbe5ed1a6d0e3d9de46ba |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 27 01:19:05 2019 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 27 14:07:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87194a48 |
7 |
|
8 |
net-misc/etherdfs: New package |
9 |
|
10 |
EtherDFS is an 'installable filesystem' TSR for DOS. |
11 |
It maps a drive from a remote computer |
12 |
to a local drive letter, using raw ethernet frames to communicate. |
13 |
|
14 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
15 |
|
16 |
net-misc/etherdfs/Manifest | 2 + |
17 |
net-misc/etherdfs/etherdfs-20180203.ebuild | 53 ++++++++++++++++++++++ |
18 |
.../files/etherdfs-20180203-makefile.patch | 14 ++++++ |
19 |
net-misc/etherdfs/files/etherdfs.confd | 9 ++++ |
20 |
net-misc/etherdfs/files/etherdfs.initd | 11 +++++ |
21 |
net-misc/etherdfs/files/etherdfs.service | 10 ++++ |
22 |
net-misc/etherdfs/metadata.xml | 19 ++++++++ |
23 |
7 files changed, 118 insertions(+) |
24 |
|
25 |
diff --git a/net-misc/etherdfs/Manifest b/net-misc/etherdfs/Manifest |
26 |
new file mode 100644 |
27 |
index 00000000000..b4852cf947e |
28 |
--- /dev/null |
29 |
+++ b/net-misc/etherdfs/Manifest |
30 |
@@ -0,0 +1,2 @@ |
31 |
+DIST etherdfs-20180203.zip 13081 BLAKE2B 53b0d12c272aa8a64a1980b6c4aae8c6789647026590ee948bc4d84be265479a816d8ae4df033a9a8be4038eb10b934b6ee8d188bf88e47c21f2e81123a572f0 SHA512 c254647fb35b7456b08eb27e6bc6b339d65c55ffd28fdc658f54bb1346a94a7056959a6e3e0b1a97add9e7919a224a0cef831ee14fc19219885274c9649a3439 |
32 |
+DIST ethersrv-linux-20180203.tar.xz 18160 BLAKE2B 45293b596489a290146bfb5ec5ca89c06a01bd0377cb29f33f604ac84c3d1d8f18f09058dded28e38f611a19d690c0a190ec38d45498cacd90a4cbff841115e1 SHA512 522f5ce5353c6eabaac2106d43d09cf341a2da96e56ffb06c5b2d705a997986117246cf3cb2b4a4e5b2c6f1caf96dfd68d1ddc56bb6db8140aa3761c7e6e6f7e |
33 |
|
34 |
diff --git a/net-misc/etherdfs/etherdfs-20180203.ebuild b/net-misc/etherdfs/etherdfs-20180203.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..5a35f39a6a7 |
37 |
--- /dev/null |
38 |
+++ b/net-misc/etherdfs/etherdfs-20180203.ebuild |
39 |
@@ -0,0 +1,53 @@ |
40 |
+# Copyright 2019 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+ |
45 |
+MY_PN="ethersrv-linux" |
46 |
+MY_PV_TSR="0.8.2" |
47 |
+MY_P="${MY_PN}-${PV}" |
48 |
+ |
49 |
+inherit systemd toolchain-funcs |
50 |
+ |
51 |
+DESCRIPTION="An ethernet-based file system for DOS" |
52 |
+HOMEPAGE="http://etherdfs.sourceforge.net/" |
53 |
+SRC_URI=" |
54 |
+ mirror://sourceforge/${PN}/${MY_P}.tar.xz |
55 |
+ tsr? ( mirror://sourceforge/${PN}/v${MY_PV_TSR}/${PN}.zip -> ${P}.zip ) |
56 |
+" |
57 |
+ |
58 |
+LICENSE="MIT" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+IUSE="tsr" |
62 |
+ |
63 |
+BDEPEND="tsr? ( app-arch/unzip )" |
64 |
+ |
65 |
+S="${WORKDIR}/${MY_P}" |
66 |
+ |
67 |
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) |
68 |
+ |
69 |
+DOCS=( "ethersrv-linux.txt" "history.txt" ) |
70 |
+ |
71 |
+src_compile() { |
72 |
+ tc-export CC |
73 |
+ |
74 |
+ default |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ dobin ethersrv-linux |
79 |
+ |
80 |
+ if use tsr; then |
81 |
+ insinto /usr/share/etherdfs |
82 |
+ newins ../ETHERDFS.EXE etherdfs.exe |
83 |
+ |
84 |
+ DOCS+=( "../ETHERDFS.TXT" "../HISTORY.TXT" ) |
85 |
+ fi |
86 |
+ |
87 |
+ newinitd "${FILESDIR}"/etherdfs.initd etherdfs |
88 |
+ newconfd "${FILESDIR}"/etherdfs.confd etherdfs |
89 |
+ systemd_dounit "${FILESDIR}"/etherdfs.service |
90 |
+ |
91 |
+ einstalldocs |
92 |
+} |
93 |
|
94 |
diff --git a/net-misc/etherdfs/files/etherdfs-20180203-makefile.patch b/net-misc/etherdfs/files/etherdfs-20180203-makefile.patch |
95 |
new file mode 100644 |
96 |
index 00000000000..1cbf51cb65f |
97 |
--- /dev/null |
98 |
+++ b/net-misc/etherdfs/files/etherdfs-20180203-makefile.patch |
99 |
@@ -0,0 +1,14 @@ |
100 |
+--- a/Makefile 2018-02-03 21:21:51.518384435 +0100 |
101 |
++++ b/Makefile 2019-12-27 01:23:37.030323263 +0100 |
102 |
+@@ -5,9 +5,9 @@ |
103 |
+ # Copyright (C) 2017, 2018 Mateusz Viste |
104 |
+ # |
105 |
+ |
106 |
+-CFLAGS = -O2 -Wall -std=gnu89 -pedantic -Wextra -s -Wno-long-long -Wno-variadic-macros -Wformat-security -D_FORTIFY_SOURCE=1 |
107 |
++CFLAGS += -Wall -std=gnu89 -pedantic -Wextra -Wno-long-long -Wno-variadic-macros -Wformat-security -D_FORTIFY_SOURCE=1 |
108 |
+ |
109 |
+-CC = gcc |
110 |
++CC ?= gcc |
111 |
+ |
112 |
+ ethersrv-linux: ethersrv-linux.c fs.c fs.h lock.c lock.h debug.h |
113 |
+ $(CC) ethersrv-linux.c fs.c lock.c -o ethersrv-linux $(CFLAGS) |
114 |
|
115 |
diff --git a/net-misc/etherdfs/files/etherdfs.confd b/net-misc/etherdfs/files/etherdfs.confd |
116 |
new file mode 100644 |
117 |
index 00000000000..1a5a116e841 |
118 |
--- /dev/null |
119 |
+++ b/net-misc/etherdfs/files/etherdfs.confd |
120 |
@@ -0,0 +1,9 @@ |
121 |
+# Copyright 1999-2019 Gentoo Authors |
122 |
+# Distributed under the terms of the GNU General Public License v2 |
123 |
+ |
124 |
+# Network interface, which should be used for serving mapped drives |
125 |
+INTERFACE="lo" |
126 |
+ |
127 |
+# Storage directories, which are being mapped and served to the client. |
128 |
+# Multiple directories can be specified, by whitespace separated. |
129 |
+STORAGEDIR="/tmp" |
130 |
|
131 |
diff --git a/net-misc/etherdfs/files/etherdfs.initd b/net-misc/etherdfs/files/etherdfs.initd |
132 |
new file mode 100644 |
133 |
index 00000000000..dd3b0b27d5a |
134 |
--- /dev/null |
135 |
+++ b/net-misc/etherdfs/files/etherdfs.initd |
136 |
@@ -0,0 +1,11 @@ |
137 |
+#!/sbin/openrc-run |
138 |
+# Copyright 2019 Gentoo Authors |
139 |
+# Distributed under the terms of the GNU General Public License v2 |
140 |
+ |
141 |
+name="etherdfs daemon" |
142 |
+command="/usr/bin/ethersrv-linux" |
143 |
+command_args="${INTERFACE} ${STORAGEDIR}" |
144 |
+ |
145 |
+depend() { |
146 |
+ need net |
147 |
+} |
148 |
|
149 |
diff --git a/net-misc/etherdfs/files/etherdfs.service b/net-misc/etherdfs/files/etherdfs.service |
150 |
new file mode 100644 |
151 |
index 00000000000..d5a6ed474a6 |
152 |
--- /dev/null |
153 |
+++ b/net-misc/etherdfs/files/etherdfs.service |
154 |
@@ -0,0 +1,10 @@ |
155 |
+[Unit] |
156 |
+Description=etherdfs daemon |
157 |
+After=network-online.target |
158 |
+ |
159 |
+[Service] |
160 |
+EnvironmentFile=/etc/conf.d/etherdfs |
161 |
+ExecStart=/usr/bin/ethersrv-linux ${INTERFACE} ${STORAGEDIR} |
162 |
+ |
163 |
+[Install] |
164 |
+WantedBy=multi-user.target |
165 |
|
166 |
diff --git a/net-misc/etherdfs/metadata.xml b/net-misc/etherdfs/metadata.xml |
167 |
new file mode 100644 |
168 |
index 00000000000..e9a40ff92f9 |
169 |
--- /dev/null |
170 |
+++ b/net-misc/etherdfs/metadata.xml |
171 |
@@ -0,0 +1,19 @@ |
172 |
+<?xml version="1.0" encoding="UTF-8"?> |
173 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
174 |
+<pkgmetadata> |
175 |
+ <maintainer type="person"> |
176 |
+ <email>conikost@g.o</email> |
177 |
+ <name>Conrad Kostecki</name> |
178 |
+ </maintainer> |
179 |
+ <longdescription> |
180 |
+ EtherDFS is an 'installable filesystem' TSR for DOS. |
181 |
+ It maps a drive from a remote computer |
182 |
+ to a local drive letter, using raw ethernet frames to communicate. |
183 |
+ </longdescription> |
184 |
+ <use> |
185 |
+ <flag name="tsr">Build the TSR program for DOS, which acts as a client.</flag> |
186 |
+ </use> |
187 |
+ <upstream> |
188 |
+ <remote-id type="sourceforge">etherdfs</remote-id> |
189 |
+ </upstream> |
190 |
+</pkgmetadata> |