pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/trickle Initial import of trickle 1.06. Package im...
details: https://anonhg.NetBSD.org/pkgsrc/rev/565d4f83472d
branches: trunk
changeset: 462023:565d4f83472d
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Thu Sep 25 14:19:41 2003 +0000
description:
Initial import of trickle 1.06. Package imported from pkgsrc-wip.
trickle is a portable lightweight userspace bandwidth shaper. It
can run in collaborative mode (together with trickled) or in stand
alone mode. trickle works by taking advantage of the unix loader
preloading. Essentially it provides, to the application, a new
version of the functionality that is required to send and receive
data through sockets. It then limits traffic based on delaying the
sending and receiving of data over a socket. Trickle runs entirely
in userspace and does not require root privileges.
diffstat:
net/trickle/DESCR | 8 ++++++++
net/trickle/Makefile | 29 +++++++++++++++++++++++++++++
net/trickle/PLIST | 11 +++++++++++
net/trickle/distinfo | 5 +++++
net/trickle/files/trickled.conf | 13 +++++++++++++
net/trickle/files/trickled.sh | 17 +++++++++++++++++
net/trickle/patches/patch-aa | 13 +++++++++++++
7 files changed, 96 insertions(+), 0 deletions(-)
diffs (124 lines):
diff -r c4ed213044c7 -r 565d4f83472d net/trickle/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/trickle/DESCR Thu Sep 25 14:19:41 2003 +0000
@@ -0,0 +1,8 @@
+trickle is a portable lightweight userspace bandwidth shaper. It
+can run in collaborative mode (together with trickled) or in stand
+alone mode. trickle works by taking advantage of the unix loader
+preloading. Essentially it provides, to the application, a new
+version of the functionality that is required to send and receive
+data through sockets. It then limits traffic based on delaying the
+sending and receiving of data over a socket. Trickle runs entirely
+in userspace and does not require root privileges.
diff -r c4ed213044c7 -r 565d4f83472d net/trickle/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/trickle/Makefile Thu Sep 25 14:19:41 2003 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/09/25 14:19:41 xtraeme Exp $
+#
+
+DISTNAME= trickle-1.06
+CATEGORIES= net
+MASTER_SITES= http://monkey.org/~marius/trickle/
+
+MAINTAINER= xtraeme%NetBSD.org@localhost
+HOMEPAGE= http://monkey.org/~marius/trickle/
+COMMENT= Portable lightweight userspace bandwidth shaper
+
+USE_BUILDLINK2= yes
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+USE_PKGINSTALL= yes
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+
+EGDIR= ${PREFIX}/share/examples/trickle
+CONF_FILES= ${EGDIR}/trickled.conf ${PKG_SYSCONFDIR}/trickled.conf
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${FILESDIR}/trickled.conf ${EGDIR}
+
+.include "../../devel/libevent/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c4ed213044c7 -r 565d4f83472d net/trickle/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/trickle/PLIST Thu Sep 25 14:19:41 2003 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/25 14:19:41 xtraeme Exp $
+bin/trickle
+bin/tricklectl
+bin/trickled
+lib/trickle/trickle-overload.so
+man/man1/trickle.1
+man/man5/trickled.conf.5
+man/man8/trickled.8
+share/examples/trickle/trickled.conf
+@dirrm share/examples/trickle
+@dirrm lib/trickle
diff -r c4ed213044c7 -r 565d4f83472d net/trickle/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/trickle/distinfo Thu Sep 25 14:19:41 2003 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/09/25 14:19:41 xtraeme Exp $
+
+SHA1 (trickle-1.06.tar.gz) = bba2305606a94c2d0ce7a9b9f12ea06a6f5f223f
+Size (trickle-1.06.tar.gz) = 166044 bytes
+SHA1 (patch-aa) = aa3bb621c5e09ab6e26132d0b0d4c60fc31d2b13
diff -r c4ed213044c7 -r 565d4f83472d net/trickle/files/trickled.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/trickle/files/trickled.conf Thu Sep 25 14:19:41 2003 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: trickled.conf,v 1.1.1.1 2003/09/25 14:19:41 xtraeme Exp $
+#
+# Example configuration file for trickle
+#
+
+[ssh]
+Priority = 1
+Time-Smoothing = 0.1
+Length-Smoothing = 2
+[ftp]
+Priority = 2
+Time-Smoothing = 5
+Length-Smoothing = 20
diff -r c4ed213044c7 -r 565d4f83472d net/trickle/files/trickled.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/trickle/files/trickled.sh Thu Sep 25 14:19:41 2003 +0000
@@ -0,0 +1,17 @@
+#!@RCS_SCRIPTS_SHELL@
+#
+# $NetBSD: trickled.sh,v 1.1.1.1 2003/09/25 14:19:42 xtraeme Exp $
+#
+# PROVIDE: trickled
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="trickled"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/trickled.conf"
+
+load_rc_config $name
+run_rc_command "$1"
diff -r c4ed213044c7 -r 565d4f83472d net/trickle/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/trickle/patches/patch-aa Thu Sep 25 14:19:41 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/09/25 14:19:42 xtraeme Exp $
+
+--- trickle-overload.c.orig 2003-06-04 18:35:52.000000000 +0200
++++ trickle-overload.c 2003-06-04 18:36:45.000000000 +0200
+@@ -476,7 +476,7 @@ select(int nfds, fd_set *rfds, fd_set *w
+ #if defined(__linux__) || (defined(__svr4__) && defined(__sun__))
+ int
+ poll(struct pollfd *fds, nfds_t nfds, int __timeout)
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ int
+ poll(struct pollfd *fds, unsigned int nfds, int __timeout)
+ #else
Home |
Main Index |
Thread Index |
Old Index