diff --git a/net/trickle/Makefile b/net/trickle/Makefile new file mode 100644 index 00000000000..68685dd0a7b --- /dev/null +++ b/net/trickle/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/04/13 08:07:50 pvalchev Exp $ + +COMMENT= "lightweight userspace bandwidth shaper" +DISTNAME= trickle-1.04 +CATEGORIES= net +MASTER_SITES= ${HOMEPAGE} + +HOMEPAGE= http://monkey.org/~marius/trickle/ + +MAINTAINER= Jolan Luff + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +CONFIGURE_STYLE=gnu + +.include diff --git a/net/trickle/distinfo b/net/trickle/distinfo new file mode 100644 index 00000000000..002d22e1b90 --- /dev/null +++ b/net/trickle/distinfo @@ -0,0 +1,3 @@ +MD5 (trickle-1.04.tar.gz) = df301ea0418beb16b454e02def10ac72 +RMD160 (trickle-1.04.tar.gz) = 461a563a1d279f4e0ec57fc8bd21e672ba543e14 +SHA1 (trickle-1.04.tar.gz) = bcaebc2ce7000f268f9fb484306236edd7c5a72f diff --git a/net/trickle/pkg/DEINSTALL b/net/trickle/pkg/DEINSTALL new file mode 100644 index 00000000000..a2c5f02e702 --- /dev/null +++ b/net/trickle/pkg/DEINSTALL @@ -0,0 +1,24 @@ +#!/bin/sh +# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/04/13 08:07:50 pvalchev Exp $ + +set -e +PATH=/bin:/usr/bin:/sbin:/usr/sbin +PREFIX=${PKG_PREFIX:-/usr/local} +CONFFILE=${SYSCONFDIR}/trickled.conf + +if [ -f ${CONFFILE} ]; +then + echo + echo "+---------------" + echo "| To completely deinstall the $1 package you need to perform" + echo "| this step as root:" + echo "|" + echo "| rm -f ${CONFFILE}" + echo "|" + echo "| Do not do this if you plan on re-installing $1" + echo "| at some future time." + echo "+---------------" + echo +fi + +exit 0 diff --git a/net/trickle/pkg/DESCR b/net/trickle/pkg/DESCR new file mode 100644 index 00000000000..42a808550a9 --- /dev/null +++ b/net/trickle/pkg/DESCR @@ -0,0 +1,10 @@ +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. + +WWW: ${HOMEPAGE} diff --git a/net/trickle/pkg/MESSAGE b/net/trickle/pkg/MESSAGE new file mode 100644 index 00000000000..e207b207a18 --- /dev/null +++ b/net/trickle/pkg/MESSAGE @@ -0,0 +1,16 @@ + +Post Installation Set-Up of trickle +----------------------------------- + +See trickle(1), trickled.conf(5), and trickled(8) for information on +configuring and using trickle. The optional trickled.conf configuration +file should be placed at ${SYSCONFDIR}/trickled.conf. + +Additionally, you may wish to start trickled at system start-up time +via the /etc/rc.local script (it should be noted that trickled can run +with, but does not require root privileges): + +if [ -x ${PREFIX}/bin/trickled ]; then + echo -n ' trickled'; ${PREFIX}/bin/trickled +fi + diff --git a/net/trickle/pkg/PLIST b/net/trickle/pkg/PLIST new file mode 100644 index 00000000000..f268f79bc18 --- /dev/null +++ b/net/trickle/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/04/13 08:07:50 pvalchev Exp $ +bin/trickle +bin/trickled +lib/trickle/trickle-overload.so +man/man1/trickle.1 +man/man5/trickled.conf.5 +man/man8/trickled.8 +@dirrm lib/trickle