Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2014 11:06:48 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r344189 - head/net/trickle
Message-ID:  <201402141106.s1EB6mfh091029@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Fri Feb 14 11:06:47 2014
New Revision: 344189
URL: http://svnweb.freebsd.org/changeset/ports/344189
QAT: https://qat.redports.org/buildarchive/r344189/

Log:
  - STAGE-clean

Modified:
  head/net/trickle/Makefile
  head/net/trickle/pkg-plist

Modified: head/net/trickle/Makefile
==============================================================================
--- head/net/trickle/Makefile	Fri Feb 14 11:02:24 2014	(r344188)
+++ head/net/trickle/Makefile	Fri Feb 14 11:06:47 2014	(r344189)
@@ -10,7 +10,9 @@ MASTER_SITES=	http://monkey.org/~marius/
 MAINTAINER=	gahr@FreeBSD.org
 COMMENT=	Lightweight, portable bandwidth shaper
 
-LIB_DEPENDS=	event-1.4:${PORTSDIR}/devel/libevent
+LIB_DEPENDS=	libevent-1.4.so:${PORTSDIR}/devel/libevent
+
+OPTIONS_DEFINE=	DOCS
 
 USE_AUTOTOOLS=	libtool
 GNU_CONFIGURE=	yes
@@ -23,23 +25,10 @@ CONFIGURE_ARGS+=--with-libevent=${LOCALB
 CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib"
 CPPFLAGS+=	-I${LOCALBASE}/include
 
-MAN1=		trickle.1
-MAN5=		trickled.conf.5
-MAN8=		trickled.8
-
-NO_STAGE=	yes
+PORTDOCS=	*
 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
+	${INSTALL_DATA} ${FILESDIR}/trickled.conf ${STAGEDIR}${PREFIX}/etc/trickled.conf.default
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/net/trickle/pkg-plist
==============================================================================
--- head/net/trickle/pkg-plist	Fri Feb 14 11:02:24 2014	(r344188)
+++ head/net/trickle/pkg-plist	Fri Feb 14 11:06:47 2014	(r344189)
@@ -1,10 +1,9 @@
 bin/trickle
 bin/tricklectl
 bin/trickled
-@unexec if cmp -s %D/etc/trickled.conf %D/etc/trickled.conf.default; then rm -f %D/etc/trickled.conf; fi
 etc/trickled.conf.default
-@exec [ -f %B/trickled.conf ] || cp %B/%f %B/trickled.conf
+man/man1/trickle.1.gz
+man/man5/trickled.conf.5.gz
+man/man8/trickled.8.gz
 lib/trickle/trickle-overload.so
-%%PORTDOCS%%%%DOCSDIR%%/README
 @dirrm lib/trickle
-%%PORTDOCS%%@dirrm %%DOCSDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402141106.s1EB6mfh091029>