From cd40d46478dd75909d618156a5b2fc07fcff53a1 Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 6 Mar 2007 13:35:14 +0000 Subject: snort: added signature checking git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1088 370017ae-e619-0410-ac65-c121f96126d4 --- net/analyzer/snort/snort.SlackBuild | 39 +++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'net/analyzer/snort') diff --git a/net/analyzer/snort/snort.SlackBuild b/net/analyzer/snort/snort.SlackBuild index 5f15f70b..ce0ab6ea 100755 --- a/net/analyzer/snort/snort.SlackBuild +++ b/net/analyzer/snort/snort.SlackBuild @@ -54,10 +54,45 @@ URL="http://www.snort.org/dl/current/$SRC" SRC_DIR="$SRC_DIR/$PACKAGE" mkdir -p $SRC_DIR -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET +if [ "$RTOOL" == "wget" ]; then + if [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET + fi + if [ ! -f "$SRC_DIR/$SRC.sig" ]; then + wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" || exit $ERROR_WGET + fi fi +gpg --import <