2013-07-11 08:39:14 +02:00
|
|
|
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
|
2003-06-06 15:12:17 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= trickle
|
2008-04-17 00:36:42 +02:00
|
|
|
PORTVERSION= 1.07
|
2010-07-25 17:39:20 +02:00
|
|
|
PORTREVISION= 2
|
2003-06-06 15:12:17 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://monkey.org/~marius/trickle/
|
|
|
|
|
2008-04-21 19:36:40 +02:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2003-06-06 15:12:17 +02:00
|
|
|
COMMENT= Lightweight, portable bandwidth shaper
|
|
|
|
|
2008-08-19 18:40:17 +02:00
|
|
|
LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
|
2003-06-06 15:12:17 +02:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2003-06-06 15:12:17 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-12-05 14:29:01 +01:00
|
|
|
USE_LDCONFIG= yes
|
2003-06-06 15:12:17 +02:00
|
|
|
|
2013-07-11 08:39:14 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2006-05-08 00:39:48 +02:00
|
|
|
CONFIGURE_ARGS+=--with-libevent=${LOCALBASE} \
|
|
|
|
--sysconfdir=${PREFIX}/etc
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2003-06-06 15:12:17 +02:00
|
|
|
|
|
|
|
MAN1= trickle.1
|
|
|
|
MAN5= trickled.conf.5
|
|
|
|
MAN8= trickled.8
|
|
|
|
|
2013-09-21 00:10:23 +02:00
|
|
|
NO_STAGE= yes
|
2003-06-06 15:12:17 +02:00
|
|
|
post-install:
|
2006-05-11 19:09:01 +02:00
|
|
|
if [ ! -f ${PREFIX}/etc/trickled.conf ]; then \
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/trickled.conf ${PREFIX}/etc/trickled.conf; \
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/trickled.conf ${PREFIX}/etc/trickled.conf.default; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/trickled.conf ${PREFIX}/etc/trickled.conf.default; \
|
|
|
|
fi
|
2003-06-06 15:12:17 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|