- Update to 0.8.0

- Trim header
- Optiongn

PR:		174592
Submitted by:	maintainer
This commit is contained in:
Martin Wilke 2013-02-18 01:03:14 +00:00
parent 262e62789b
commit c712cce2be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312468
7 changed files with 142 additions and 155 deletions

View file

@ -1,13 +1,8 @@
# New ports collection makefile for: sguil-client
# Date created: 2 Nov 2006
# Whom: Paul Schmehl <pauls@utdallas.edu>
#
# Created by: Paul Schmehl <pauls@utdallas.edu>
# $FreeBSD$
#
PORTNAME= sguil-client
PORTVERSION= 0.7.0
PORTREVISION= 2
PORTVERSION= 0.8.0
CATEGORIES= security
MASTER_SITES= SF/sguil/sguil/sguil-${PORTVERSION}
@ -16,58 +11,50 @@ COMMENT= Sguil is a network security monitoring program
LIB_DEPENDS= tls:${PORTSDIR}/devel/tcltls
RUN_DEPENDS= dtplite:${PORTSDIR}/devel/tcllib \
gpg2:${PORTSDIR}/security/gnupg \
${LOCALBASE}/lib/tclx8.4/tclx.tcl:${PORTSDIR}/lang/tclX \
${LOCALBASE}/lib/iwidgets/iwidgets.tcl:${PORTSDIR}/x11-toolkits/iwidgets
${LOCALBASE}/lib/iwidgets/iwidgets.tcl:${PORTSDIR}/x11-toolkits/iwidgets \
gpg2:${PORTSDIR}/security/gnupg
OPTIONS= WIRESHARK "Install wireshark" off \
AUDIO "Install Festival Speech Synthesis" off
LICENSE_NAME= QPLv1.0 COPYRIGHT
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/doc/LICENSE.QPL
LICENSE_PERMS= auto-accept
LICENSE_FILE= ${WRKSRC}/client/lib/tablelist4.1/COPYRIGHT.txt
LICENSE_PERMS= auto-accept
NO_BUILD= YES
WISH_CMD?= wish8.4
OPTIONS_DEFINE= AUDIO SANCP WIRESHARK
AUDIO_DESC= Install Festival Speech Synthesis
SANCP_DESC= Use sancp
WIRESHARK_DESC= Install wireshark
NO_BUILD= yes
USE_TK_WRAPPER= yes
USE_TCL= yes
WRKSRC= ${WRKDIR}/sguil-${PORTVERSION}
SUB_LIST= SGUILDIR=${SGUILDIR}
SUB_FILES= pkg-message
PLIST_SUB= SGUILDIR=${SGUILDIR} LIBDIR=${LIBDIR} IMAGEDIR=${IMAGEDIR} SCRIPTDIR=${SCRIPTDIR}
PLIST_SUB= SGUILDIR=${SGUILDIR}
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
PORTDOCS1= README
PORTDOCS2= CHANGES FAQ INSTALL INSTALL.openbsd 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
LIBFILES= SguilUtil.tcl dkffont.tcl email17.tcl extdata.tcl sellib.tcl sancp.tcl \
sound.tcl guilib.tcl qrybuild.tcl qrylib.tcl report.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
.include <bsd.port.options.mk>
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_WIRESHARK)
RUN_DEPENDS+= wireshark:${PORTSDIR}/net/wireshark
.endif
.if defined(WITH_AUDIO)
.if $(PORT_OPTIONS:MAUDIO)
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
.if ${PORT_OPTIONS:MSANCP}
RUN_DEPENDS+= sancp:${PORTSDIR}/security/sancp
.endif
.if $(PORT_OPTIONS:MWIRESHARK)
RUN_DEPENDS+= wireshark:${PORTSDIR}/net/wireshark
.endif
do-install:
@${MKDIR} ${PREFIX}/bin/${SGUILDIR}
@ -78,30 +65,23 @@ do-install:
${PREFIX}/etc/${f}-sample
.endfor
.for f in ${LIBFILES}
@${MKDIR} ${PREFIX}/bin/${LIBDIR}
${INSTALL_DATA} ${WRKSRC}/client/lib/${f} ${PREFIX}/bin/${LIBDIR}/${f}
@${MKDIR} ${PREFIX}/bin/${SGUILDIR}/lib
${INSTALL_DATA} ${WRKSRC}/client/lib/${f} ${PREFIX}/bin/${SGUILDIR}/lib/${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}
.for f in sguil_logo_h.gif
@${MKDIR} ${PREFIX}/bin/${SGUILDIR}/images
${INSTALL_DATA} ${WRKSRC}/client/lib/images/${f} \
${PREFIX}/bin/${SGUILDIR}/images/${f}
.endfor
.if !defined(NOPORTDOCS)
(cd ${WRKSRC}/client/lib/tablelist4.1 && ${COPYTREE_SHARE} \* \
${PREFIX}/bin/${SGUILDIR}/lib/tablelist4.1/)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} \
${PORTDOCS} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS1} ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS2} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (sguil-client-0.7.0.tar.gz) = a12aab9477edc47cce6f1dfa344808e4950c07fdce21691bf4730a43a273ec45
SIZE (sguil-client-0.7.0.tar.gz) = 206713
SHA256 (sguil-client-0.8.0.tar.gz) = bbce49630fd6264591a1e890cba3bad11cf18e9327c9f9cc02cb6dc8a19746bd
SIZE (sguil-client-0.8.0.tar.gz) = 216433

View file

@ -1,20 +1,15 @@
--- client/sguil.conf.orig 2008-04-04 21:41:20.000000000 -0500
+++ client/sguil.conf 2008-04-04 21:59:36.000000000 -0500
@@ -12,11 +12,11 @@
set SERVERHOST demo.sguil.net
# Where any required sguil libraries are (like the font chooser).
-set SGUILLIB ./lib
+set SGUILLIB /usr/local/lib/sguil-client/
# Debug 1=on 0=off This is VERY chatty
--- client/sguil.conf.orig 2012-11-15 22:46:24.000000000 +0000
+++ client/sguil.conf 2012-11-15 22:48:28.000000000 +0000
@@ -18,7 +18,7 @@
set DEBUG 1
# PATH to tls lib if needed (tcl can usually find this by default)
-#set TLS_PATH /usr/lib/tls1.4/libtls1.4.so
+set TLS_PATH /usr/local/lib/libtls.so
+#set TLS_PATH /usr/local/lib/libtls.so
# win32 example
#set TLS_PATH "c:/tcl/lib/tls1.4/tls14.dll"
# Path to a whois script.
@@ -41,12 +41,12 @@
@@ -46,12 +46,12 @@
# If you have festival installed, then you can have alerts spoken to
# you. Set the path to the festival binary here. If you are using
# speechd from speechio.org, then leave this commented out.
@ -22,19 +17,19 @@
+set FESTIVAL_PATH /usr/local/bin/festival
# win32 example
# set FESTIVAL_PATH "c:\festival\bin\festival.exe"
#set WHOIS_PATH /common/bin/awhois.sh
# Path to wireshark (ethereal)
-set WIRESHARK_PATH /usr/sbin/wireshark
+set WIRESHARK_PATH /usr/local/bin/wireshark
# win32 example
# set WIRESHARK_PATH "c:/progra~1/wireshark/wireshark.exe"
# Where to save the temporary raw data files on the client system
@@ -55,7 +55,7 @@
# win32 example
@@ -62,7 +62,7 @@
# set WIRESHARK_STORE_DIR "c:/tmp"
# Favorite browser for looking at sig info on snort.org
-set BROWSER_PATH /usr/bin/firefox
+set BROWSER_PATH /usr/local/bin/firefox
# win32 example (IE)
# set BROWSER_PATH c:/progra~1/intern~1/iexplore.exe
#

View file

@ -1,6 +1,6 @@
--- client/sguil.tk.orig 2008-04-10 20:14:26.000000000 -0500
+++ client/sguil.tk 2008-04-10 20:42:55.000000000 -0500
@@ -77,7 +77,7 @@
--- client/sguil.tk.orig 2012-11-15 22:24:35.000000000 +0000
+++ client/sguil.tk 2012-11-15 22:26:33.000000000 +0000
@@ -88,7 +88,7 @@
# Load iwidgets and namespaces
if [catch {package require Iwidgets} iwidgetsVersion] {
@ -9,7 +9,7 @@
puts "The iwidgets package is part of the incr tcl extension and is"
puts "available as a port/package most systems."
puts "See http://www.tcltk.com/iwidgets/ for more info."
@@ -2017,11 +2017,11 @@
@@ -2053,11 +2053,11 @@
set CONF_FILE $env(HOME)/sguil.conf
} elseif { [file exists ./sguil.conf] } {
set CONF_FILE ./sguil.conf
@ -18,11 +18,11 @@
- [file exists /etc/sguil/sguil.conf] &&\
- [file readable /etc/sguil/sguil.conf] } {
- set CONF_FILE /etc/sguil/sguil.conf
+ } elseif { [file exists /usr/local/etc/sguil-client] &&\
+ [file isdirectory /usr/local/etc/sguil-client] &&\
+ [file exists /usr/local/etc/sguil-client/sguil.conf] &&\
+ [file readable /usr/local/etc/sguil-client/sguil.conf] } {
+ set CONF_FILE /usr/local/etc/sguil-client/sguil.conf
+ } elseif { [file exists /usr/local/etc/sguil] &&\
+ [file isdirectory /usr/local/etc/sguil] &&\
+ [file exists /usr/local/etc/sguil/sguil.conf] &&\
+ [file readable /usr/local/etc/sguil/sguil.conf] } {
+ set CONF_FILE /usr/local/etc/sguil/sguil.conf
} else {
puts "Couldn't determine where the sguil config file is"
puts "Looked for $env(HOME)/sguil.conf and ./sguil.conf."

View file

@ -3,7 +3,7 @@ on how to use the sguil client to connect to and maintain
the sguil network monitoring system.
NOTE: This port installs a sguil.conf-sample file in
%%PREFIX%%/etc/. If you are installing this on a
%%PREFIX%%/bin/%%SGUILDIR%%/. If you are installing this on a
multi-user system, each user might want to have a
sguil.conf file in their home directory. Sguil.tk sources
the home directory first for the sguil.conf file.

View file

@ -5,7 +5,7 @@ The actual interface and GUI server are written in tcl/tk
in order to function properly.
The client requires tls, gpg, iwidgets and other tcl packages and may
also use wireshark and festival depending on your selection
also use wireshark, sancp and festival depending on your selection
of options. Run "make config" in the port to see what options
are available.

View file

@ -1,63 +1,75 @@
bin/%%LIBDIR%%/SguilUtil.tcl
bin/%%LIBDIR%%/dkffont.tcl
bin/%%LIBDIR%%/email17.tcl
bin/%%LIBDIR%%/extdata.tcl
bin/%%LIBDIR%%/guilib.tcl
bin/%%LIBDIR%%/nessusheader.html
bin/%%LIBDIR%%/qrybuild.tcl
bin/%%LIBDIR%%/qrylib.tcl
bin/%%LIBDIR%%/report.tcl
bin/%%LIBDIR%%/sancp.tcl
bin/%%LIBDIR%%/sellib.tcl
bin/%%LIBDIR%%/sound.tcl
bin/%%LIBDIR%%/stdquery.tcl
bin/%%LIBDIR%%/whois.tcl
bin/%%IMAGEDIR%%/DarkLineDown10x9.xbm
bin/%%IMAGEDIR%%/DarkLineDown12x11.xbm
bin/%%IMAGEDIR%%/DarkLineDown8x7.xbm
bin/%%IMAGEDIR%%/DarkLineUp10x9.xbm
bin/%%IMAGEDIR%%/DarkLineUp12x11.xbm
bin/%%IMAGEDIR%%/DarkLineUp8x7.xbm
bin/%%IMAGEDIR%%/LightLineDown10x9.xbm
bin/%%IMAGEDIR%%/LightLineDown12x11.xbm
bin/%%IMAGEDIR%%/LightLineDown8x7.xbm
bin/%%IMAGEDIR%%/LightLineUp10x9.xbm
bin/%%IMAGEDIR%%/LightLineUp12x11.xbm
bin/%%IMAGEDIR%%/LightLineUp8x7.xbm
bin/%%IMAGEDIR%%/TriangleDown10x9.xbm
bin/%%IMAGEDIR%%/TriangleDown12x11.xbm
bin/%%IMAGEDIR%%/TriangleDown7x4.xbm
bin/%%IMAGEDIR%%/TriangleDown7x7.xbm
bin/%%IMAGEDIR%%/TriangleDown8x5.xbm
bin/%%IMAGEDIR%%/TriangleDown8x7.xbm
bin/%%IMAGEDIR%%/TriangleDown9x5.xbm
bin/%%IMAGEDIR%%/TriangleUp10x9.xbm
bin/%%IMAGEDIR%%/TriangleUp12x11.xbm
bin/%%IMAGEDIR%%/TriangleUp7x4.xbm
bin/%%IMAGEDIR%%/TriangleUp7x7.xbm
bin/%%IMAGEDIR%%/TriangleUp8x5.xbm
bin/%%IMAGEDIR%%/TriangleUp8x7.xbm
bin/%%IMAGEDIR%%/TriangleUp9x5.xbm
bin/%%IMAGEDIR%%/checked.xbm
bin/%%IMAGEDIR%%/unchecked.xbm
bin/%%SCRIPTDIR%%/mwutil.tcl
bin/%%SCRIPTDIR%%/repair.tcl
bin/%%SCRIPTDIR%%/tablelistBind.tcl
bin/%%SCRIPTDIR%%/tablelistConfig.tcl
bin/%%SCRIPTDIR%%/tablelistEdit.tcl
bin/%%SCRIPTDIR%%/tablelistMove.tcl
bin/%%SCRIPTDIR%%/tablelistSort.tcl
bin/%%SCRIPTDIR%%/tablelistThemes.tcl
bin/%%SCRIPTDIR%%/tablelistUtil.tcl
bin/%%SCRIPTDIR%%/tablelistWidget.tcl
bin/%%SCRIPTDIR%%/tclIndex
bin/%%LIBDIR%%/tablelist4.1/tablelist.tcl
bin/%%LIBDIR%%/tablelist4.1/tablelistPublic.tcl
bin/%%LIBDIR%%/tablelist4.1/COPYRIGHT.txt
bin/%%SGUILDIR%%/images/sguil_logo_h.gif
bin/%%SGUILDIR%%/lib/SguilUtil.tcl
bin/%%SGUILDIR%%/lib/dkffont.tcl
bin/%%SGUILDIR%%/lib/email17.tcl
bin/%%SGUILDIR%%/lib/extdata.tcl
bin/%%SGUILDIR%%/lib/guilib.tcl
bin/%%SGUILDIR%%/lib/qrybuild.tcl
bin/%%SGUILDIR%%/lib/qrylib.tcl
bin/%%SGUILDIR%%/lib/report.tcl
bin/%%SGUILDIR%%/lib/sancp.tcl
bin/%%SGUILDIR%%/lib/sellib.tcl
bin/%%SGUILDIR%%/lib/sound.tcl
bin/%%SGUILDIR%%/lib/stdquery.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/COPYRIGHT.txt
bin/%%SGUILDIR%%/lib/tablelist4.1/images/DarkLineDown10x9.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/DarkLineDown12x11.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/DarkLineDown8x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/DarkLineUp10x9.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/DarkLineUp12x11.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/DarkLineUp8x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/LightLineDown10x9.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/LightLineDown12x11.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/LightLineDown8x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/LightLineUp10x9.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/LightLineUp12x11.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/LightLineUp8x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleDown10x9.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleDown12x11.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleDown7x4.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleDown7x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleDown8x5.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleDown8x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleDown9x5.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleUp10x9.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleUp12x11.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleUp7x4.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleUp7x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleUp8x5.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleUp8x7.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/TriangleUp9x5.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/checked.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/images/unchecked.xbm
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/mwutil.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/repair.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistBind.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistConfig.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistEdit.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistMove.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistSort.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistThemes.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistUtil.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tablelistWidget.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/scripts/tclIndex
bin/%%SGUILDIR%%/lib/tablelist4.1/tablelist.tcl
bin/%%SGUILDIR%%/lib/tablelist4.1/tablelistPublic.tcl
bin/%%SGUILDIR%%/lib/whois.tcl
bin/%%SGUILDIR%%/sguil.tk
etc/sguil.conf-sample
@dirrm bin/%%SCRIPTDIR%%
@dirrm bin/%%IMAGEDIR%%
@dirrm bin/%%LIBDIR%%/tablelist4.1
@dirrm bin/%%LIBDIR%%
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/INSTALL.openbsd
%%PORTDOCS%%%%DOCSDIR%%/OPENSSL.README
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%%%DOCSDIR%%/UPGRADE
%%PORTDOCS%%%%DOCSDIR%%/USAGE
%%PORTDOCS%%%%DOCSDIR%%/sguildb.dia
@dirrm bin/%%SGUILDIR%%/lib/tablelist4.1/scripts
@dirrm bin/%%SGUILDIR%%/lib/tablelist4.1/images
@dirrm bin/%%SGUILDIR%%/lib/tablelist4.1
@dirrm bin/%%SGUILDIR%%/lib
@dirrm bin/%%SGUILDIR%%/images
@dirrm bin/%%SGUILDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%