mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Der Oinkmaster für Snort ist nun erstmal unter /etc/snort/oinkmaster2.0 abgelegt
Wenn jemand sich bei Snort registriert hat, muss dieses unter oinkmaster2.0/oink code.txt abgelegt werden. Die Rules können dann mit dem Script oinkmaster.update abgeglichen werden. Dieses Script kann dann später vom Webserver gestartet werd en, das müssen wir dann noch anpassen, wenn das Interface eingerichtet wird. Start und Stop ist als init Script eingerichtet. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@514 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 1.2
|
||||
|
||||
VER = 2.0
|
||||
THISAPP = oinkmaster-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
@@ -42,7 +41,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 23dc212f3a5a93ab32253edb379cb724
|
||||
$(DL_FILE)_MD5 = fd37d0391ed7b40b84a1b7907cb89508
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -71,10 +70,9 @@ $(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) && install -m 0644 $(DIR_SRC)/config/cfgroot/oinkmaster.conf $(CONFIG_ROOT)/snort
|
||||
cd $(DIR_APP) && chown -R nobody:nobody /var/ipfire/snort/oinkmaster.conf
|
||||
cd $(DIR_APP) && install -m 0755 oinkmaster.pl /usr/local/bin
|
||||
cd $(DIR_APP) && chown -R nobody:nobody /usr/local/bin/oinkmaster.pl
|
||||
@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/
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
14
lfs/snort
14
lfs/snort
@@ -26,7 +26,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 2.3.3
|
||||
VER = 2.6.1.4
|
||||
|
||||
THISAPP = snort-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
@@ -42,7 +42,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 06bf140893e7cb120aaa9372d10a0100
|
||||
$(DL_FILE)_MD5 = 70e7f297c9fcf1f46d6fa3e1bb4aae49
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -74,13 +74,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && ./configure --prefix=/usr --disable-nls \
|
||||
--sysconfdir=/etc/snort \
|
||||
--enable-linux-smp-stats
|
||||
cd $(DIR_APP) && make $(MAKETUNING)
|
||||
--enable-linux-smp-stats --enable-smb-alerts
|
||||
cd $(DIR_APP) && make
|
||||
cd $(DIR_APP) && make install
|
||||
mv /usr/bin/snort /usr/sbin/
|
||||
-mkdir /etc/snort
|
||||
cd $(DIR_APP) && install -m 0644 rules/*.rules \
|
||||
etc/unicode.map etc/reference.config etc/classification.config /etc/snort
|
||||
|
||||
# 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
|
||||
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