aboutsummaryrefslogtreecommitdiff
path: root/net/analyzer/snort/snort.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-03-06 13:35:14 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-03-06 13:35:14 +0000
commitcd40d46478dd75909d618156a5b2fc07fcff53a1 (patch)
tree47ffd27c767da827c01a06ee3a5423165d4fc408 /net/analyzer/snort/snort.SlackBuild
parent8e5a9c781f37c7508b2f7dd50f21913e14fb3f3a (diff)
downloadslackbuilds-cd40d46478dd75909d618156a5b2fc07fcff53a1.tar.gz
slackbuilds-cd40d46478dd75909d618156a5b2fc07fcff53a1.tar.bz2
snort: added signature checking
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1088 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'net/analyzer/snort/snort.SlackBuild')
-rwxr-xr-xnet/analyzer/snort/snort.SlackBuild39
1 files changed, 37 insertions, 2 deletions
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 <<EOGPG
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+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