From: rhatto Date: Tue, 6 Mar 2007 13:35:14 +0000 (+0000) Subject: snort: added signature checking X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cd40d46478dd75909d618156a5b2fc07fcff53a1;p=slackbuilds.git snort: added signature checking git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1088 370017ae-e619-0410-ac65-c121f96126d4 --- 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 <