mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Fix build on -current
- Convert to new options framework - Use shebangfix for rulesets - Support staging - Switch to PLIST_FILES PR: ports/184842 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
20704c8c0b
commit
9cd5998520
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337410
@ -3,41 +3,48 @@
|
||||
|
||||
PORTNAME= netscript
|
||||
PORTVERSION= 1.7.1
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= SF \
|
||||
http://fakehalo.deadpig.org/%SUBDIR%/
|
||||
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Portable/multi-platform lightweight TCP socket scripting
|
||||
|
||||
WANT_GNOME= yes
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES GTK1
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
USES= ncurses shebangfix
|
||||
SHEBANG_FILES= examples/*.ruleset examples/gui/*.ruleset \
|
||||
examples/ncurses/*.ruleset
|
||||
SHEBANG_LANG= netscript
|
||||
netscript_OLD_CMD= /usr/bin/netscript
|
||||
netscript_CMD= ${LOCALBASE}/bin/netscript
|
||||
|
||||
.if ${HAVE_GNOME:Mgtk12}!=""
|
||||
USE_GNOME+= gtk12
|
||||
PKGNAMESUFFIX= -gtk
|
||||
ALL_TARGET= gbsd
|
||||
.else
|
||||
ALL_TARGET= bsd
|
||||
.endif
|
||||
CFLAGS+= -DNCURSES -DARPA -DBSD_T -Wl,--export-dynamic
|
||||
LDFLAGS+= -lcurses
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/Makefile
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
PLIST_FILES= bin/netscript
|
||||
|
||||
GTK1_USE= GNOME=gtk12
|
||||
GTK1_CFLAGS= -DGTK
|
||||
GTK1_CPPFLAGS= $$(gtk-config --cflags gthread)
|
||||
GTK1_LDFLAGS= $$(gtk-config --libs gthread)
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} netscript.c \
|
||||
-o netscript ${LDFLAGS})
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/netscript ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
@${CHMOD} -R og+r ${EXAMPLESDIR}
|
||||
@${CHMOD} og+x ${EXAMPLESDIR}/gui ${EXAMPLESDIR}/ncurses
|
||||
.endif
|
||||
(cd ${WRKSRC} && ${INSTALL_PROGRAM} netscript \
|
||||
${STAGEDIR}${PREFIX}/bin)
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} README \
|
||||
${STAGEDIR}${DOCSDIR})
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
|
||||
${STAGEDIR}${EXAMPLESDIR})
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,28 +0,0 @@
|
||||
bin/netscript
|
||||
%%PORTDOCS%%share/doc/netscript/README
|
||||
%%PORTDOCS%%share/examples/netscript/README
|
||||
%%PORTDOCS%%share/examples/netscript/dict.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/extern.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/fingerd.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/ftp.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/gui/README
|
||||
%%PORTDOCS%%share/examples/netscript/gui/gdict.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/gui/gidentd.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/ncurses/README
|
||||
%%PORTDOCS%%share/examples/netscript/ncurses/nfingerd.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/ncurses/nidentd.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/ncurses/nirc.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/pop3.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/quake.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/smtp.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/telnet.ruleset
|
||||
%%PORTDOCS%%share/examples/netscript/telnetd.ruleset
|
||||
%%PORTDOCS%%@dirrm share/doc/netscript
|
||||
%%PORTDOCS%%@dirrm share/examples/netscript/gui
|
||||
%%PORTDOCS%%@dirrm share/examples/netscript/ncurses
|
||||
%%PORTDOCS%%@dirrm share/examples/netscript
|
Loading…
Reference in New Issue
Block a user