diff options
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/uftpd/files/uftpd.confd | 5 | ||||
-rw-r--r-- | net-ftp/uftpd/files/uftpd.init | 27 | ||||
-rw-r--r-- | net-ftp/uftpd/uftpd-2.15-r1.ebuild | 41 |
3 files changed, 73 insertions, 0 deletions
diff --git a/net-ftp/uftpd/files/uftpd.confd b/net-ftp/uftpd/files/uftpd.confd new file mode 100644 index 000000000000..356ad42f59aa --- /dev/null +++ b/net-ftp/uftpd/files/uftpd.confd @@ -0,0 +1,5 @@ +# Config file for uftpd server + +# make sure you create the root directory +UFTPD_ROOT="/uftpdroot" +UFTDP_OPTS="" diff --git a/net-ftp/uftpd/files/uftpd.init b/net-ftp/uftpd/files/uftpd.init new file mode 100644 index 000000000000..8a2c7c659a49 --- /dev/null +++ b/net-ftp/uftpd/files/uftpd.init @@ -0,0 +1,27 @@ +#!/sbin/openrc-run + +depend() { + use logger + need net +} + +checkconfig() { + if [ ! -d ${UFTPD_ROOT} ] + then + eerror "You need a UFTPD root directory" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting uftpd" + start-stop-daemon --start --exec /usr/sbin/uftpd ${UFTPD_ROOT} ${UFTPD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping uftpd" + start-stop-daemon --stop --quiet --exec /usr/sbin/uftpd + eend $? +} diff --git a/net-ftp/uftpd/uftpd-2.15-r1.ebuild b/net-ftp/uftpd/uftpd-2.15-r1.ebuild new file mode 100644 index 000000000000..c191fbf59145 --- /dev/null +++ b/net-ftp/uftpd/uftpd-2.15-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="The no nonsense TFTP/FTP server" +HOMEPAGE="https://github.com/troglobit/uftpd" +SRC_URI="https://github.com/troglobit/${PN}/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/libite-1.5 + >=dev-libs/libuev-2.2" + +DEPEND=" + ${RDEPEND} + !net-misc/uftp + !net-ftp/atftp + !net-ftp/tftp-hpa[server(+)] + test? ( + net-ftp/ftp + net-ftp/tnftp + >=net-ftp/tftp-hpa-5.2-r2[client] + )" + +src_test() { + # can't run the tests in parallel since the order matters + emake -j 1 check +} + + +src_install() { + default + newinitd "${FILESDIR}"/uftpd.init uftpd + newconfd "${FILESDIR}"/uftpd.confd uftpd +} |