summaryrefslogtreecommitdiff
path: root/net/uftp
diff options
context:
space:
mode:
authormspo <mspo@pkgsrc.org>2013-10-05 17:40:38 +0000
committermspo <mspo@pkgsrc.org>2013-10-05 17:40:38 +0000
commit5e13b32a1d693cba33affa00cdfdf5039ea1fb27 (patch)
tree1abe0a4cef8c5e79ab090eb4601305e8ae86f705 /net/uftp
parent943041570bb66203d1a068e251600e65c915e61d (diff)
downloadpkgsrc-5e13b32a1d693cba33affa00cdfdf5039ea1fb27.tar.gz
add uftp, a multicast file transfer tool
Diffstat (limited to 'net/uftp')
-rw-r--r--net/uftp/DESCR2
-rw-r--r--net/uftp/MESSAGE11
-rw-r--r--net/uftp/Makefile17
-rw-r--r--net/uftp/PLIST9
-rw-r--r--net/uftp/distinfo7
-rw-r--r--net/uftp/patches/patch-makefile38
-rw-r--r--net/uftp/patches/patch-uftp_common.c34
7 files changed, 118 insertions, 0 deletions
diff --git a/net/uftp/DESCR b/net/uftp/DESCR
new file mode 100644
index 00000000000..b3aaea1aeaa
--- /dev/null
+++ b/net/uftp/DESCR
@@ -0,0 +1,2 @@
+UFTP is an encrypted multicast file transfer program, designed to securely,
+reliably, and efficiently transfer files to multiple receivers simultaneously.
diff --git a/net/uftp/MESSAGE b/net/uftp/MESSAGE
new file mode 100644
index 00000000000..8a9e3581182
--- /dev/null
+++ b/net/uftp/MESSAGE
@@ -0,0 +1,11 @@
+to use larger network buffer sizes:
+
+Solaris: ndd -set /dev/udp udp_max_buf {value}
+
+Linux: sysctl -w net.core.rmem_max={value}
+ sysctl -w net.core.wmem_max={value}
+
+MacOSX / FreeBSD: sysctl -w kern.ipc.maxsockbuf={value}
+(The actual maximum you can use is 8/9 of this value)
+
+NetBSD: sysctl -w kern.sbmax={value}
diff --git a/net/uftp/Makefile b/net/uftp/Makefile
new file mode 100644
index 00000000000..4ab4b661535
--- /dev/null
+++ b/net/uftp/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2013/10/05 17:40:38 mspo Exp $
+
+DISTNAME= uftp-4.1.2
+CATEGORIES= net
+MASTER_SITES= http://sourceforge.net/projects/uftp-multicast/files/source-tar/
+EXTRACT_SUFX= .tar
+USE_TOOLS+= gmake
+NO_CONFIGURE= yes
+MAKE_FILE= makefile
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://uftp-multicast.sourceforge.net/
+COMMENT= UFTP is an encrypted multicast file transfer program
+LICENSE= gnu-gpl-v3
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/uftp/PLIST b/net/uftp/PLIST
new file mode 100644
index 00000000000..fbfe80f16f5
--- /dev/null
+++ b/net/uftp/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2013/10/05 17:40:38 mspo Exp $
+bin/uftp
+bin/uftp_keymgt
+man/man1/uftp.1
+man/man1/uftp_keymgt.1
+man/man1/uftpd.1
+man/man1/uftpproxyd.1
+sbin/uftpd
+sbin/uftpproxyd
diff --git a/net/uftp/distinfo b/net/uftp/distinfo
new file mode 100644
index 00000000000..6abed206290
--- /dev/null
+++ b/net/uftp/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2013/10/05 17:40:38 mspo Exp $
+
+SHA1 (uftp-4.1.2.tar) = 11191127cc3716599a2554cfcc18329487757067
+RMD160 (uftp-4.1.2.tar) = eb8fdae3648de86976177fbf805099a43cff37ec
+Size (uftp-4.1.2.tar) = 1198080 bytes
+SHA1 (patch-makefile) = 275f24c09128155215c134f2d80b7ba0ffbb2390
+SHA1 (patch-uftp_common.c) = 87d3a6e4b1216d3cd81a55441412811152f0de3d
diff --git a/net/uftp/patches/patch-makefile b/net/uftp/patches/patch-makefile
new file mode 100644
index 00000000000..e702f53ea11
--- /dev/null
+++ b/net/uftp/patches/patch-makefile
@@ -0,0 +1,38 @@
+$NetBSD: patch-makefile,v 1.1 2013/10/05 17:40:38 mspo Exp $
+fixup install and add netbsd
+
+--- makefile-orig 2013-10-05 17:11:26.000000000 +0000
++++ makefile
+@@ -53,6 +53,11 @@ ifeq ("FreeBSD", "$(UNAME_S)")
+ OPTIONS=-g -Wall -DHAS_GETIFADDRS -DNO_DUAL -DNO_MCAST_JOIN $(ENC_OPTS)
+ endif
+
++# NetBSD
++ifeq ("NetBSD", "$(UNAME_S)")
++OPTIONS=-g -Wall -DHAS_GETIFADDRS -DNO_DUAL -DNO_MCAST_JOIN -DNOSIOCGIFINDEX $(ENC_OPTS)
++endif
++
+ # OSX, aka Darwin
+ ifeq ("Darwin", "$(UNAME_S)")
+ OPTIONS=-g -Wall -DHAS_GETIFADDRS $(ENC_OPTS)
+@@ -197,12 +202,12 @@ uftp_keymgt: $(UFTP_KEYMGT_OBJS)
+ $(CC) $(OPTIONS) $(INCLUDE) $(CFLAGS) $(MTFLAGS) -c $<
+
+ install: all
+- install -m 755 -d $(DESTDIR)/bin
+- install -m 755 -d $(DESTDIR)/usr/sbin
+- install -m 755 -d $(DESTDIR)/usr/share/man/man1
+- /bin/cp -p uftp $(DESTDIR)/bin
+- /bin/cp -p uftpd $(DESTDIR)/usr/sbin
+- /bin/cp -p uftpproxyd $(DESTDIR)/usr/sbin
+- /bin/cp -p uftp_keymgt $(DESTDIR)/bin
+- /bin/cp -p uftp.1 uftpd.1 uftpproxyd.1 uftp_keymgt.1 $(DESTDIR)/usr/share/man/man1
++ install -m 755 -d $(DESTDIR)$(PREFIX)/bin
++ install -m 755 -d $(DESTDIR)$(PREFIX)/sbin
++ install -m 755 -d $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
++ /bin/cp -p uftp $(DESTDIR)$(PREFIX)/bin
++ /bin/cp -p uftpd $(DESTDIR)$(PREFIX)/sbin
++ /bin/cp -p uftpproxyd $(DESTDIR)$(PREFIX)/sbin
++ /bin/cp -p uftp_keymgt $(DESTDIR)$(PREFIX)/bin
++ /bin/cp -p uftp.1 uftpd.1 uftpproxyd.1 uftp_keymgt.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
+
diff --git a/net/uftp/patches/patch-uftp_common.c b/net/uftp/patches/patch-uftp_common.c
new file mode 100644
index 00000000000..7fe59b61ddb
--- /dev/null
+++ b/net/uftp/patches/patch-uftp_common.c
@@ -0,0 +1,34 @@
+$NetBSD: patch-uftp_common.c,v 1.1 2013/10/05 17:40:38 mspo Exp $
+netbsd does not have SIOCGIFINDEX
+
+--- uftp_common.c-orig 2013-10-05 01:33:19.000000000 +0000
++++ uftp_common.c
+@@ -141,11 +141,13 @@ void getiflist(struct iflist *list, int
+ while (ifa_tmp && (*len < count)) {
+ strncpy(ifr_tmp.ifr_name, ifa_tmp->ifa_name, sizeof(ifr_tmp.ifr_name));
+ ifr_tmp.ifr_name[sizeof(ifr_tmp.ifr_name)-1] = '\x0';
++#ifndef NOSIOCGIFINDEX
+ if (ioctl(s, SIOCGIFINDEX, &ifr_tmp) == -1) {
+ syserror(0, 0, "Error getting interface index for interface %s",
+ ifa_tmp->ifa_name);
+ continue;
+ }
++#endif
+ if (ifa_tmp->ifa_addr && ((ifa_tmp->ifa_addr->sa_family == AF_INET) ||
+ (ifa_tmp->ifa_addr->sa_family == AF_INET6)) &&
+ ((ifa_tmp->ifa_flags & IFF_UP) != 0)) {
+@@ -156,11 +158,14 @@ void getiflist(struct iflist *list, int
+ sizeof(struct sockaddr_storage));
+ list[*len].isloopback = (ifa_tmp->ifa_flags & IFF_LOOPBACK) != 0;
+ list[*len].ismulti = (ifa_tmp->ifa_flags & IFF_MULTICAST) != 0;
++#ifndef NOSIOCGIFINDEX
++ if (ioctl(s, SIOCGIFINDEX, &ifr_tmp) == -1) {
+ #ifdef ifr_ifindex
+ list[*len].ifidx = ifr_tmp.ifr_ifindex;
+ #else
+ list[*len].ifidx = ifr_tmp.ifr_index;
+ #endif
++#endif
+
+ (*len)++;
+ }