From 7e27b5f7dd6cdd82dbe7ca60650f8fb5c99daf25 Mon Sep 17 00:00:00 2001 From: Clive Lin Date: Tue, 30 Oct 2001 12:14:54 +0000 Subject: [PATCH] Support PORTDOCS. PR: ports/31616 Submitted by: KATO Tsuguru --- net/netscript/Makefile | 18 +++++++++++++----- net/netscript/pkg-plist | 30 ++++++++++++++++-------------- 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/net/netscript/Makefile b/net/netscript/Makefile index 32ae68328ed8..9734e6385f5c 100644 --- a/net/netscript/Makefile +++ b/net/netscript/Makefile @@ -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 diff --git a/net/netscript/pkg-plist b/net/netscript/pkg-plist index 8679f2f28bcf..44a9f29e1b74 100644 --- a/net/netscript/pkg-plist +++ b/net/netscript/pkg-plist @@ -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