1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Add missing file to pkg-plist, support PORTDOCS and fix a portlint error.

Submitted by:	igla@batterybackups.net
This commit is contained in:
Jimmy Olgeni 2003-11-08 13:39:11 +00:00
parent 2861db8861
commit 0f5bb9d90f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93396
4 changed files with 26 additions and 18 deletions

View File

@ -7,13 +7,14 @@
PORTNAME= NeTraMet
PORTVERSION= 4.4
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.auckland.ac.nz/pub/iawg/NeTraMet/ \
http://www2.auckland.ac.nz/net/Accounting/
DISTFILES+= NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX} \
${NETRAMET_DOCS}
EXTRACT_ONLY= NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX}
DIST_SUBDIR= netramet
EXTRACT_ONLY= NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Implementation of the Internet Accounting Architecture
@ -39,9 +40,11 @@ post-patch:
@${REINPLACE_CMD} -e "s|"/etc/mib.txt"|${LOCALBASE}/share/NeTraMet/mibs/mib.txt|g;" ${WRKSRC}/src/snmplib/mib.c
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${NETRAMET_DOCS}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${FILE} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -1,3 +1,4 @@
bin/LfapMet
bin/NeMaC
bin/NeTraMet
bin/NetFlowMet
@ -43,14 +44,14 @@ bin/srl
%%DATADIR%%/mibs/mib.auckland
%%DATADIR%%/mibs/mib.txt
%%DATADIR%%/mibs/rtm-text.txt
%%DOCSDIR%%/fdutil.pdf
%%DOCSDIR%%/nifty.pdf
%%DOCSDIR%%/nm_rc.pdf
%%DOCSDIR%%/ntmref.pdf
%%DOCSDIR%%/srlguide.pdf
%%DOCSDIR%%/usguide.pdf
%%PORTDOCS%%%%DOCSDIR%%/fdutil.pdf
%%PORTDOCS%%%%DOCSDIR%%/nifty.pdf
%%PORTDOCS%%%%DOCSDIR%%/nm_rc.pdf
%%PORTDOCS%%%%DOCSDIR%%/ntmref.pdf
%%PORTDOCS%%%%DOCSDIR%%/srlguide.pdf
%%PORTDOCS%%%%DOCSDIR%%/usguide.pdf
@dirrm %%DATADIR%%/mibs
@dirrm %%DATADIR%%/examples/non-srl
@dirrm %%DATADIR%%/examples
@dirrm %%DATADIR%%
@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%

View File

@ -7,13 +7,14 @@
PORTNAME= NeTraMet
PORTVERSION= 4.4
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.auckland.ac.nz/pub/iawg/NeTraMet/ \
http://www2.auckland.ac.nz/net/Accounting/
DISTFILES+= NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX} \
${NETRAMET_DOCS}
EXTRACT_ONLY= NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX}
DIST_SUBDIR= netramet
EXTRACT_ONLY= NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Implementation of the Internet Accounting Architecture
@ -39,9 +40,11 @@ post-patch:
@${REINPLACE_CMD} -e "s|"/etc/mib.txt"|${LOCALBASE}/share/NeTraMet/mibs/mib.txt|g;" ${WRKSRC}/src/snmplib/mib.c
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${NETRAMET_DOCS}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${FILE} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View File

@ -1,3 +1,4 @@
bin/LfapMet
bin/NeMaC
bin/NeTraMet
bin/NetFlowMet
@ -43,14 +44,14 @@ bin/srl
%%DATADIR%%/mibs/mib.auckland
%%DATADIR%%/mibs/mib.txt
%%DATADIR%%/mibs/rtm-text.txt
%%DOCSDIR%%/fdutil.pdf
%%DOCSDIR%%/nifty.pdf
%%DOCSDIR%%/nm_rc.pdf
%%DOCSDIR%%/ntmref.pdf
%%DOCSDIR%%/srlguide.pdf
%%DOCSDIR%%/usguide.pdf
%%PORTDOCS%%%%DOCSDIR%%/fdutil.pdf
%%PORTDOCS%%%%DOCSDIR%%/nifty.pdf
%%PORTDOCS%%%%DOCSDIR%%/nm_rc.pdf
%%PORTDOCS%%%%DOCSDIR%%/ntmref.pdf
%%PORTDOCS%%%%DOCSDIR%%/srlguide.pdf
%%PORTDOCS%%%%DOCSDIR%%/usguide.pdf
@dirrm %%DATADIR%%/mibs
@dirrm %%DATADIR%%/examples/non-srl
@dirrm %%DATADIR%%/examples
@dirrm %%DATADIR%%
@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%