mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
265500d7d8
depending on $PREFIX/bin/gpg for security/gnupg1 (1.4.x) is not correct. To work around this, change dependency line from bin/gpg to bin/gpgv which exists in security/gnupg1 port only. Spotted by: ume
112 lines
3.6 KiB
Makefile
112 lines
3.6 KiB
Makefile
# New ports collection makefile for: sguil-client
|
|
# Date created: 2 Nov 2006
|
|
# Whom: Paul Schmehl <pauls@utdallas.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sguil-client
|
|
PORTVERSION= 0.6.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= sguil
|
|
|
|
MAINTAINER= pauls@utdallas.edu
|
|
COMMENT= Sguil is a network security monitoring program
|
|
|
|
RUN_DEPENDS= dtplite:${PORTSDIR}/devel/tcllib \
|
|
gpgv:${PORTSDIR}/security/gnupg1 \
|
|
${LOCALBASE}/lib/tclx8.4/tclx.tcl:${PORTSDIR}/lang/tclX \
|
|
${LOCALBASE}/lib/iwidgets/iwidgets.tcl:${PORTSDIR}/x11-toolkits/iwidgets
|
|
|
|
OPTIONS= TLS "Include openssl support" off \
|
|
WIRESHARK "Install wireshark" off \
|
|
AUDIO "Install Festival Speech Synthesis" off
|
|
|
|
NO_BUILD= YES
|
|
WISH_CMD?= wish8.4
|
|
WRKSRC= ${WRKDIR}/sguil-${PORTVERSION}
|
|
SUB_LIST= SGUILDIR=${SGUILDIR}
|
|
SUB_FILES= pkg-message
|
|
PLIST_SUB= SGUILDIR=${SGUILDIR} LIBDIR=${LIBDIR} IMAGEDIR=${IMAGEDIR} SCRIPTDIR=${SCRIPTDIR}
|
|
SGUILDIR?= sguil-client
|
|
LIBDIR?= ${SGUILDIR}/lib
|
|
IMAGEDIR?= ${LIBDIR}/tablelist4.1/images
|
|
SCRIPTDIR?= ${LIBDIR}/tablelist4.1/scripts
|
|
|
|
PORTDOCS= CHANGES FAQ INSTALL INSTALL.openbsd LICENSE.QPL \
|
|
OPENSSL.README TODO UPGRADE USAGE sguildb.dia
|
|
|
|
LIBFILES= SguilUtil.tcl dkffont.tcl email17.tcl extdata.tcl guilib.tcl nessusheader.html \
|
|
qrybuild.tcl qrylib.tcl report.tcl sancp.tcl sellib.tcl sound.tcl stdquery.tcl whois.tcl
|
|
|
|
IMAGES= DarkLineDown10x9.xbm DarkLineDown12x11.xbm DarkLineDown8x7.xbm DarkLineUp10x9.xbm \
|
|
DarkLineUp12x11.xbm DarkLineUp8x7.xbm LightLineDown10x9.xbm LightLineDown12x11.xbm \
|
|
LightLineDown8x7.xbm LightLineUp10x9.xbm LightLineUp12x11.xbm LightLineUp8x7.xbm \
|
|
TriangleDown10x9.xbm TriangleDown12x11.xbm TriangleDown7x4.xbm TriangleDown7x7.xbm \
|
|
TriangleDown8x5.xbm TriangleDown8x7.xbm TriangleDown9x5.xbm TriangleUp10x9.xbm \
|
|
TriangleUp12x11.xbm TriangleUp7x4.xbm TriangleUp7x7.xbm TriangleUp8x5.xbm \
|
|
TriangleUp8x7.xbm TriangleUp9x5.xbm checked.xbm unchecked.xbm
|
|
|
|
SCRIPTS= mwutil.tcl repair.tcl tablelistBind.tcl tablelistConfig.tcl tablelistEdit.tcl \
|
|
tablelistMove.tcl tablelistSort.tcl tablelistThemes.tcl tablelistUtil.tcl \
|
|
tablelistWidget.tcl tclIndex
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_TLS)
|
|
LIB_DEPENDS+= tls:${PORTSDIR}/devel/tcltls
|
|
.endif
|
|
|
|
.if defined(WITH_WIRESHARK)
|
|
RUN_DEPENDS+= wireshark:${PORTSDIR}/net/wireshark
|
|
.endif
|
|
|
|
.if defined(WITH_AUDIO)
|
|
RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
|
|
.endif
|
|
|
|
post-patch:
|
|
.for f in sguil.tk
|
|
@${REINPLACE_CMD} -e 's:exec wish:exec ${PREFIX}/bin/${WISH_CMD}:g' \
|
|
${WRKSRC}/client/${f}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/bin/${SGUILDIR}
|
|
${INSTALL_SCRIPT} -m 751 ${WRKSRC}/client/sguil.tk \
|
|
${PREFIX}/bin/${SGUILDIR}/sguil.tk
|
|
.for f in sguil.conf
|
|
${INSTALL_DATA} ${WRKSRC}/client/${f} \
|
|
${PREFIX}/etc/${f}-sample
|
|
.endfor
|
|
.for f in ${LIBFILES}
|
|
@${MKDIR} ${PREFIX}/bin/${LIBDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/client/lib/${f} ${PREFIX}/bin/${LIBDIR}/${f}
|
|
.endfor
|
|
.for f in tablelist.tcl tablelistPublic.tcl COPYRIGHT.txt
|
|
@${MKDIR} ${PREFIX}/bin/${LIBDIR}/tablelist4.1
|
|
${INSTALL_DATA} ${WRKSRC}/client/lib/tablelist4.1/${f} \
|
|
${PREFIX}/bin/${LIBDIR}/tablelist4.1/${f}
|
|
.endfor
|
|
.for f in ${IMAGES}
|
|
@${MKDIR} ${PREFIX}/bin/${IMAGEDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/client/lib/tablelist4.1/images/${f} \
|
|
${PREFIX}/bin/${IMAGEDIR}/${f}
|
|
.endfor
|
|
.for f in ${SCRIPTS}
|
|
@${MKDIR} ${PREFIX}/bin/${SCRIPTDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/client/lib/tablelist4.1/scripts/${f} \
|
|
${PREFIX}/bin/${SCRIPTDIR}/${f}
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} \
|
|
${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|