1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

* fix fetching by updating to 2003-10-28

* unbreak
* replace patch-pathnames with REINPLACE_CMD
* honor NOPORTDOCS
* make pkg-install honor PREFIX
* replace %%PREFIX%% with %D in packing list per portlint

PR:		59143
Submitted by:	igla@batterybackups.net
Approved by:	maintainer
This commit is contained in:
Kirill Ponomarev 2003-11-11 09:02:24 +00:00
parent 49f7724c25
commit d70ee1ace1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93726
10 changed files with 20 additions and 46 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= bpft
PORTVERSION= 4.20030925
PORTVERSION= 4.20031028
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://rusunix.org/pub/FreeBSD/distfiles/
@ -18,12 +18,11 @@ COMMENT= The BPF Traffic collector
CONFLICTS= trafd-3.0.*
BROKEN= Does not fetch, will be removed after Feb 2
WRKSRC= ${WRKDIR}/bpft
MAN1= traflog.1 trafstat.1
MAN8= trafstatd.8 trafd.8
MANCOMPRESSED= yes
USE_REINPLACE= yes
pre-everything::
@${ECHO_MSG}
@ -35,9 +34,14 @@ pre-everything::
@${ECHO_MSG} "Original trafd and bpft binaries layout are mutually exclusive"
@${ECHO_MSG}
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/WhatsNew ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (bpft4-latest.tgz) = 3810114b068f438cc7e8e0b1af745953
MD5 (bpft4-latest.tgz) = 7607793dd686426976cb0aa99a3ae384

View File

@ -1,17 +0,0 @@
--- include/pathnames.h.orig Fri Oct 18 10:28:27 2002
+++ include/pathnames.h Sun Mar 30 17:48:50 2003
@@ -33,12 +33,12 @@
/* where unerased tmp directory */
#ifndef _PATH_VARTMP
-#define _PATH_VARTMP "/usr/local/var/trafd/tmp/"
+#define _PATH_VARTMP "/usr/local/var/bpft/tmp/"
#endif
/* where backuped data */
#ifndef PATH_TOSAVE
-#define PATH_TOSAVE "/usr/local/var/trafd/"
+#define PATH_TOSAVE "/usr/local/var/bpft/"
#endif
/* where locate trafstat */

View File

@ -1,4 +1,4 @@
#!/bin/sh
DBDIR=/usr/local/var/bpft
DBDIR=${PREFIX}/var/bpft
mkdir -p $DBDIR

View File

@ -11,5 +11,5 @@ etc/traflog.format
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/WhatsNew
@dirrm var/bpft
@unexec rmdir %%PREFIX%%/var 2>/dev/null || true
@unexec rmdir %D/var 2>/dev/null || true
%%PORTDOCS%%@dirrm %%DOCSDIR%%

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= bpft
PORTVERSION= 4.20030925
PORTVERSION= 4.20031028
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://rusunix.org/pub/FreeBSD/distfiles/
@ -18,12 +18,11 @@ COMMENT= The BPF Traffic collector
CONFLICTS= trafd-3.0.*
BROKEN= Does not fetch, will be removed after Feb 2
WRKSRC= ${WRKDIR}/bpft
MAN1= traflog.1 trafstat.1
MAN8= trafstatd.8 trafd.8
MANCOMPRESSED= yes
USE_REINPLACE= yes
pre-everything::
@${ECHO_MSG}
@ -35,9 +34,14 @@ pre-everything::
@${ECHO_MSG} "Original trafd and bpft binaries layout are mutually exclusive"
@${ECHO_MSG}
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/include/pathnames.h
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/WhatsNew ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (bpft4-latest.tgz) = 3810114b068f438cc7e8e0b1af745953
MD5 (bpft4-latest.tgz) = 7607793dd686426976cb0aa99a3ae384

View File

@ -1,17 +0,0 @@
--- include/pathnames.h.orig Fri Oct 18 10:28:27 2002
+++ include/pathnames.h Sun Mar 30 17:48:50 2003
@@ -33,12 +33,12 @@
/* where unerased tmp directory */
#ifndef _PATH_VARTMP
-#define _PATH_VARTMP "/usr/local/var/trafd/tmp/"
+#define _PATH_VARTMP "/usr/local/var/bpft/tmp/"
#endif
/* where backuped data */
#ifndef PATH_TOSAVE
-#define PATH_TOSAVE "/usr/local/var/trafd/"
+#define PATH_TOSAVE "/usr/local/var/bpft/"
#endif
/* where locate trafstat */

View File

@ -1,4 +1,4 @@
#!/bin/sh
DBDIR=/usr/local/var/bpft
DBDIR=${PREFIX}/var/bpft
mkdir -p $DBDIR

View File

@ -11,5 +11,5 @@ etc/traflog.format
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/WhatsNew
@dirrm var/bpft
@unexec rmdir %%PREFIX%%/var 2>/dev/null || true
@unexec rmdir %D/var 2>/dev/null || true
%%PORTDOCS%%@dirrm %%DOCSDIR%%