Skip to content

Commit

Permalink
test debian packaging rules
Browse files Browse the repository at this point in the history
  • Loading branch information
xdecock committed Jul 15, 2020
1 parent 904ee24 commit 9378bff
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ rpmbuild/

*.rpm
*.spec

# debian
debian/.debhelper
debian/vmod-modsecurity
debian/*substvars
debian/files
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vmod-modsecurity (0.1.1) UNRELEASED; urgency=medium

* Initial release.

-- Xavier De Cock <[email protected]> Wed, 15 Jul 2020 13:21:01 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
21 changes: 21 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Source: vmod-modsecurity
Priority: optional
Maintainer: De Cock Xavier <[email protected]>
Build-Depends:
debhelper (>= 9),
libvarnishapi-dev (>= 6.4.0) |
varnish-dev (>= 6.4.0),
pkg-config (>= 0.21),
python3-docutils,
varnish (>= 6.4.0),
libmodsecurity-dev,
Standards-Version: 3.9.5
Section: libs
Homepage: https://github.com/xdecock/vmod-modsecurity

Package: vmod-modsecurity
Architecture: any
Depends:
varnish (>= 6.4.0),
libmodsecurity3,
Description: modsecurity binding for varnish
20 changes: 20 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/make -f
export DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PKG_CONFIG_PATH =
export ACLOCAL_PATH =

%:
dh $@

override_dh_fixperms:
find debian/vmod-modsecurity/ -name '*.la' -delete
dh_fixperms

override_dh_gencontrol:
varnishd -V 2>&1 | awk -F '[- ]' '{print "varnish:Depends=varnish (>= " $$3 ")"; exit}' >> debian/substvars
dh_gencontrol -- -Tdebian/substvars

0 comments on commit 9378bff

Please sign in to comment.