-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
214 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
intelmq (1.0.2-1) experimental; urgency=low | ||
|
||
* Update to version 1.0.2 | ||
|
||
-- Wagner Sebastian <[email protected]> Mon, 06 Nov 2017 11:36:58 +0100 | ||
|
||
intelmq (1.0.1-2) experimental; urgency=low | ||
|
||
* New base branch 'packaging' for packages | ||
|
||
-- Wagner Sebastian <[email protected]> Wed, 20 Sep 2017 16:26:59 +0200 | ||
|
||
intelmq (1.0.1-1) experimental; urgency=low | ||
|
||
* update to version 1.0.1 | ||
|
@@ -20,6 +32,10 @@ intelmq (1.0.0.rc1-1) experimental; urgency=medium | |
|
||
* update to version 1.0.0.rc1 | ||
|
||
intelmq (1.0.0.dev8-2) experimental; urgency=medium | ||
|
||
* packaging fixes | ||
|
||
-- Sebastian Wagner <[email protected]> Wed, 20 Jun 2017 16:05:00 +0200 | ||
|
||
intelmq (1.0.0.dev8-1) experimental; urgency=medium | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/opt/intelmq/etc/harmonization.conf | ||
/opt/intelmq/etc/BOTS | ||
/opt/intelmq/etc/pipeline.conf | ||
/opt/intelmq/etc/defaults.conf | ||
/opt/intelmq/etc/runtime.conf | ||
/etc/intelmq/harmonization.conf | ||
/etc/intelmq/BOTS | ||
/etc/intelmq/pipeline.conf | ||
/etc/intelmq/defaults.conf | ||
/etc/intelmq/runtime.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,21 @@ Source: intelmq | |
Maintainer: Sascha Wilde <[email protected]> | ||
Section: python | ||
Priority: optional | ||
Build-Depends: dh-python, python-setuptools (>= 0.6b3), python3-setuptools, python3-all, debhelper (>= 9), quilt | ||
X-Python3-Version: >= 3.3.0 | ||
Build-Depends: debhelper (>= 4.1.16), python3-all, python3-setuptools, quilt, dh-python, python-setuptools, dh-systemd, safe-rm, python3-requests, python3-redis, python3-dnspython, python3-psutil, python3-dateutil, python3-termstyle, python3-tz, lsb-release | ||
X-Python3-Version: >= 3.3 | ||
Standards-Version: 3.9.6 | ||
Homepage: https://github.com/certtools/intelmq/ | ||
|
||
Package: intelmq | ||
Architecture: all | ||
Depends: ${misc:Depends}, ${python3:Depends}, | ||
libffi-dev, python3-dateutil (>= 2.0), python3-dnspython (>= 1.11.1), | ||
python3-pymongo, python3-openssl, python3-psutil (>= 1.2.1), | ||
python3-psycopg2, python3-redis (>= 2.10.3), | ||
python3-dateutil (>= 2.5), python3-dnspython (>= 1.11.1), | ||
python3-openssl, python3-psutil (>= 1.2.1), python3-redis (>= 2.10), | ||
python3-requests (>= 2.2.1), python3-termstyle (>= 0.1.10), python3-tz, | ||
redis-server, cron, bash-completion, jq | ||
Recommends: python3-imbox (>= 0.8), python3-pyasn (>= 1.5.0), | ||
redis-server, cron, bash-completion, jq, systemd | ||
Suggests: python3-imbox (>= 0.8), python3-pyasn (>= 1.5.0), | ||
python3-stomp.py (>= 4.1.9), python3-sleekxmpp (>= 1.3.1), | ||
python3-geoip2 (>= 2.2.0) | ||
python3-geoip2 (>= 2.2.0), python3-pymongo, python3-psycopg2 | ||
Description: IntelMQ is a solution for IT security teams (CERTs, CSIRTs, abuse | ||
departments,...) for collecting and processing security feeds (such as log | ||
files) using a message queuing protocol. It's a community driven initiative | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
D /run/intelmq 0755 intelmq intelmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ Description: Undo rename of the dependency dnspython3 | |
The packages was renamed upstream; however, this change does not immediately | ||
affect this package's target distributions. | ||
Author: Gernot Schulz <[email protected]> | ||
Last-Update: 2016-07-20 | ||
Last-Update: 2016-10-04 | ||
--- | ||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | ||
--- a/setup.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Description: Set all paths to LSB | ||
Author: Sebastian Wagner <[email protected]> | ||
Last-Update: 2017-09-20 | ||
--- | ||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | ||
--- a/intelmq/__init__.py | ||
+++ b/intelmq/__init__.py | ||
@@ -1,13 +1,12 @@ | ||
from .version import __version__ | ||
import os | ||
|
||
-ROOT_DIR = "/opt/intelmq/" | ||
-CONFIG_DIR = os.path.join(ROOT_DIR, "etc/") | ||
+CONFIG_DIR = "/etc/intelmq/" | ||
DEFAULT_LOGGING_LEVEL = "INFO" | ||
BOTS_FILE = os.path.join(CONFIG_DIR, "BOTS") | ||
-DEFAULT_LOGGING_PATH = os.path.join(ROOT_DIR, "var/log/") | ||
+DEFAULT_LOGGING_PATH = "/var/log/intelmq/" | ||
DEFAULTS_CONF_FILE = os.path.join(CONFIG_DIR, "defaults.conf") | ||
HARMONIZATION_CONF_FILE = os.path.join(CONFIG_DIR, "harmonization.conf") | ||
PIPELINE_CONF_FILE = os.path.join(CONFIG_DIR, "pipeline.conf") | ||
RUNTIME_CONF_FILE = os.path.join(CONFIG_DIR, "runtime.conf") | ||
-VAR_RUN_PATH = os.path.join(ROOT_DIR, "var/run/") | ||
+VAR_RUN_PATH = "/var/run/intelmq/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
fix-logrotate-path.patch | ||
fix-dnspython-name.patch | ||
fix-intelmq-paths.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,60 @@ | ||
#!/usr/bin/make -f | ||
|
||
CODENAME := $(shell lsb_release -cs) | ||
DOCS_DIR := debian/intelmq/usr/share/doc/intelmq | ||
export INTELMQ_SKIP_REDIS=1 | ||
export INTELMQ_SKIP_INTERNET=1 | ||
|
||
# Compile list of bot READMEs | ||
BOTROOT := intelmq/bots | ||
BOTCATEGORIES := collectors experts outputs parsers | ||
BOTCATEGORIES := $(foreach cat,$(BOTCATEGORIES),$(BOTROOT)/$(cat)) | ||
BOTS := $(foreach bot,$(BOTCATEGORIES),$(wildcard $(bot)/*)) | ||
BOTS := $(foreach bot,$(BOTCATEGORIES),$(wildcard $(bot)/*)) | ||
BOTDOCS := $(foreach bot,$(BOTS),$(wildcard $(bot)/*.md)) | ||
|
||
# This file is based on a version | ||
# automatically generated by stdeb 0.8.5 at | ||
# Wed, 23 Mar 2016 17:49:26 +0000 | ||
export PYBUILD_NAME=intelmq | ||
%: | ||
dh $@ --with python3 --without python2 --buildsystem=pybuild --with quilt | ||
dh $@ --with python3 --without python2 --buildsystem=pybuild --with quilt --with systemd | ||
|
||
build: | ||
if [ $(CODENAME) = 'xenial' ] || [ $(CODENAME) = 'jessie' ]; then\ | ||
patch -p1 setup.py debian/patches/fix-dnspython-name.patch;\ | ||
fi | ||
dh build --with python3 --without python2 --buildsystem=pybuild --with quilt --with systemd | ||
|
||
override_dh_auto_build: | ||
|
||
override_dh_auto_install: $(BOTDOCS) | ||
rm intelmq/bin/rewrite_config_files.py | ||
rm intelmq/bin/intelmq_gen_harm_docs.py | ||
sed -i -e '/#!\/usr\/bin\//d' intelmq/bin/*.py | ||
find . -type f -exec sed -i -f debian/sedfile {} \; | ||
python3 setup.py install --root=debian/intelmq --prefix=/usr | ||
mv debian/intelmq/opt/intelmq/etc/examples/* debian/intelmq/opt/intelmq/etc/ | ||
rmdir debian/intelmq/opt/intelmq/etc/examples | ||
mkdir -p debian/intelmq/opt/intelmq/var/log | ||
mkdir -p debian/intelmq/opt/intelmq/var/lib/bots/file-output | ||
mv debian/intelmq/etc/intelmq/examples/* debian/intelmq/etc/intelmq/ | ||
rmdir debian/intelmq/etc/intelmq/examples | ||
# these are already in /usr/bin/ | ||
#rm %{buildroot}/%{python3_sitelib}/intelmq/bots/experts/maxmind_geoip/update-geoip-data | ||
#rm %{buildroot}/%{python3_sitelib}/intelmq/bots/experts/asn_lookup/update-asn-data | ||
#rm %{buildroot}/%{python3_sitelib}/intelmq/bots/experts/tor_nodes/update-tor-nodes | ||
# and rename those in /usr/bin | ||
mv debian/intelmq/usr/bin/update-geoip-data debian/intelmq/usr/bin/intelmq-update-geoip-data | ||
mv debian/intelmq/usr/bin/update-asn-data debian/intelmq/usr/bin/intelmq-update-asn-data | ||
mv debian/intelmq/usr/bin/update-tor-nodes debian/intelmq/usr/bin/intelmq-update-tor-nodes | ||
# create directories | ||
mkdir -p debian/intelmq/var/log/intelmq | ||
mkdir -p debian/intelmq/var/lib/intelmq/bots/file-output | ||
mkdir -p debian/intelmq/etc/logrotate.d | ||
mkdir -p debian/intelmq/var/lib/intelmq/bots/modify/ | ||
## BOTS | ||
# Include all bot READMEs | ||
for readme in $(foreach bot,$(BOTDOCS),$(subst intelmq/bots/,,$(bot))); \ | ||
do \ | ||
mkdir -p $(DOCS_DIR)/bots/$$(dirname $$readme); \ | ||
cp intelmq/bots/$$readme $(DOCS_DIR)/bots/$$(dirname $$readme); \ | ||
done | ||
|
||
override_dh_systemd_start: | ||
dh_systemd_start --restart-after-upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
s/opt\/intelmq\/var\/run/var\/run\/intelmq/g | ||
s/opt\/intelmq\/var\/log/var\/log\/intelmq/g | ||
s/opt\/intelmq\/var\/lib/var\/lib\/intelmq/g | ||
s/opt\/intelmq\/etc\//etc\/intelmq\//g | ||
s/opt\/intelmq/etc\/intelmq/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0 (native) | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.