diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/uftp |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/uftp')
-rw-r--r-- | net-misc/uftp/Manifest | 13 | ||||
-rw-r--r-- | net-misc/uftp/files/logrotate | 16 | ||||
-rw-r--r-- | net-misc/uftp/files/uftp-3.7_makefile.patch | 79 | ||||
-rw-r--r-- | net-misc/uftp/files/uftpd.conf | 8 | ||||
-rw-r--r-- | net-misc/uftp/files/uftpd.init | 23 | ||||
-rw-r--r-- | net-misc/uftp/files/uftpproxyd.conf | 5 | ||||
-rw-r--r-- | net-misc/uftp/files/uftpproxyd.init | 23 | ||||
-rw-r--r-- | net-misc/uftp/metadata.xml | 15 | ||||
-rw-r--r-- | net-misc/uftp/uftp-3.7.1.ebuild | 45 | ||||
-rw-r--r-- | net-misc/uftp/uftp-3.7.ebuild | 45 |
10 files changed, 272 insertions, 0 deletions
diff --git a/net-misc/uftp/Manifest b/net-misc/uftp/Manifest new file mode 100644 index 000000000000..2a763c9582ac --- /dev/null +++ b/net-misc/uftp/Manifest @@ -0,0 +1,13 @@ +AUX logrotate 166 SHA256 4ef8569348608157260604a75a7bf919cb2c06a78e3e617cb641b9a983d2e0ea SHA512 77c7b0e17123432f39d43048d7c51b88b20cb5ef297d36e2be50f8816f956dda6ca300fa3053756ac9f9480699cec9c28fb5ad77e81eeac667ace55dbc61e88f WHIRLPOOL ade858ce8c191a5a3ea106c1df1080c05975452497aeeccdca505e74b655d8beba27394d351ad2b10cb1d88e879a3be69bcf4e07bd7201b232f259d51eb1aa20 +AUX uftp-3.7_makefile.patch 2037 SHA256 1d6c2c28fb531671f32e374bf70c55410aeb9ee3e1ad479c228442c3678c13e5 SHA512 1fc5109626a8a46bd9bd05348cbfc957a524827c5f165f1f991f7887319f735ae90dab6bad91a96d7c6bae7e2c07e26ebcbd91b9a595b97d8b1b6d79e496e899 WHIRLPOOL 8066ff72c2859635d2811340eef85b71fafa394d9d279cdc80324b32454a057d9f697d0fb56fc3bbff918d1d6094fb4eb6c9469cddab3c81781d58fc4ced1a2d +AUX uftpd.conf 169 SHA256 d7822dfb35072db3a76d93cbd7761e9ca723772176c5e8ded26f731535f9b836 SHA512 732a3e7f5eb1eec609f05d6c075ea11b16bdd9abcdc9528dacf7fbc148e2249306226fd5975b39956758d0b237b0d59b97e7c602451639fe7db19c43ae4f39f9 WHIRLPOOL daf25257e52c53b6c03dee42f3090145deb33330fb83a0da01578f077cf74f911a85a7680191c654c6a61f2dacebb326b30273cfcb3a284e356ee9b8f26fdea0 +AUX uftpd.init 518 SHA256 0aeaa345001e987c3c0c8a8aa06314ead268ccc1663a21555109492cba03543b SHA512 4008611d6a8f7e4c960269526761b9c5b2b7446bf1795983a62fb5fc12b4525ecd2e0e42ff2fb7d937e427d9d77834a2b6836db1242269fad7b09f92952c53b8 WHIRLPOOL 72cc9c9c418d68d53b6b14e1ee242d077501103cc8eedfa5699917de7f6baf908a7cc4e5773896d1099c14e2f455e1b6799d2867083b7b07072f4b27d4652d8c +AUX uftpproxyd.conf 121 SHA256 90f9956120b1139d8e7dc554db5e5100b587f9d893f6650b35ac6ab6c54a3c5f SHA512 c61441d048ce99a50b5224cea7c4f9f1a2532fff8083a9a71e6099a98cba1fe79b43825188034efd402b47ac28bbe341827cb21872c17550419db36a8da7bb35 WHIRLPOOL f47ed7e515bb13cccffe05374525fbb6c192fa1aefc29021244eecdaad71d794d776c1a45954cd058d3e45745ce3ebab851c17f86031b9beedb37b0a90901215 +AUX uftpproxyd.init 522 SHA256 bc312e076a3b3c5c867df7ba8e0f51bfc40c2bf7c14ef817905b2dfb1febd450 SHA512 2d69f0b84750cb62fb96b7fc7a042fe54b6f658074f9c4c49a2bf4957507fce333862ae95fd0498e60240490ce44cd299b8fba851d4d7c9a67dcdf1e7f29d7f5 WHIRLPOOL 1d9e49607b82c1b1036d4e753de249721589480d2e9fdd9e33a7c81172a83bf5a0aea2efe022c391fb5e728335ffdf0b431216f12805c1c2a80f2dd0318d2c5b +DIST uftp-3.7.1.tar 849920 SHA256 9010317b53b68dc67408077d56d02becbe2e2a1027d4d27df5378c99fee27433 SHA512 93fefe1d4c5310bfa6470a78011e63aea8cc9cf59a73ea24920d3ad8c835476bbc410b3669ee79c847eba7d21d61f600e09529d5e6f2ed24076f663a34d99c15 WHIRLPOOL 7a4cbd8092ef1439ea4c11b96c5eb2504968f689f0a099208e0a0ba066e72394aa5fcbfb6ca9b9f382702b9631fc27cf80293f13d5e07d8b08818d39a371b1c9 +DIST uftp-3.7.tar 849920 SHA256 c5da4236e57dc152bc8dbb27110a4f504c2525ec079fa285c4f9309a798eca26 SHA512 8e154ea196b34995bc3831c375237a4d98f0627ca79fb6714b66763f64748810e5151efdc40773044a127a0e875ffcc8b985e6f7babd359ae38280a219c4d610 WHIRLPOOL 0a46c5588027ce67777fdfec3b45a27d97c4b95c9cbba9ebdb7704cee5d28b2db29e499ae1f3fcb5d29dec99ec54ade86a1bcaa5f5b8abc178e38768d910ab8d +EBUILD uftp-3.7.1.ebuild 1079 SHA256 4373816079511c68b820a08baa19a68518ec52187c7229a4ee469f4011fb33a9 SHA512 29499af4e9c9747f56686fd9f39cd79f4af9dccb19560b1470a431a3a6ba1943e60eebc9a6eef760e0e82448474fc0e9e6da757503b4090e8ef3e623a0634ee9 WHIRLPOOL 729042c45c5e8773ee0772575ee701b5973b040bbf90b7c637e63d03caec4980d8112b4ac9679d2b6b764353e3b0be0a354c06ba0e6d56eb4bf7aef651fb5de3 +EBUILD uftp-3.7.ebuild 1074 SHA256 681df0f1465ad2b789b50c7cded12acd411334b2d5b16847c6386dd61395374d SHA512 abe662c5b454aa24d3b001b5fe1b5ac905573a03bd00a75607bbdacd31f98c83da7beb4b5b3b4965982b756c9cffdc4e9369f67463f20ce59b856d4d03250d57 WHIRLPOOL 2d2024b211eb17313d24fefcb904cf415fb945dd415560733d0f644f61990c3c2d4898bd8f55293de2996b9ebd9a4c1e18355daadb9621f1205419e2baf9220a +MISC ChangeLog 2752 SHA256 fbb4750112e16dcb85a02738fed802f4aab38547677742fb128d30d38ff1a423 SHA512 980f785ef1aef1b6930c1498b46cc9f780857ee03be72e1ef65ba690f15f6dffdc076d208ffa83773b53ee04d56ec2a78ac17b208cfcec322d5b895599608d04 WHIRLPOOL a9b233ba5b2302fea69a179f09d8ca123e42c37789601fbd1a7b3ed2cb82f1fa2d364f9255061bb37ee9d28ac4cb274918d6ff3269b7b42f0163a0201cedfc68 +MISC ChangeLog-2015 669 SHA256 9a0bb9a4202dd9463b33f425a6ba4168163479c9814b1e582d04679d529b181e SHA512 272130205249e5c37dfb5a8ecfbbec24a2528dc2c8ac8e2c9880615c92e963743b072bff714b9edafe41048c4b98dd65d8bf10471d17cd61e29533d015afed10 WHIRLPOOL 2df904a54f9430428e35ea3aa7f0f942d8d028b327afcd04378be7b2ec1036308a3efcaaec20e5f8d17db2502c9b69692e743cc35dc28e08bdd01ac40a4b790e +MISC metadata.xml 433 SHA256 cf5df0e99a53a8f2ca8e1d8f86291f8a6b66289002ce674b97a62a1fa01fa9c0 SHA512 7e63ff9bed7a90bc94ac2f0441b6f089e5f38d08afb47c5513b09bb6ee2b5fca756a20401d622548c129b540a0b93dba882c38e5ac69dcca9ec72e4c4c9e7686 WHIRLPOOL 4f4bb8a542268c5f791a0e2265525d64cc807bf79ef56513f6d7cf222a148267fb23d2ca8dcd35cd0174ec130d3b68058f872fedb7ba0f13f1e1c41ef52fec85 diff --git a/net-misc/uftp/files/logrotate b/net-misc/uftp/files/logrotate new file mode 100644 index 000000000000..8dd18f7c2aa9 --- /dev/null +++ b/net-misc/uftp/files/logrotate @@ -0,0 +1,16 @@ +# +# /etc/logrotate.d/uftpd +# +/var/log/uftpd.log { + daily + rotate 5 + notifempty + missingok +} + +/var/log/uftpproxyd.log { + daily + rotate 5 + notifempty + missingok +} diff --git a/net-misc/uftp/files/uftp-3.7_makefile.patch b/net-misc/uftp/files/uftp-3.7_makefile.patch new file mode 100644 index 000000000000..81afe8b9baae --- /dev/null +++ b/net-misc/uftp/files/uftp-3.7_makefile.patch @@ -0,0 +1,79 @@ +diff -Nuar uftp-3.7.orig//makefile uftp-3.7/makefile +--- uftp-3.7.orig//makefile 2012-08-10 17:00:22.566403478 +0600 ++++ uftp-3.7/makefile 2012-08-10 17:04:47.523386683 +0600 +@@ -39,25 +39,26 @@ + endif + + # defaults +-CC = gcc +-OPTIONS=-g -Wall $(ENC_OPTS) ++CC ?= gcc ++OPTIONS=$(ENC_OPTS) + LDLIBS=-lc -lm $(CRYPT_LIB) +-CFLAGS= ++CFLAGS?= ++LDFLAGS?= + + # FreeBSD + ifeq ("FreeBSD", "$(UNAME_S)") +-OPTIONS=-g -Wall -DHAS_GETIFADDRS $(ENC_OPTS) ++OPTIONS=-DHAS_GETIFADDRS $(ENC_OPTS) + endif + + # OSX, aka Darwin + ifeq ("Darwin", "$(UNAME_S)") +-OPTIONS=-g -Wall -DHAS_GETIFADDRS $(ENC_OPTS) ++OPTIONS=-DHAS_GETIFADDRS $(ENC_OPTS) + endif + + # Sun + ifeq ("SunOS", "$(UNAME_S)") +-CC = cc +-OPTIONS=-g -DBSD_COMP $(ENC_OPTS) ++CC ?= cc ++OPTIONS=-DBSD_COMP $(ENC_OPTS) + LDLIBS=-lnsl -lsocket -lm $(CRYPT_LIB) + CFLAGS=`getconf LFS_CFLAGS` + OPENSSL=/usr/sfw +@@ -65,9 +66,9 @@ + + # Linux + ifeq ("Linux", "$(UNAME_S)") +-OPTIONS=-g -Wall -DHAS_GETIFADDRS $(ENC_OPTS) ++OPTIONS=-DHAS_GETIFADDRS $(ENC_OPTS) + LDLIBS=-lm $(CRYPT_LIB) +-CFLAGS=`getconf LFS_CFLAGS` ++CFLAGS?=`getconf LFS_CFLAGS` + endif + + ifdef OPENSSL +@@ -82,7 +83,7 @@ + testclient_multi.o: testclient_multi.c uftp.h uftp_common.h encryption.h + + testclient_multi: testclient_multi.o encrypt_openssl.o uftp_common.o +- $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) ++ $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) $(LDFLAGS) + + clean: + rm -f testclient_multi uftp uftpd uftpproxyd uftp_keymgt *.o +@@ -176,16 +177,16 @@ + endif + + uftp: $(UFTP_OBJS) +- $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) ++ $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) $(LDFLAGS) + + uftpd: $(UFTPD_OBJS) +- $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) ++ $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) $(LDFLAGS) + + uftpproxyd: $(UFTPPROXYD_OBJS) +- $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) ++ $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) $(LDFLAGS) + + uftp_keymgt: $(UFTP_KEYMGT_OBJS) +- $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) ++ $(CC) $(OPTIONS) $(LIB) -o $@ $^ $(LDLIBS) $(LDFLAGS) + + %.o: %.c + $(CC) $(OPTIONS) $(INCLUDE) $(CFLAGS) -c $< diff --git a/net-misc/uftp/files/uftpd.conf b/net-misc/uftp/files/uftpd.conf new file mode 100644 index 000000000000..c38336c54bdc --- /dev/null +++ b/net-misc/uftp/files/uftpd.conf @@ -0,0 +1,8 @@ +# conf.d file for uftpd + +# Destionation dir for downloaded files +UFTPD_DIR="/tmp" + +# Options to pass to the uftpd process +# For more info see man utfpd(1) +UFTPD_OPTS="" diff --git a/net-misc/uftp/files/uftpd.init b/net-misc/uftp/files/uftpd.init new file mode 100644 index 000000000000..38a6ea3779a4 --- /dev/null +++ b/net-misc/uftp/files/uftpd.init @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PROGRAM=/usr/sbin/uftpd +PIDFILE=/var/run/uftpd.pid + +depend() { + need net +} + +start() { + ebegin "Starting uftpd" + start-stop-daemon --start --exec ${PROGRAM} -- \ + -L /var/log/uftpd.log -P ${PIDFILE} -D ${UFTPD_DIR} ${UFTPD_OPTS} + eend $? "Failed to start uftpd" +} + +stop() { + ebegin "Stopping uftpd" + start-stop-daemon --stop --exec ${PROGRAM} -p ${PIDFILE} + eend $? "Failed to stop uftpd" +} diff --git a/net-misc/uftp/files/uftpproxyd.conf b/net-misc/uftp/files/uftpproxyd.conf new file mode 100644 index 000000000000..37c094d7d7ba --- /dev/null +++ b/net-misc/uftp/files/uftpproxyd.conf @@ -0,0 +1,5 @@ +# conf.d file for uftpd + +# Options to pass to the uftpd process +# For more info see man utfpproxyd(1) +UFTPPROXYD_OPTS="" diff --git a/net-misc/uftp/files/uftpproxyd.init b/net-misc/uftp/files/uftpproxyd.init new file mode 100644 index 000000000000..a4b1107d9d0e --- /dev/null +++ b/net-misc/uftp/files/uftpproxyd.init @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PROGRAM=/usr/sbin/uftpproxyd +PIDFILE=/var/run/uftpproxyd.pid + +depend() { + need net +} + +start() { + ebegin "Starting uftpd" + start-stop-daemon --start --exec ${PROGRAM} -- \ + -L /var/log/uftpproxyd.log -P ${PIDFILE} ${UFTPPROXYD_OPTS} + eend $? "Failed to start uftpd" +} + +stop() { + ebegin "Stopping uftpd" + start-stop-daemon --stop --exec ${PROGRAM} -p ${PIDFILE} + eend $? "Failed to stop uftpd" +} diff --git a/net-misc/uftp/metadata.xml b/net-misc/uftp/metadata.xml new file mode 100644 index 000000000000..2a33d8eedc97 --- /dev/null +++ b/net-misc/uftp/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>azamat.hackimov@gmail.com</email> + <name>Azamat Hackimov</name> +</maintainer> +<maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> +</maintainer> +<use> + <flag name="server">Install uftp server daemon</flag> +</use> +</pkgmetadata> diff --git a/net-misc/uftp/uftp-3.7.1.ebuild b/net-misc/uftp/uftp-3.7.1.ebuild new file mode 100644 index 000000000000..21d1dd7ac57d --- /dev/null +++ b/net-misc/uftp/uftp-3.7.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Encrypted UDP based FTP with multicast" +HOMEPAGE="http://www.tcnj.edu/~bush/uftp.html" +SRC_URI="http://www.tcnj.edu/~bush/downloads/${P}.tar" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+server ssl" + +DEPEND="ssl? ( dev-libs/openssl )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-3.7_makefile.patch" +} + +src_compile() { + use ssl || local opt="NO_ENCRYPTION=1" + emake CC=$(tc-getCC) $opt uftp uftp_keymgt + use server && emake CC=$(tc-getCC) $opt uftpd uftpproxyd +} + +src_install() { + dobin uftp uftp_keymgt + dodoc ReadMe.txt + doman uftp.1 uftp_keymgt.1 + + if use server ; then + dosbin uftpd uftpproxyd + newinitd "${FILESDIR}/uftpd.init" uftpd + newconfd "${FILESDIR}/uftpd.conf" uftpd + newinitd "${FILESDIR}/uftpproxyd.init" uftpproxyd + newconfd "${FILESDIR}/uftpproxyd.conf" uftpproxyd + doman uftpd.1 uftpproxyd.1 + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate" uftpd + fi +} diff --git a/net-misc/uftp/uftp-3.7.ebuild b/net-misc/uftp/uftp-3.7.ebuild new file mode 100644 index 000000000000..4ce34926ad04 --- /dev/null +++ b/net-misc/uftp/uftp-3.7.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="Encrypted UDP based FTP with multicast" +HOMEPAGE="http://www.tcnj.edu/~bush/uftp.html" +SRC_URI="http://www.tcnj.edu/~bush/downloads/${P}.tar" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+server ssl" + +DEPEND="ssl? ( dev-libs/openssl )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}_makefile.patch" +} + +src_compile() { + use ssl || local opt="NO_ENCRYPTION=1" + emake CC=$(tc-getCC) $opt uftp uftp_keymgt + use server && emake CC=$(tc-getCC) $opt uftpd uftpproxyd +} + +src_install() { + dobin uftp uftp_keymgt + dodoc ReadMe.txt + doman uftp.1 uftp_keymgt.1 + + if use server ; then + dosbin uftpd uftpproxyd + newinitd "${FILESDIR}/uftpd.init" uftpd + newconfd "${FILESDIR}/uftpd.conf" uftpd + newinitd "${FILESDIR}/uftpproxyd.init" uftpproxyd + newconfd "${FILESDIR}/uftpproxyd.conf" uftpproxyd + doman uftpd.1 uftpproxyd.1 + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate" uftpd + fi +} |