1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Support PORTDOCS.

PR: ports/31616
Submitted by: KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
Clive Lin 2001-10-30 12:14:54 +00:00
parent 9bacfd3afd
commit 7e27b5f7dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49376
2 changed files with 29 additions and 19 deletions

View File

@ -8,18 +8,26 @@
PORTNAME= netscript
PORTVERSION= 1.6.3
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.realhalo.org/netscript/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
ALL_TARGET= bsd
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -DARPA -DBSD_T netscript.c -o netscript
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/netscript ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/examples/netscript
(cd ${WRKSRC}/examples ; \
${INSTALL_DATA} * ${PREFIX}/share/examples/netscript)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,15 +1,17 @@
bin/netscript
share/examples/netscript/README
share/examples/netscript/dict.ruleset
share/examples/netscript/fingerd.ruleset
share/examples/netscript/ftp.ruleset
share/examples/netscript/http.ruleset
share/examples/netscript/httpd.ruleset
share/examples/netscript/identd.ruleset
share/examples/netscript/irc.ruleset
share/examples/netscript/irc2.ruleset
share/examples/netscript/pop3.ruleset
share/examples/netscript/smtp.ruleset
share/examples/netscript/telnet.ruleset
share/examples/netscript/telnetd.ruleset
@dirrm share/examples/netscript
%%PORTDOCS%%share/doc/netscript/README
%%PORTDOCS%%share/examples/netscript/README
%%PORTDOCS%%share/examples/netscript/dict.ruleset
%%PORTDOCS%%share/examples/netscript/fingerd.ruleset
%%PORTDOCS%%share/examples/netscript/ftp.ruleset
%%PORTDOCS%%share/examples/netscript/http.ruleset
%%PORTDOCS%%share/examples/netscript/httpd.ruleset
%%PORTDOCS%%share/examples/netscript/identd.ruleset
%%PORTDOCS%%share/examples/netscript/irc.ruleset
%%PORTDOCS%%share/examples/netscript/irc2.ruleset
%%PORTDOCS%%share/examples/netscript/pop3.ruleset
%%PORTDOCS%%share/examples/netscript/smtp.ruleset
%%PORTDOCS%%share/examples/netscript/telnet.ruleset
%%PORTDOCS%%share/examples/netscript/telnetd.ruleset
%%PORTDOCS%%@dirrm share/examples/netscript
%%PORTDOCS%%@dirrm share/doc/netscript