Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2014 08:25:17 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339763 - head/net-mgmt/bpft
Message-ID:  <201401150825.s0F8PH7Y033025@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Wed Jan 15 08:25:17 2014
New Revision: 339763
URL: http://svnweb.freebsd.org/changeset/ports/339763
QAT: https://qat.redports.org/buildarchive/r339763/

Log:
  1: Fix building on 10 and -current.
  2: support stagedir
  
  PR:		ports/185694
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/net-mgmt/bpft/Makefile
  head/net-mgmt/bpft/pkg-plist

Modified: head/net-mgmt/bpft/Makefile
==============================================================================
--- head/net-mgmt/bpft/Makefile	Wed Jan 15 08:05:53 2014	(r339762)
+++ head/net-mgmt/bpft/Makefile	Wed Jan 15 08:25:17 2014	(r339763)
@@ -21,11 +21,6 @@ WRKSRC=		${WRKDIR}/${PORTNAME}
 
 MAKE_JOBS_UNSAFE=	yes
 
-MANCOMPRESSED=	yes
-MAN1=		traflog.1 trafstat.1
-MAN8=		trafstatd.8 trafd.8
-
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 post-patch:
@@ -33,20 +28,23 @@ post-patch:
 		's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h
 	@${REINPLACE_CMD} -e \
 		'/^PATH_TOSAVE/s|=.*|= ${PREFIX}/var/bpft| ; \
-		 /^INSTALL_DIRECTORY/s|=.*|= ${MKDIR}|' ${WRKSRC}/Makefile
+		 /^INSTALL_DIRECTORY/s|=.*|= ${MKDIR}| ; \
+		 s|please!|&"| ; \
+		 s| $${PATH_| $${DESTDIR}$${PATH_|g ; \
+		 s| $${PREFIX_| $${DESTDIR}$${PREFIX_|g' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		's|bpf_dump.[co]||' ${WRKSRC}/lib/Makefile
 	@${REINPLACE_CMD} -e \
 		's|<net/slip.h>|"../linux-include/net/slip.h"|' \
 		${WRKSRC}/lib/interfaces.c
 
 post-install:
 .for i in bin/traflog bin/trafstat sbin/trafd sbin/trafstatd
-	@${STRIP_CMD} ${PREFIX}/${i}
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${i}
 .endfor
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in README WhatsNew
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/net-mgmt/bpft/pkg-plist
==============================================================================
--- head/net-mgmt/bpft/pkg-plist	Wed Jan 15 08:05:53 2014	(r339762)
+++ head/net-mgmt/bpft/pkg-plist	Wed Jan 15 08:25:17 2014	(r339763)
@@ -6,10 +6,14 @@ bin/trafstat
 bin/trafstop
 etc/rc.d/trafd.sh
 etc/traflog.format
+man/man1/traflog.1.gz
+man/man1/trafstat.1.gz
+man/man8/trafd.8.gz
+man/man8/trafstatd.8.gz
 sbin/trafd
 sbin/trafstatd
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/WhatsNew
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrmtry var/bpft
 @dirrmtry var
+%%PORTDOCS%%@dirrm %%DOCSDIR%%



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