diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-02-09 22:20:03 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-02-09 23:56:22 +0100 |
commit | fef5fe4f599b5f4db975dad830806fd1099f4d7d (patch) | |
tree | 5c33096628e8eb8dd804746e18453c92bc9ceed7 /net-misc/etherdfs | |
parent | net-libs/libupnp: drop 1.14.7 (diff) | |
download | gentoo-fef5fe4f599b5f4db975dad830806fd1099f4d7d.tar.gz gentoo-fef5fe4f599b5f4db975dad830806fd1099f4d7d.tar.bz2 gentoo-fef5fe4f599b5f4db975dad830806fd1099f4d7d.zip |
net-misc/etherdfs: update EAPI 7 -> 8
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-misc/etherdfs')
-rw-r--r-- | net-misc/etherdfs/etherdfs-20180203-r2.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/net-misc/etherdfs/etherdfs-20180203-r2.ebuild b/net-misc/etherdfs/etherdfs-20180203-r2.ebuild new file mode 100644 index 000000000000..50c020777f6f --- /dev/null +++ b/net-misc/etherdfs/etherdfs-20180203-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ) +" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="tsr" + +BDEPEND="tsr? ( app-arch/unzip )" + +DOCS=( "ethersrv-linux.txt" "history.txt" ) + +PATCHES=( + "${FILESDIR}/${P}-makefile.patch" + "${FILESDIR}/${P}-musl.patch" +) + +src_prepare() { + default + + # Respect users LDFLAGS + sed -e 's/$(CFLAGS)/& $(LDFLAGS)/' -i Makefile || die +} + +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 +} |