From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D38AD138334 for ; Fri, 27 Dec 2019 14:10:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E488E08FF; Fri, 27 Dec 2019 14:10:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA7BBE08FF for ; Fri, 27 Dec 2019 14:10:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 86C0634DC02 for ; Fri, 27 Dec 2019 14:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8CB1E34 for ; Fri, 27 Dec 2019 14:10:44 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1577455645.87194a48f419b2fe6abdbe5ed1a6d0e3d9de46ba.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/etherdfs/files/, net-misc/etherdfs/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/etherdfs/Manifest net-misc/etherdfs/etherdfs-20180203.ebuild net-misc/etherdfs/files/etherdfs-20180203-makefile.patch net-misc/etherdfs/files/etherdfs.confd net-misc/etherdfs/files/etherdfs.initd net-misc/etherdfs/files/etherdfs.service net-misc/etherdfs/metadata.xml X-VCS-Directories: net-misc/etherdfs/ net-misc/etherdfs/files/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 87194a48f419b2fe6abdbe5ed1a6d0e3d9de46ba X-VCS-Branch: master Date: Fri, 27 Dec 2019 14:10:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e7efbb7-a61d-49bd-9f2a-b87ba9a672dd X-Archives-Hash: b4893c9bb269366d0453f7531b448c2d commit: 87194a48f419b2fe6abdbe5ed1a6d0e3d9de46ba Author: Conrad Kostecki gentoo org> AuthorDate: Fri Dec 27 01:19:05 2019 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Fri Dec 27 14:07:25 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87194a48 net-misc/etherdfs: New package EtherDFS is an 'installable filesystem' TSR for DOS. It maps a drive from a remote computer to a local drive letter, using raw ethernet frames to communicate. Signed-off-by: Conrad Kostecki gentoo.org> net-misc/etherdfs/Manifest | 2 + net-misc/etherdfs/etherdfs-20180203.ebuild | 53 ++++++++++++++++++++++ .../files/etherdfs-20180203-makefile.patch | 14 ++++++ net-misc/etherdfs/files/etherdfs.confd | 9 ++++ net-misc/etherdfs/files/etherdfs.initd | 11 +++++ net-misc/etherdfs/files/etherdfs.service | 10 ++++ net-misc/etherdfs/metadata.xml | 19 ++++++++ 7 files changed, 118 insertions(+) diff --git a/net-misc/etherdfs/Manifest b/net-misc/etherdfs/Manifest new file mode 100644 index 00000000000..b4852cf947e --- /dev/null +++ b/net-misc/etherdfs/Manifest @@ -0,0 +1,2 @@ +DIST etherdfs-20180203.zip 13081 BLAKE2B 53b0d12c272aa8a64a1980b6c4aae8c6789647026590ee948bc4d84be265479a816d8ae4df033a9a8be4038eb10b934b6ee8d188bf88e47c21f2e81123a572f0 SHA512 c254647fb35b7456b08eb27e6bc6b339d65c55ffd28fdc658f54bb1346a94a7056959a6e3e0b1a97add9e7919a224a0cef831ee14fc19219885274c9649a3439 +DIST ethersrv-linux-20180203.tar.xz 18160 BLAKE2B 45293b596489a290146bfb5ec5ca89c06a01bd0377cb29f33f604ac84c3d1d8f18f09058dded28e38f611a19d690c0a190ec38d45498cacd90a4cbff841115e1 SHA512 522f5ce5353c6eabaac2106d43d09cf341a2da96e56ffb06c5b2d705a997986117246cf3cb2b4a4e5b2c6f1caf96dfd68d1ddc56bb6db8140aa3761c7e6e6f7e diff --git a/net-misc/etherdfs/etherdfs-20180203.ebuild b/net-misc/etherdfs/etherdfs-20180203.ebuild new file mode 100644 index 00000000000..5a35f39a6a7 --- /dev/null +++ b/net-misc/etherdfs/etherdfs-20180203.ebuild @@ -0,0 +1,53 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="ethersrv-linux" +MY_PV_TSR="0.8.2" +MY_P="${MY_PN}-${PV}" + +inherit systemd toolchain-funcs + +DESCRIPTION="An ethernet-based file system for DOS" +HOMEPAGE="http://etherdfs.sourceforge.net/" +SRC_URI=" + mirror://sourceforge/${PN}/${MY_P}.tar.xz + tsr? ( mirror://sourceforge/${PN}/v${MY_PV_TSR}/${PN}.zip -> ${P}.zip ) +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tsr" + +BDEPEND="tsr? ( app-arch/unzip )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) + +DOCS=( "ethersrv-linux.txt" "history.txt" ) + +src_compile() { + tc-export CC + + default +} + +src_install() { + dobin ethersrv-linux + + if use tsr; then + insinto /usr/share/etherdfs + newins ../ETHERDFS.EXE etherdfs.exe + + DOCS+=( "../ETHERDFS.TXT" "../HISTORY.TXT" ) + fi + + newinitd "${FILESDIR}"/etherdfs.initd etherdfs + newconfd "${FILESDIR}"/etherdfs.confd etherdfs + systemd_dounit "${FILESDIR}"/etherdfs.service + + einstalldocs +} diff --git a/net-misc/etherdfs/files/etherdfs-20180203-makefile.patch b/net-misc/etherdfs/files/etherdfs-20180203-makefile.patch new file mode 100644 index 00000000000..1cbf51cb65f --- /dev/null +++ b/net-misc/etherdfs/files/etherdfs-20180203-makefile.patch @@ -0,0 +1,14 @@ +--- a/Makefile 2018-02-03 21:21:51.518384435 +0100 ++++ b/Makefile 2019-12-27 01:23:37.030323263 +0100 +@@ -5,9 +5,9 @@ + # Copyright (C) 2017, 2018 Mateusz Viste + # + +-CFLAGS = -O2 -Wall -std=gnu89 -pedantic -Wextra -s -Wno-long-long -Wno-variadic-macros -Wformat-security -D_FORTIFY_SOURCE=1 ++CFLAGS += -Wall -std=gnu89 -pedantic -Wextra -Wno-long-long -Wno-variadic-macros -Wformat-security -D_FORTIFY_SOURCE=1 + +-CC = gcc ++CC ?= gcc + + ethersrv-linux: ethersrv-linux.c fs.c fs.h lock.c lock.h debug.h + $(CC) ethersrv-linux.c fs.c lock.c -o ethersrv-linux $(CFLAGS) diff --git a/net-misc/etherdfs/files/etherdfs.confd b/net-misc/etherdfs/files/etherdfs.confd new file mode 100644 index 00000000000..1a5a116e841 --- /dev/null +++ b/net-misc/etherdfs/files/etherdfs.confd @@ -0,0 +1,9 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Network interface, which should be used for serving mapped drives +INTERFACE="lo" + +# Storage directories, which are being mapped and served to the client. +# Multiple directories can be specified, by whitespace separated. +STORAGEDIR="/tmp" diff --git a/net-misc/etherdfs/files/etherdfs.initd b/net-misc/etherdfs/files/etherdfs.initd new file mode 100644 index 00000000000..dd3b0b27d5a --- /dev/null +++ b/net-misc/etherdfs/files/etherdfs.initd @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="etherdfs daemon" +command="/usr/bin/ethersrv-linux" +command_args="${INTERFACE} ${STORAGEDIR}" + +depend() { + need net +} diff --git a/net-misc/etherdfs/files/etherdfs.service b/net-misc/etherdfs/files/etherdfs.service new file mode 100644 index 00000000000..d5a6ed474a6 --- /dev/null +++ b/net-misc/etherdfs/files/etherdfs.service @@ -0,0 +1,10 @@ +[Unit] +Description=etherdfs daemon +After=network-online.target + +[Service] +EnvironmentFile=/etc/conf.d/etherdfs +ExecStart=/usr/bin/ethersrv-linux ${INTERFACE} ${STORAGEDIR} + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/etherdfs/metadata.xml b/net-misc/etherdfs/metadata.xml new file mode 100644 index 00000000000..e9a40ff92f9 --- /dev/null +++ b/net-misc/etherdfs/metadata.xml @@ -0,0 +1,19 @@ + + + + + conikost@gentoo.org + Conrad Kostecki + + + EtherDFS is an 'installable filesystem' TSR for DOS. + It maps a drive from a remote computer + to a local drive letter, using raw ethernet frames to communicate. + + + Build the TSR program for DOS, which acts as a client. + + + etherdfs + +