summaryrefslogtreecommitdiff
path: root/net/trickle/files
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2003-09-25 14:19:41 +0000
committerxtraeme <xtraeme@pkgsrc.org>2003-09-25 14:19:41 +0000
commit1284105065b4cebdaa3062b3279cb709a83bb0e8 (patch)
tree1d25459d232544720c3b748e35d5e77b5c5f0a3c /net/trickle/files
parent792d60fc1e0550b39dff7050f3ef2ae66b8923ea (diff)
downloadpkgsrc-1284105065b4cebdaa3062b3279cb709a83bb0e8.tar.gz
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 (limited to 'net/trickle/files')
-rw-r--r--net/trickle/files/trickled.conf13
-rwxr-xr-xnet/trickle/files/trickled.sh17
2 files changed, 30 insertions, 0 deletions
diff --git a/net/trickle/files/trickled.conf b/net/trickle/files/trickled.conf
new file mode 100644
index 00000000000..c33db8920ef
--- /dev/null
+++ b/net/trickle/files/trickled.conf
@@ -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 --git a/net/trickle/files/trickled.sh b/net/trickle/files/trickled.sh
new file mode 100755
index 00000000000..890e53d2287
--- /dev/null
+++ b/net/trickle/files/trickled.sh
@@ -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"