diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2012-08-10 15:16:27 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2012-08-10 15:16:27 +0000 |
commit | 2243108eed892a6304f861c903d6b73a32647357 (patch) | |
tree | 4d2d117b0ed8a2319e2cdf38f70211bf04f83dbc /net-misc/uftp | |
parent | Stable for x86, wrt bug #418963 (diff) | |
download | gentoo-2-2243108eed892a6304f861c903d6b73a32647357.tar.gz gentoo-2-2243108eed892a6304f861c903d6b73a32647357.tar.bz2 gentoo-2-2243108eed892a6304f861c903d6b73a32647357.zip |
Add net-misc/uftp, bug 287248. Thanks to Azamat Hackimov
(Portage version: 2.1.11.4/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/uftp')
-rw-r--r-- | net-misc/uftp/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/uftp/Manifest | 9 | ||||
-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 | 24 | ||||
-rw-r--r-- | net-misc/uftp/files/uftpproxyd.conf | 5 | ||||
-rw-r--r-- | net-misc/uftp/files/uftpproxyd.init | 24 | ||||
-rw-r--r-- | net-misc/uftp/metadata.xml | 12 | ||||
-rw-r--r-- | net-misc/uftp/uftp-3.7.ebuild | 46 |
10 files changed, 234 insertions, 0 deletions
diff --git a/net-misc/uftp/ChangeLog b/net-misc/uftp/ChangeLog new file mode 100644 index 000000000000..a32e55b1f53b --- /dev/null +++ b/net-misc/uftp/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-misc/uftp +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/uftp/ChangeLog,v 1.1 2012/08/10 15:16:27 maksbotan Exp $ + +*uftp-3.7 (10 Aug 2012) + + 10 Aug 2012; Maxim Koltsov <maksbotan@gentoo.org> +files/logrotate, + +files/uftp-3.7_makefile.patch, +files/uftpd.conf, +files/uftpd.init, + +files/uftpproxyd.conf, +files/uftpproxyd.init, +metadata.xml, + +uftp-3.7.ebuild: + Add net-misc/uftp, bug 287248. Thanks to Azamat Hackimov diff --git a/net-misc/uftp/Manifest b/net-misc/uftp/Manifest new file mode 100644 index 000000000000..2a0fdba756a5 --- /dev/null +++ b/net-misc/uftp/Manifest @@ -0,0 +1,9 @@ +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 530 SHA256 0b46158c9f84b6b64e6387774822961551783af3d77ea1d0eb5812eee7bfc2d2 SHA512 eeb4aed7d7508449513006bc599d942b5301e8052ec354b16860992609fa171d08fbbd913a78ea69499cc519065174c54933b70b809527a1786bc77939054e1e WHIRLPOOL 66c5fbc8ea3bca8b60fc9a833bb733932de965e8d939d696330a5e0b9610dc7ad7ae877d0ec14dc42de91d3eb81005bc1ca106c63563b78ee44aef098ded1d4e +AUX uftpproxyd.conf 121 SHA256 90f9956120b1139d8e7dc554db5e5100b587f9d893f6650b35ac6ab6c54a3c5f SHA512 c61441d048ce99a50b5224cea7c4f9f1a2532fff8083a9a71e6099a98cba1fe79b43825188034efd402b47ac28bbe341827cb21872c17550419db36a8da7bb35 WHIRLPOOL f47ed7e515bb13cccffe05374525fbb6c192fa1aefc29021244eecdaad71d794d776c1a45954cd058d3e45745ce3ebab851c17f86031b9beedb37b0a90901215 +AUX uftpproxyd.init 534 SHA256 c4bd7b738be6f787eeee43b076fa6eaad9789b7e7494e6dd7a4a62011471289c SHA512 75abea2a333ab5a297e9f3a9c26e1d89c12c9f6837133cc24da68c8d52cd4adb675e6729010551b07294c2242c2091ea0953c1e2710020d519e0ddee058f11fd WHIRLPOOL 8f745b3afa398f5ab6f31abda4bd0cf979a035e6b3e7af5a2ce9978ca2fc4e146e3863f1b1d24d45624127d620981bc3212784f7bc7f339eb2606105704aee0f +DIST uftp-3.7.tar 849920 SHA256 c5da4236e57dc152bc8dbb27110a4f504c2525ec079fa285c4f9309a798eca26 SHA512 8e154ea196b34995bc3831c375237a4d98f0627ca79fb6714b66763f64748810e5151efdc40773044a127a0e875ffcc8b985e6f7babd359ae38280a219c4d610 WHIRLPOOL 0a46c5588027ce67777fdfec3b45a27d97c4b95c9cbba9ebdb7704cee5d28b2db29e499ae1f3fcb5d29dec99ec54ade86a1bcaa5f5b8abc178e38768d910ab8d +EBUILD uftp-3.7.ebuild 1087 SHA256 f334e453dc19e6ef1d5b31bebf760e837052f1df460d8a46d36a5130181fc587 SHA512 57744a2b7b160cc7eca28b65a09da3fa693e2c5095e97c5d181242257edcb6ea05ebacba2f656c9adc8de9c48a7e9a657ff79c8f32a69b6247f11ea1cc73783a WHIRLPOOL adb61894501725667e81c8aeabb30327549130f6e15e3337bd2c4325c9a048e1d7fd860877e8d4e0d3c39b4c04576cd56936c96c838ea27f5524f4ce3362e55a +MISC metadata.xml 337 SHA256 6f749a8c9f7f56dc8a8e7a04cf53f9df938d4498630a4a5bc7687a74ee3280e8 SHA512 10f3e8991d5cc31ad9dd569fecb06a0b7618d69344d3e642cee588cffa254a4a02158fd4163b073e25fe9cc16518746d912209a0742b0cc5460de5e5a5ae59b5 WHIRLPOOL 0313cfeb19b9beebfcf6d87c975a71c3a831c35057f8413fdc7eb121052ddfcc31c8ed0d63c6913625cbb3ba8fe8c89d1fca8fbe494f9406c5400400b8360047 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..5efbfe10708f --- /dev/null +++ b/net-misc/uftp/files/uftpd.init @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/uftp/files/uftpd.init,v 1.1 2012/08/10 15:16:26 maksbotan Exp $ + +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..ef2ac44bed30 --- /dev/null +++ b/net-misc/uftp/files/uftpproxyd.init @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/uftp/files/uftpproxyd.init,v 1.1 2012/08/10 15:16:26 maksbotan Exp $ + +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..e172f68d2263 --- /dev/null +++ b/net-misc/uftp/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>azamat.hackimov@gmail.com</email> + <name>Azamat Hackimov</name> +</maintainer> +<use> + <flag name="server">Install uftp server daemon</flag> +</use> +</pkgmetadata> diff --git a/net-misc/uftp/uftp-3.7.ebuild b/net-misc/uftp/uftp-3.7.ebuild new file mode 100644 index 000000000000..ab0a36b5d73b --- /dev/null +++ b/net-misc/uftp/uftp-3.7.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/uftp/uftp-3.7.ebuild,v 1.1 2012/08/10 15:16:27 maksbotan Exp $ + +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 +} |