Skip to content

Commit

Permalink
Merge branch 'packaging'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Wagner committed Jun 20, 2017
2 parents 1bd9af9 + 1210839 commit cdb129c
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/debian export-ignore
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: php
install:
- sudo apt-get install dpkg-dev debhelper quilt fakeroot
script:
- dpkg-buildpackage -b -us -uc
15 changes: 15 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
intelmq-manager (0.2~20170607) experimental; urgency=low

* Release version 0.2
* Include all docs in package
* fix preprm script in package
* change package format to quilt

-- Sebastian Wagner <[email protected]> Wed, 07 Jun 2017 13:17:17 +0200

intelmq-manager (20170323.2) unstable; urgency=medium

* Fixed dependencies for xenial.

-- Sascha Wilde <[email protected]> Mon, 15 May 2017 13:06:58 +0200

intelmq-manager (20160427.1~beta2) experimental; urgency=low

* Moved html away from /var/www/html, added apache site config.
Expand Down
8 changes: 5 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ Source: intelmq-manager
Maintainer: Sascha Wilde <[email protected]>
Section: net
Priority: optional
Build-Depends: debhelper (>= 9), po-debconf
Build-Depends: debhelper (>= 9), po-debconf, quilt
Standards-Version: 3.9.6
Homepage: https://github.com/certtools/intelmq-manager/

Package: intelmq-manager
Architecture: all
Depends: ${misc:Depends}, apache2, apache2-utils, libapache2-mod-php5, sudo,
adduser, intelmq (>= 1.0.0~dev4~beta8)
Depends: ${misc:Depends}, apache2, apache2-utils,
libapache2-mod-php | libapache2-mod-php5, sudo,
adduser, intelmq (>= 1.0.0~dev5)
Description: Graphical interface to manage configurations for the IntelMQ framework.
A IntelMQ configuration is a set of config files which describe which
bots and processing steps should be run in which order. It is similar
Expand Down
5 changes: 5 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONTRIBUTORS.md
LICENSE
NOTICE
README.md
docs
1 change: 0 additions & 1 deletion debian/intelmq-manager.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
intelmq-manager/* usr/share/intelmq-manager/html/
CONTRIBUTORS.md NOTICE README.md usr/share/doc/intelmq-manager/
debian/01_intelmq-manager etc/sudoers.d/
debian/intelmq.conf etc/apache2/sites-available/
2 changes: 1 addition & 1 deletion debian/intelmq-manager.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

if [ "$1" = "remove" ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke ensite intelmq
apache2_invoke dissite intelmq
fi

#DEBHELPER#
30 changes: 30 additions & 0 deletions debian/patches/fix-paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Description: Fix paths for LSB
Author: Sebastian Wagner <[email protected]>
Last-Update: 2016-07-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/intelmq-manager/php/config.php 2017-06-07 13:06:54.215185776 +0200
+++ b/intelmq-manager/php/config2.php 2017-06-07 13:06:50.351194626 +0200
@@ -1,15 +1,15 @@
<?php

$FILES = array(
- 'bots' => '/opt/intelmq/etc/BOTS',
- 'defaults' => '/opt/intelmq/etc/defaults.conf',
- 'harmonization' => '/opt/intelmq/etc/harmonization.conf',
- 'pipeline' => '/opt/intelmq/etc/pipeline.conf',
- 'runtime' => '/opt/intelmq/etc/runtime.conf',
- 'system' => '/opt/intelmq/etc/system.conf'
+ 'bots' => '/etc/intelmq/BOTS',
+ 'defaults' => '/etc/intelmq/defaults.conf',
+ 'harmonization' => '/etc/intelmq/harmonization.conf',
+ 'pipeline' => '/etc/intelmq/pipeline.conf',
+ 'runtime' => '/etc/intelmq/runtime.conf',
+ 'system' => '/etc/intelmq/system.conf'
);

- $CONTROLLER = "sudo -u intelmq /usr/local/bin/intelmqctl --type json %s";
+ $CONTROLLER = "sudo -u intelmq /usr/bin/intelmqctl --type json %s";

$BOT_CONFIGS_REJECT_REGEX = '/[^[:print:]\n\r\t]/';
$BOT_ID_REJECT_REGEX = '/[^A-Za-z0-9.-]/';
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix-paths.patch
1 change: 0 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ override_dh_fixperms:

override_dh_install:
dh_install
sed -i 's@/usr/local/bin/@/usr/bin/@' debian/intelmq-manager/usr/share/intelmq-manager/html/php/config.php
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)

0 comments on commit cdb129c

Please sign in to comment.