Compare commits

...

143 commits

Author SHA1 Message Date
waja c163eb8aad
Merge pull request #5 from waja/dependabot-github_actions-actions-checkout-4
Bump actions/checkout from 3 to 4
2023-09-05 08:58:21 +02:00
dependabot[bot] 06800998c1
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 04:32:37 +00:00
waja 5e6413b319
Merge pull request #4 from waja/dependabot-github_actions-dawidd6-action-debian-package-1.5.0 2023-03-07 06:06:11 +01:00
dependabot[bot] e9f87cb65c
Bump dawidd6/action-debian-package from 1.4.4 to 1.5.0
Bumps [dawidd6/action-debian-package](https://github.com/dawidd6/action-debian-package) from 1.4.4 to 1.5.0.
- [Release notes](https://github.com/dawidd6/action-debian-package/releases)
- [Commits](https://github.com/dawidd6/action-debian-package/compare/v1.4.4...v1.5.0)

---
updated-dependencies:
- dependency-name: dawidd6/action-debian-package
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 05:00:23 +00:00
Jan Wagner 71cb79107c New changelog 2023-01-23 12:11:50 +00:00
Jan Wagner 71b92a2973 Prepare release 2023-01-23 12:07:35 +00:00
Jan Wagner 353f35ecb6 Adding unitfile 2023-01-23 11:06:31 +00:00
Jan Wagner dcdc452cb0 Set Rules-Requires-Root: no.
Changes-By: lintian-brush
Fixes: lintian: silent-on-rules-requiring-root
See-also: https://lintian.debian.org/tags/silent-on-rules-requiring-root.html
2023-01-23 10:06:46 +00:00
Jan Wagner 0792689129 Merge branch 'master' of github.com:waja/dns-flood-detector 2023-01-18 14:41:12 +00:00
Jan Wagner 14e7160442 Drop lsb-base, sysvinit-utils is essential 2023-01-18 14:24:25 +00:00
waja 8e909d496b
Merge pull request #3 from waja/dependabot-github_actions-dawidd6-action-debian-package-1.4.4
Bump dawidd6/action-debian-package from 1.4.0 to 1.4.4
2023-01-16 06:53:04 +01:00
dependabot[bot] 624a5fbbb2
Bump dawidd6/action-debian-package from 1.4.0 to 1.4.4
Bumps [dawidd6/action-debian-package](https://github.com/dawidd6/action-debian-package) from 1.4.0 to 1.4.4.
- [Release notes](https://github.com/dawidd6/action-debian-package/releases)
- [Commits](https://github.com/dawidd6/action-debian-package/compare/v1.4.0...v1.4.4)

---
updated-dependencies:
- dependency-name: dawidd6/action-debian-package
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 04:11:50 +00:00
Jan Wagner 2c4d7f10d0 CI: disable not working jobs 2023-01-13 09:49:24 +00:00
Jan Wagner 7d9b1d117a Merge branch 'master' of github.com:waja/dns-flood-detector 2023-01-11 14:58:21 +00:00
Jan Wagner 2d78c7ef25 Bump Standards-Version to 4.6.2 2023-01-11 14:52:10 +00:00
Jan Wagner ab52f4a953 Bump debhelper from old 12 to 13.
Changes-By: lintian-brush
Fixes: lintian: package-uses-old-debhelper-compat-version
See-also: https://lintian.debian.org/tags/package-uses-old-debhelper-compat-version.html
2023-01-11 14:40:37 +00:00
Jan Wagner 14b52890f8 Updating build pipelines 2022-10-20 13:07:47 +02:00
waja c927c935fe
Merge pull request #2 from waja/dependabot-github_actions-actions-checkout-3 2022-03-02 08:06:02 +01:00
dependabot[bot] 5f1d9e5b3a
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 04:24:44 +00:00
Jan Wagner 03a0d32d25 ci: pin action versions 2021-07-21 15:44:19 +02:00
Jan Wagner 855d9c168d Do not remove .git* anymore 2021-07-16 23:21:42 +02:00
Jan Wagner 30dfcd9d40 Adding Dependabot config 2021-07-16 23:05:17 +02:00
Jan Wagner bd99c1cf0f d/source/options: Adding .github to diff ignore 2021-02-05 12:00:43 +01:00
Jan Wagner 1da11e5b48 Update watch file format version to 4.
Changes-By: lintian-brush
Fixes: lintian: older-debian-watch-file-standard
See-also: https://lintian.debian.org/tags/older-debian-watch-file-standard.html
2021-02-04 21:11:43 +01:00
Jan Wagner 812b668027 Remove overrides for lintian tags that are no longer supported.
Changes-By: lintian-brush
Fixes: lintian: malformed-override
See-also: https://lintian.debian.org/tags/malformed-override.html
2021-02-04 21:11:18 +01:00
Jan Wagner 34a57054e4 Use secure copyright file specification URI.
Changes-By: lintian-brush
Fixes: lintian: insecure-copyright-format-uri
See-also: https://lintian.debian.org/tags/insecure-copyright-format-uri.html
2021-02-04 21:11:13 +01:00
Jan Wagner aa5234616a New changelog 2021-01-06 21:44:33 +01:00
Jan Wagner 3097edd309 Prepare release 2021-01-06 21:42:17 +01:00
Jan Wagner 17a80e00d7 d/control: Raise compat level to 12 2020-12-29 18:44:17 +01:00
Jan Wagner 88f1ad9523 Adding Github CI 2020-12-27 23:37:24 +01:00
Helmut Grohne 9db1d5f204 Fix FTCBFS: Let dpkg's buildtools.mk supply $(CC). (Closes: #949599) 2020-12-08 22:58:16 +01:00
Jan Wagner 2fdc34f077 Bump Standards-Version to 4.5.1.0, no changes needed 2020-12-08 22:55:33 +01:00
Jan Wagner 9f76895172 Adding d/.gitlab-ci.yml 2020-05-28 21:39:09 +02:00
Jan Wagner 9e02c47ea1 New changelog entry 2019-01-24 10:54:54 +01:00
Jan Wagner 6f71168c11 Prepare release 2019-01-24 10:46:34 +01:00
Jan Wagner 0f96e5a8ef d/rules: don't touch opmimisations cflags directly 2019-01-24 10:39:12 +01:00
Jan Wagner 187c4cbd7d d/control: Bump Standards-Version to 4.3.0, no changes needed 2019-01-24 10:03:06 +01:00
Jan Wagner d1ee939e13 travis-ci: Use xenial image 2018-11-08 16:46:50 +01:00
Jan Wagner 84bb436add d/changelog: New changelog 2016-12-05 14:28:45 +01:00
Jan Wagner af78b8b270 d/changelog: Prepare release 2016-12-05 14:14:17 +01:00
Jan Wagner 2d36138e4d travis-ci: Make use of travis.d.n 2016-11-18 18:04:12 +01:00
Jan Wagner 51a32a62bb d/changelog: Fixing typo 2016-11-14 00:24:40 +01:00
Jan Wagner 0ff1167af2 d/control: Depend on lsb-base 2016-11-14 00:23:37 +01:00
Jan Wagner f75cb6e2b4 New changelog entry 2016-09-10 14:12:43 +02:00
Jan Wagner 6da676f569 Prepare release 2016-09-10 14:09:45 +02:00
Jan Wagner 5b0f4ee346 d/control: Bump Standards-Version to 3.9.8, no changes needed 2016-09-10 14:08:11 +02:00
Jan Wagner 9144fb8863 d/control: Remove hardening-wrapper from Build-Depends (Closes: #836622) 2016-09-10 14:05:17 +02:00
Jan Wagner aeab465666 travis-ci: automatically install dependencies 2016-09-10 14:04:32 +02:00
Jan Wagner 118ec9c171 travis-ci: Adding requried arguments for trusty 2015-10-19 16:49:44 +02:00
Jan Wagner fec98e0d03 travis-ci: grab actual used upstream version 2015-08-21 11:12:47 +02:00
Jan Wagner e7cde7cb4e debian/control: reformating with warp-and-sort 2015-08-20 13:44:39 +02:00
Jan Wagner 1b42314f93 Refresh patches/fix_prototyp 2015-03-17 00:58:13 +01:00
Jan Wagner 5035fb3493 travis-ci: build package with dpkg-buildpackage 2015-03-10 16:01:20 +01:00
Jan Wagner e388f86934 travis-ci: don't install build-deps manual 2015-03-10 16:01:04 +01:00
Jan Wagner 904a4f6cdb New changelog 2014-10-12 21:43:41 +02:00
Jan Wagner f7710e515f Updating debian/changelog 2014-10-12 21:01:04 +02:00
Jan Wagner 09a0485efe Bump Standards-Version to 3.9.6, no changes needed 2014-10-12 20:45:42 +02:00
Jan Wagner 278015ab67 Update Vcs-headers to selfhosted VCS 2014-10-12 20:26:56 +02:00
Jan Wagner c5ad138368 Prepare changelog for release 2014-03-02 19:52:40 +01:00
Jan Wagner 1438e9d404 Provide lintian override for missing upstream changelog 2014-03-02 19:35:46 +01:00
Jan Wagner f383018f83 Adjust debian/rules to make hardening efficient 2014-03-02 18:15:32 +01:00
Jan Wagner ccc5dba193 Update to recent copyright format 2014-02-27 23:39:52 +01:00
Jan Wagner 738c15d202 Update VCS-* fields to current canonical URIs 2014-02-27 23:25:24 +01:00
Jan Wagner a63e27cea4 Add lintian checks after build 2014-02-25 14:04:54 +01:00
Jan Wagner 1b8697fa54 Reorder and comment .travis.yml 2014-02-16 23:44:16 +01:00
Jan Wagner 7bffbb7ea4 Add travis-ci config 2014-02-13 22:41:37 +01:00
Jan Wagner 8260b991de Updating standards version to 3.9.5, no changes needed 2013-11-09 17:44:46 +01:00
Jan Wagner b7b35b21b4 Update Vcs-headers 2013-11-08 19:44:00 +01:00
Jan Wagner a6c15510e7 Include dns_flood_collector.pl as example 2013-11-07 16:59:23 +01:00
Jan Wagner 39f042024c Updating standards version to 3.9.4, no changes needed 2013-11-07 16:02:41 +01:00
Jan Wagner a454efe244 Source init functions in init script 2013-11-07 16:02:14 +01:00
Jan Wagner 67eb609f53 Merge tag 'upstream/1.20'
Upstream version 1.20
2013-11-06 09:45:38 +01:00
Jan Wagner 3582a42ff9 enable hardening 2013-05-22 12:04:36 +00:00
Jan Wagner cdc3da1486 enable hardening 2013-05-22 12:01:47 +00:00
Jan Wagner d7e830d3fc new upstream 2013-05-22 12:00:43 +00:00
Jan Wagner f4cdadbf15 new changelog 2012-03-29 17:25:57 +00:00
Jan Wagner 3645abb1fa Add build-arch and build-indep 2012-03-29 16:26:44 +00:00
Jan Wagner 69fc7dbadb drop dpatch and swicth to dh_prep 2012-03-29 16:12:22 +00:00
Jan Wagner 0e977caddf switch to packaging format 3.0 (quit) 2012-03-29 16:06:45 +00:00
Jan Wagner 546d52cd47 bumb standards to 3.9.3 2012-03-29 15:54:02 +00:00
Jan Wagner e7f834be3b Add trailing trunk/ at Vcs-Svn-field 2010-03-10 07:59:28 +00:00
Jan Wagner 0ff16df3d7 released 2010-03-09 23:10:29 +00:00
Jan Wagner 64296ef253 release 2010-03-09 23:09:17 +00:00
Jan Wagner f990dd3350 Add to dependencies 2010-03-09 23:02:48 +00:00
Jan Wagner f5c316b1bc * Bump Standards-Version to 3.8.4, no changes needed
* Migrate Vcs-Fields over to scm.uncompleted.org
* Add 1.0 to debian/source/format
2010-02-23 15:20:50 +00:00
Jan Wagner ca16ab5562 really bump version 2009-08-29 14:05:05 +00:00
Jan Wagner 3fa0c0c8bf bump version, add README.source 2009-08-29 09:13:01 +00:00
Jan Wagner 142a5010ee fixup copyright 2009-07-25 23:39:14 +00:00
Jan Wagner 66588da66d release 2009-07-25 22:42:03 +00:00
Jan Wagner f8cffa75ae make lintian happy again 2009-07-25 22:35:49 +00:00
Jan Wagner 575d1b0128 make lintian happy 2009-07-25 22:34:00 +00:00
Jan Wagner ced8cc654a bump standards 2009-07-25 22:32:38 +00:00
Jan Wagner bdf7aba200 new version 2008-07-20 13:49:18 +00:00
Jan Wagner ed59ee14eb release 2008-07-20 10:54:02 +00:00
Jan Wagner c71d782910 machine-interpretable copyright 2008-07-20 10:53:47 +00:00
Jan Wagner 733887a0af Updating standards version to 3.8.0 2008-06-07 09:38:44 +00:00
Jan Wagner d4b9874f43 be more verbose 2008-04-14 21:51:15 +00:00
Jan Wagner d206bb6d70 release 1.12-3 2008-04-14 20:46:16 +00:00
Jan Wagner fde3e09a70 make use of pidof 2008-04-14 18:44:22 +00:00
Jan Wagner d26a0d55a0 adjust copyright 2008-04-14 18:31:15 +00:00
Jan Wagner d69831c214 update to standards 3.7.3, added Vcs- fields, moved Homepage 2007-12-09 21:54:12 +00:00
Jan Wagner 4a21f4a1e3 fix typo 2007-07-06 21:32:39 +00:00
Jan Wagner a568ceff91 switch from prerm to postinst 2007-07-06 21:21:43 +00:00
Jan Wagner 3a2ebd01ea add comment 2007-07-05 08:55:54 +00:00
Jan Wagner d968fc0265 fix typo 2007-07-05 08:21:05 +00:00
Jan Wagner 7e0e23fc02 provide upgrade path 2007-07-05 08:08:35 +00:00
Jan Wagner 14f8948741 fault 2007-07-04 20:00:41 +00:00
Jan Wagner 36acfbbe4f readd 2007-07-04 19:58:17 +00:00
Jan Wagner a33414d402 readd 2007-07-04 19:57:48 +00:00
Jan Wagner 9ba1a9a672 drop handling of upstream code 2007-07-04 19:35:53 +00:00
Jan Wagner 874ac6f62f another try 2007-07-04 19:11:17 +00:00
Jan Wagner ea675efb87 another try 2007-07-04 18:56:13 +00:00
Jan Wagner 13af55fd32 another try 2007-07-04 18:45:15 +00:00
Jan Wagner ee85b8d5c5 revert changes 2007-07-04 18:44:52 +00:00
Jan Wagner e624dd0726 ajust changelog 2007-07-04 17:04:20 +00:00
Jan Wagner 181cc94118 change to bindsnap, since daemon forks after starting, which makes start-stop-daemon trouble 2007-07-04 17:03:59 +00:00
Jan Wagner 7aeb729dc7 change to bindsnap, since daemon forks after starting, which makes start-stop-daemon trouble 2007-07-04 17:03:32 +00:00
Jan Wagner 6d03565698 replace killall with kill 2007-07-04 13:47:16 +00:00
Jan Wagner ca209f1211 clean up init and maintainer scripts 2007-07-04 13:30:31 +00:00
Jan Wagner be6677c807 use kill instead of killall 2007-07-04 13:29:18 +00:00
Jan Wagner 1198902d3c use dh_installinit for maintainer scripts 2007-07-04 13:28:56 +00:00
Jan Wagner f9d21ed498 drop my own scripts 2007-07-04 13:28:21 +00:00
Jan Wagner 1da26f2cb0 cosmetic fixes to init script 2007-01-28 12:44:12 +00:00
Jan Wagner bd8779f260 ajust year in copyright 2007-01-28 12:43:27 +00:00
Jan Wagner 8ad8ed5c31 change urgency 2006-11-23 19:53:17 +00:00
Jan Wagner ea7512e8d9 new upstream 2006-11-23 13:44:59 +00:00
Jan Wagner 85648f0a0d Fix missing function prototype definition 2006-11-19 10:57:13 +00:00
Jan Wagner ceb62ca889 add initscript 2006-11-12 21:18:48 +00:00
Jan Wagner 26e209abb1 provide own postinst and postrm 2006-11-10 07:45:27 +00:00
Jan Wagner ab7117f5d2 remove "automatic" comments 2006-11-10 07:37:38 +00:00
Jan Wagner 01117ff277 be not smart 2006-11-09 22:20:58 +00:00
Jan Wagner 951f85604d changes 2006-11-09 22:08:38 +00:00
Jan Wagner 2d7bf746bd fixies 2006-11-09 22:07:58 +00:00
Jan Wagner d8b655fb9a some fixies 2006-11-09 22:05:11 +00:00
Jan Wagner 2e5faaf8b7 fix init script 2006-11-09 21:38:39 +00:00
Jan Wagner 1a12cc2ee6 foo 2006-11-09 21:04:02 +00:00
Jan Wagner e6f41e5fea fix mailaddress 2006-11-09 21:01:47 +00:00
Jan Wagner 15ce237b6c fix initscript 2006-11-09 20:59:56 +00:00
Jan Wagner ed29e94356 release 2006-11-09 19:49:24 +00:00
Jan Wagner a9b4686eb9 fix typo 2006-11-09 12:30:37 +00:00
Jan Wagner 1363c1805e next release prepared 2006-11-04 20:47:36 +00:00
Jan Wagner c99671a55b final fix 2006-11-04 19:58:18 +00:00
Jan Wagner 312f50f5d9 make daniel happy 2006-11-04 19:54:02 +00:00
21 changed files with 663 additions and 0 deletions

12
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "04:00"
reviewers:
- "waja"
pull-request-branch-name:
separator: "-"
open-pull-requests-limit: 10

36
.github/workflows/packaging_test.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Packaging Test
on:
push:
branches:
- $default-branch
- development
- master
# Run tests for any PRs
pull_request:
env:
SOURCE_DIR: ./
ARTIFACTS_DIR: debian/build/release/
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
env:
DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .github*
- name: Adjust distibution in changelog file
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.5.0
with:
artifacts_directory: debian/build/release/
os_distribution: testing
- name: Debug
run: |
ls -la

71
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,71 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'debian/*' # Push events to matching debian/*, i.e. debian/1.0-2, debian/20.15.10, debian/23.20020326
name: Release Process
env:
SOURCE_DIR: ./
ARTIFACTS_DIR: debian/build/release/
jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
outputs:
release-id: ${{ steps.create_release.outputs.id }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install needed packages
run: |
if [ $(dpkg -l | grep -c dpkg-dev) -ne 1 ]; then sudo apt-get update && sudo apt-get install -y dpkg-dev; fi
- name: Gather changelog
run: |
ls -la
dpkg-parsechangelog | tail -n +9 > debian.changelog
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: debian.changelog
draft: false
prerelease: false
build:
name: Build and upload packages
needs: create-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
env:
DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .github*
- name: Adjust distibution in changelog file
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.5.0
with:
artifacts_directory: debian/build/release/
os_distribution: testing
# - name: Build Debian package
# uses: pi-top/action-debian-package@v0.2.0
# with:
# artifacts_directory: debian/build/release/
# target_architectures: "amd64,i386"
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@release-2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.create-release.outputs.release-id }}
args: debian/build/release/*

32
.travis.yml Normal file
View file

@ -0,0 +1,32 @@
dist: xenial
sudo: required
env:
- TRAVIS_DEBIAN_DISTRIBUTION=unstable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/" TRAVIS_DEBIAN_SECURITY_UPDATES=false
- TRAVIS_DEBIAN_DISTRIBUTION=testing TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
- TRAVIS_DEBIAN_DISTRIBUTION=stable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
services:
- docker
before_script:
# fetch all tags (not done due travis cloning with depth=50)
- git fetch --tags
script:
# build the debian package
- wget -O- http://travis.debian.net/script.sh | sh -
after_script:
# run lintian after build
- sudo add-apt-repository -y ppa:waja/trusty-backports
- sudo apt-get update -qq
- sudo apt-get install -qq --no-install-recommends lintian
- lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.deb && lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.dsc
#notifications:
# email: false
branches:
except:
- /^debian\/\d/

14
debian/.gitlab-ci.yml vendored Normal file
View file

@ -0,0 +1,14 @@
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
variables:
RELEASE: 'unstable'
SALSA_CI_DISABLE_APTLY: 0
SALSA_CI_DISABLE_AUTOPKGTEST: 1
SALSA_CI_DISABLE_BLHC: 0
SALSA_CI_DISABLE_LINTIAN: 0
SALSA_CI_DISABLE_PIUPARTS: 1
SALSA_CI_DISABLE_REPROTEST: 1
SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 0
SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 0

182
debian/changelog vendored Normal file
View file

@ -0,0 +1,182 @@
dns-flood-detector (1.20-8) UNRELEASED; urgency=medium
*
-- Jan Wagner <waja@cyconet.org> Mon, 23 Jan 2023 12:11:35 +0000
dns-flood-detector (1.20-7) unstable; urgency=medium
[ Jan Wagner ]
* [34a5705] Use secure copyright file specification URI.
* [812b668] Remove overrides for lintian tags that are no longer supported.
* [1da11e5] Update watch file format version to 4.
* [bd99c1c] d/source/options: Adding .github to diff ignore
* [ab52f4a] Bump debhelper from old 12 to 13.
* [2d78c7e] Bump Standards-Version to 4.6.2
* [14e7160] Drop lsb-base, sysvinit-utils is essential
* [dcdc452] Set Rules-Requires-Root: no.
* [353f35e] Adding unitfile
-- Jan Wagner <waja@cyconet.org> Mon, 23 Jan 2023 11:34:04 +0000
dns-flood-detector (1.20-6) unstable; urgency=medium
[ Jan Wagner ]
* [9f76895] Adding d/.gitlab-ci.yml
* [2fdc34f] Bump Standards-Version to 4.5.1.0, no changes needed
[ Helmut Grohne ]
* [9db1d5f] Fix FTCBFS: Let dpkg's buildtools.mk supply $(CC).
(Closes: #949599)
[ Jan Wagner ]
* [88f1ad9] Adding Github CI
* [17a80e0] d/control: Raise compat level to 12
-- Jan Wagner <waja@cyconet.org> Wed, 06 Jan 2021 21:33:15 +0100
dns-flood-detector (1.20-5) unstable; urgency=medium
* [d1ee939] travis-ci: Use xenial image
* [187c4cb] d/control: Bump Standards-Version to 4.3.0, no changes needed
* [0f96e5a] d/rules: don't touch opmimisations cflags directly
-- Jan Wagner <waja@cyconet.org> Thu, 24 Jan 2019 10:45:28 +0100
dns-flood-detector (1.20-4) unstable; urgency=medium
* [0ff1167] d/control: Depend on lsb-base
* [51a32a6] d/changelog: Fixing typo
* [2d36138] travis-ci: Make use of travis.d.n
-- Jan Wagner <waja@cyconet.org> Mon, 05 Dec 2016 14:13:55 +0100
dns-flood-detector (1.20-3) unstable; urgency=medium
* [e388f86] travis-ci: don't install build-deps manual
* [5035fb3] travis-ci: build package with dpkg-buildpackage
* [1b42314] Refresh patches/fix_prototyp
* [e7cde7c] debian/control: reformating with warp-and-sort
* [fec98e0] travis-ci: grab actual used upstream version
* [118ec9c] travis-ci: Adding required arguments for trusty
* [aeab465] travis-ci: automatically install dependencies
* [9144fb8] d/control: Remove hardening-wrapper from Build-Depends
(Closes: #836622)
* [5b0f4ee] d/control: Bump Standards-Version to 3.9.8, no changes needed
-- Jan Wagner <waja@cyconet.org> Sat, 10 Sep 2016 14:08:46 +0200
dns-flood-detector (1.20-2) unstable; urgency=medium
* [278015a] Update Vcs-headers to selfhosted VCS
* [09a0485] Bump Standards-Version to 3.9.6, no changes needed
-- Jan Wagner <waja@cyconet.org> Sun, 12 Oct 2014 20:56:29 +0200
dns-flood-detector (1.20-1) unstable; urgency=low
* New upstream release
* Enable Hardening
- build-dep on hardening-wrapper
* [a454efe] Source init functions in init script
* [39f0420] Updating standards version to 3.9.4, no changes needed
* [a6c1551] Include dns_flood_collector.pl as example
* [b7b35b2] Update Vcs-headers
* [8260b99] Updating standards version to 3.9.5, no changes needed
* [7bffbb7] Add travis-ci config
* [1b8697f] Reorder and comment .travis.yml
* [a63e27c] Add lintian checks after build to .travis.yml
* [738c15d] Update VCS-* fields to current canonical URIs
* [ccc5dba] Update to recent copyright format
* [f383018] Adjust debian/rules to make hardening efficient
* [1438e9d] Provide lintian override for missing upstream changelog
-- Jan Wagner <waja@cyconet.org> Sun, 02 Mar 2014 19:49:52 +0100
dns-flood-detector (1.12-7) unstable; urgency=low
* Add trailing trunk/ at Vcs-Svn-field
* Updating standards version to 3.9.3, no changes needed
* Switch over to packaging format 3.0 (quit) (closes: #664409)
* Remove build-dependency of dpatch
* Use dh_prep instead of dh_clean -k
* Add build-arch and build-indep targets to debian/rules
-- Jan Wagner <waja@cyconet.org> Thu, 29 Mar 2012 18:26:14 +0200
dns-flood-detector (1.12-6) unstable; urgency=low
* Add "Copyright" to all copyrights in debian/copyright
* Updating standards version to 3.8.4
- Add README.source
* Migrate Vcs-Fields over to scm.uncompleted.org
* Add 1.0 to debian/source/format
* Add ${misc:Depends} to dependencies
-- Jan Wagner <waja@cyconet.org> Wed, 10 Mar 2010 00:07:06 +0100
dns-flood-detector (1.12-5) unstable; urgency=low
* Updating standards version to 3.8.2, no changes needed
* remove absolute path of pidof from preinst
-- Jan Wagner <waja@cyconet.org> Sun, 26 Jul 2009 00:31:45 +0200
dns-flood-detector (1.12-4) unstable; urgency=low
* Updating standards version to 3.8.0, no changes needed
* implement machine-interpretable copyright file
-- Jan Wagner <waja@cyconet.org> Sun, 20 Jul 2008 12:53:51 +0200
dns-flood-detector (1.12-3) unstable; urgency=low
* added Vcs- fields, moved Homepage into source header's field
* bump standards version to 3.7.3 (no changes needed)
* change copyright of packaging to 2008 in debian/copyright
* get rid of 'ps aux' in init script and preinst, using pidof instead
-- Jan Wagner <waja@cyconet.org> Mon, 14 Apr 2008 22:39:46 +0200
dns-flood-detector (1.12-2) unstable; urgency=low
* some cosmetic fixes to init script
* make start-stop-daemon working instead of using kill (Closes: #431676).
* providing upgrade path via preinst
* drop own maintainers scripts and make again use of debhelper
-- Jan Wagner <waja@cyconet.org> Wed, 04 Jul 2007 12:29:06 +0200
dns-flood-detector (1.12-1) unstable; urgency=medium
* New upstream release
* modified fix_prototyp patch for upstream
-- Jan Wagner <waja@cyconet.org> Thu, 23 Nov 2006 13:35:11 +0100
dns-flood-detector (1.10-4) unstable; urgency=low
* included fix_prototyp patch provided by "dann frazier <dannf@debian.org>"
(Closes: #399283).
* build depend to dpatch
-- Jan Wagner <waja@cyconet.org> Sun, 19 Nov 2006 10:18:55 +0100
dns-flood-detector (1.10-3) unstable; urgency=low
* using killall in init script to get daemon stopped
* same for prerm
-- Jan Wagner <waja@cyconet.org> Thu, 9 Nov 2006 20:49:10 +0100
dns-flood-detector (1.10-2) unstable; urgency=low
* fixed typo in initscript
-- Jan Wagner <waja@cyconet.org> Sat, 4 Nov 2006 21:46:03 +0100
dns-flood-detector (1.10-1) unstable; urgency=low
* Initial release (Closes: #396618).
-- Jan Wagner <waja@cyconet.org> Fri, 3 Nov 2006 12:39:42 +0100

25
debian/control vendored Normal file
View file

@ -0,0 +1,25 @@
Source: dns-flood-detector
Section: net
Priority: optional
Maintainer: Jan Wagner <waja@cyconet.org>
Build-Depends: debhelper-compat (= 13), libpcap0.8-dev
Homepage: http://www.adotout.com/
Vcs-Browser: https://gitlab.uncompleted.org/debian/dns-flood-detector
Vcs-Git: https://gitlab.uncompleted.org/debian/dns-flood-detector.git
Standards-Version: 4.6.2
Rules-Requires-Root: no
Package: dns-flood-detector
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: detect abusive usage levels on high traffic nameservers
This package provides the dns-flood-detector daemon.
.
It was developed to detect abusive usage levels on high traffic nameservers
and to enable quick response in halting the use of one's nameserver to
facilitate spam.
It uses libpcap (in non-promiscuous mode) to monitor incoming dns queries to a
nameserver. The tool may be run in one of two modes, either daemon mode or
"bindsnap" mode. In daemon mode, the tool will alarm via syslog. In bindsnap
mode, the user is able to get near-real-time stats on usage to aid in more
detailed troubleshooting.

30
debian/copyright vendored Normal file
View file

@ -0,0 +1,30 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: DNS Flood Detector
Upstream-Contact: Dennis Opacki <dopacki@adotout.com>
Source: http://www.adotout.com/
Files: *
Copyright: Copyright (C) 2003 Dennis Opacki <dopacki@adotout.com>
License: GPL-2+
Files: debian/*
Copyright: Copyright (C) 2006, 2008 Jan Wagner <waja@cyconet.org>
License: GPL-2+
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General Public License can be
found in /usr/share/common-licenses/GPL-2 file.

7
debian/default vendored Normal file
View file

@ -0,0 +1,7 @@
# Defaults for dns-flood-detector initscript
# sourced by /etc/init.d/dns-flood-detector
# installed at /etc/default/dns-flood-detector by the maintainer scripts
# options that are passed to the Daemon.
# here: daemon mode, be more verbose, alarm at > 5/s, stats every 3 secs
DAEMON_OPTS="-d -v -v -t5 -w3"

70
debian/dns-flood-detector.8 vendored Normal file
View file

@ -0,0 +1,70 @@
.TH DNS-FLOOD-DETECTOR 8 "2006-11-03" "1.10" "dns flood detection tool"
.SH NAME
DNS-FLOOD-DETECTOR \- dns flood detection and alert tool
.SH SYNOPSIS
.B dns-flood-detector
.RB [\| \-b \||\| \-d \|]
.RB [\| \-v \|]
.RB [\| \-h \|]
.RB [\| \-i
.IR device \|]
.RB [\| -t
.IR n \|]
.RB [\| -a
.IR n \|]
.RB [\| -w
.IR n \|]
.RB [\| -x
.IR n \|]
.RB [\| -m
.IR n \|]
.SH DESCRIPTION
.B DNS Flood Detector
was developed to detect abusive usage levels on high traffic nameservers and to
enable quick response to the use of one's nameserver to facilitate spam.
.SH OPTIONS
.B
.TP
.B \-b
run in foreground in bindsnap mode
.TP
.B \-d
run in background in daemon mode
.TP
.B \-v
verbose output \- use again for more verbosity
.TP
.B \-h
display help
.TP
.B \-i device
specify device name to listen on
.TP
.B \-t n
alarm at >n queries per second
.TP
.B \-a n
reset alarm after n seconds
.TP
.B \-w n
calculate stats every n seconds
.TP
.B \-x n
create n buckets
.TP
.B \-m n
report overall stats every n seconds
.SH SEE ALSO
.B Website
<http://www.adotout.com/>
.SH AUTHOR
DNS-FLOOD-DETECTOR was written by Dennis Opacki <dopacki@adotout.com>.
.PP
This manual page was written by Jan Wagner <waja@cyconet.org>,
for the Debian project (but may be used by others).

1
debian/docs vendored Normal file
View file

@ -0,0 +1 @@
README

1
debian/examples vendored Normal file
View file

@ -0,0 +1 @@
dns_flood_collector.pl

66
debian/init.d vendored Normal file
View file

@ -0,0 +1,66 @@
#!/bin/sh
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
# /etc/init.d/dns-flood-detector: v1 2006/11/03 Jan Wagner <waja@cyconet.org>
### BEGIN INIT INFO
# Provides: dns-flood-detector
# Required-Start: $local_fs $network $remote_fs $syslog
# Required-Stop: $local_fs $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop the dns-flood-detector daemon
# Description: detect abusive usage levels on high traffic nameservers
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/dns-flood-detector
NAME=dns-flood-detector
DESC=dns-flood-detector
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
# Include dns-flood-detector defaults if available
if [ -f /etc/default/dns-flood-detector ] ; then
. /etc/default/dns-flood-detector
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS
/bin/pidof $DAEMON > /var/run/$NAME.pid
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
/bin/pidof $DAEMON > /var/run/$NAME.pid
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0

13
debian/patches/fix_prototyp vendored Normal file
View file

@ -0,0 +1,13 @@
From: dann frazier <dannf@debian.org>
Subject: fix missing function prototype definition
--- a/dns_flood_detector.c
+++ b/dns_flood_detector.c
@@ -107,6 +107,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
+#include <sys/socket.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/ip.h>

1
debian/patches/series vendored Normal file
View file

@ -0,0 +1 @@
fix_prototyp

8
debian/preinst vendored Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
set -e
# generate correct pid file, for versions where was non or incorrect
if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" <= "1.12-1"; then
pidof dns-flood-detector > /var/run/dns-flood-detector.pid
fi
#DEBHELPER#

76
debian/rules vendored Executable file
View file

@ -0,0 +1,76 @@
#!/usr/bin/make -f
# written by Jan Wagner <waja@cyconet.org>
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/buildtools.mk
# hardening
export DEB_BUILD_HARDENING=1
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
CFLAGS += -D_BSD_SOURCE -Wall -g
LDLIBS += -lpcap -lpthread -lm
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) dns_flood_detector.c $(LDLIBS) -o dns_flood_detector
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
rm -rf dns_flood_detector *.o *~
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# Add here commands to install the package into debian/dns-flood-detector.
install -D -m 0755 dns_flood_detector debian/dns-flood-detector/usr/bin/dns-flood-detector
install -D -m 0644 debian/default debian/dns-flood-detector/etc/default/dns-flood-detector
install -D -m 0755 debian/init.d debian/dns-flood-detector/etc/init.d/dns-flood-detector
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman debian/dns-flood-detector.8
dh_installexamples
dh_installinit -- defaults 40
dh_installsystemd --no-enable
dh_lintian
dh_link
dh_strip
dh_compress
dh_fixperms
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

14
debian/service vendored Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=dns-flood-detector daemon
[Service]
Environment=PIDFILE=/var/run/dns-flood-detector.pid
EnvironmentFile=-/etc/default/dns-flood-detector
ExecStart=/usr/sbin/dns-flood-detector $DAEMON_OPTS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Type=notify
[Install]
WantedBy=multi-user.target

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View file

@ -0,0 +1 @@
extend-diff-ignore = '(^|/)(\.travis\.yml|\.git|\.github|\.gitgnore|config\.sub|config\.guess)'

2
debian/watch vendored Normal file
View file

@ -0,0 +1,2 @@
version=4
http://www.adotout.com dnsflood-(.*)\.tgz