net-misc/etherdfs - 20180203-r5 (gentoo)

Search

Package Information

Description:
An ethernet-based file system for DOS
Homepage:
http://etherdfs.sourceforge.net/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
20180203-r5 8 amd64 x86 0
View Raw Ebuild
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="ethersrv-linux"
MY_PV_TSR="0.8.3"
MY_P="${MY_PN}-${PV}"

inherit systemd toolchain-funcs

DESCRIPTION="An ethernet-based file system for DOS"
HOMEPAGE="http://etherdfs.sourceforge.net/"
SRC_URI="
	https://downloads.sourceforge.net/${PN}/${MY_P}.tar.xz
	tsr? ( https://downloads.sourceforge.net/${PN}/v${MY_PV_TSR}/${PN}.zip -> ${PN}-tsr-${MY_PV_TSR}.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
	# Don't redefine FORTIFY_SOURCE
	sed -e 's/$(CFLAGS)/& $(LDFLAGS)/' -e 's/-D_FORTIFY_SOURCE=1//g' -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_newunit "${FILESDIR}"/etherdfs.service-r1 etherdfs.service

	einstalldocs
}

USE Flags

tsr

Dependencies

BDEPEND

tsr? ( app-arch/unzip )

Manifest for 20180203-r5

Type File Size Source URLs
DIST etherdfs-tsr-0.8.3.zip 13139 bytes https://downloads.sourceforge.net/etherdfs/v0.8.3/etherdfs.zip