mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
4d313e4841
- Enable the recv() and send(), I am not sure why it was disabled on FreeBSD only but allow other OSs. It works great as I have tested it with a few of applications on FreeBSD 6.0 for a week. If anyone know why, please let me know. No respone from the author. - Add install the trickled.conf(.default) with examples. Took from Debian with a bit tweak. - Bump the PORTREVISION.
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# New ports collection makefile for: trickle
|
|
# Date created: 04.06.2003
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= trickle
|
|
PORTVERSION= 1.06
|
|
PORTREVISION= 4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://monkey.org/~marius/trickle/
|
|
|
|
MAINTAINER= mezz@FreeBSD.org
|
|
COMMENT= Lightweight, portable bandwidth shaper
|
|
|
|
LIB_DEPENDS= event-1.1a.1:${PORTSDIR}/devel/libevent
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ARGS+=--with-libevent=${LOCALBASE} \
|
|
--sysconfdir=${PREFIX}/etc
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
MAN1= trickle.1
|
|
MAN5= trickled.conf.5
|
|
MAN8= trickled.8
|
|
|
|
post-install:
|
|
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
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for i in README
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|