mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Snort-Fixes
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@517 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -71,8 +71,8 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && chown -R nobody:nobody oinkmaster.pl
|
||||
cd $(DIR_APP) && cp -R $(DIR_SRC)/$(THISAPP) /etc/snort
|
||||
cp $(DIR_SRC)/$(THISAPP)/oinkmaster.pl /usr/local/bin/
|
||||
cd $(DIR_APP) && chown nobody:nobody oinkmaster.pl
|
||||
cd $(DIR_APP) && cp -f oinkmaster.conf /var/ipfire/snort/
|
||||
cd $(DIR_APP) && install -m 0755 oinkmaster.pl /usr/local/bin/
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
17
lfs/snort
17
lfs/snort
@@ -38,11 +38,17 @@ TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE)
|
||||
objects = $(DL_FILE) \
|
||||
Community-Rules-20070503.tar.gz \
|
||||
bleeding.rules-20070503.tar.gz
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
Community-Rules-20070503.tar.gz = $(DL_FROM)/Community-Rules-20070503.tar.gz
|
||||
bleeding.rules-20070503.tar.gz = $(DL_FROM)/bleeding.rules-20070503.tar.gz
|
||||
|
||||
$(DL_FILE)_MD5 = 70e7f297c9fcf1f46d6fa3e1bb4aae49
|
||||
Community-Rules-20070503.tar.gz_MD5 = f236b8a4ac12e99d3e7bd81bf3b5a482
|
||||
bleeding.rules-20070503.tar.gz_MD5 = f18f0a08c139b8205270b41a534f15d7
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -78,11 +84,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
cd $(DIR_APP) && make
|
||||
cd $(DIR_APP) && make install
|
||||
mv /usr/bin/snort /usr/sbin/
|
||||
-mkdir /etc/snort
|
||||
-mkdir -p /etc/snort/rules
|
||||
|
||||
# Snort 2.6.X dount use the Directory rules
|
||||
# cd $(DIR_APP) && install -m 0644 rules/*.rules \
|
||||
# etc/unicode.map etc/reference.config etc/classification.config /etc/snort
|
||||
tar xvfz $(DIR_DL)/Community-Rules-20070503.tar.gz -C /etc/snort/
|
||||
tar xvfz $(DIR_DL)/bleeding.rules-20070503.tar.gz -C /etc/snort/
|
||||
cd $(DIR_APP) && install -m 0644 etc/unicode.map \
|
||||
etc/reference.config etc/classification.config /etc/snort
|
||||
install -m 0644 $(DIR_SRC)/config/snort/snort.conf /etc/snort
|
||||
chown -R nobody:nobody /etc/snort
|
||||
-mkdir -p /var/log/snort
|
||||
|
||||
Reference in New Issue
Block a user