File: rules

package info (click to toggle)
modsecurity-crs 2.2.9-1+deb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 3,064 kB
  • ctags: 219
  • sloc: perl: 1,002; ansic: 727; ruby: 69; makefile: 18
file content (33 lines) | stat: -rwxr-xr-x 1,502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ 

override_dh_compress:
	dh_compress --exclude=common.c

override_dh_auto_install:
	cp modsecurity_crs_10_setup.conf.example debian/modsecurity-crs/usr/share/modsecurity-crs/modsecurity_crs_10_setup.conf
	cp -r base_rules/ debian/modsecurity-crs/usr/share/modsecurity-crs/
	cp -r experimental_rules/ debian/modsecurity-crs/usr/share/modsecurity-crs/
	cp -r lua/ debian/modsecurity-crs/usr/share/modsecurity-crs/
	cp -r optional_rules/ debian/modsecurity-crs/usr/share/modsecurity-crs/
	cp -r activated_rules/ debian/modsecurity-crs/usr/share/modsecurity-crs/
	cp -r slr_rules/ debian/modsecurity-crs/usr/share/modsecurity-crs/
	cp -r util/ debian/modsecurity-crs/usr/share/modsecurity-crs/

override_dh_fixperms:
	dh_fixperms
	chmod 755 debian/modsecurity-crs/usr/share/modsecurity-crs/util/rule-management/remove-2.7-actions.pl
	chmod 755 debian/modsecurity-crs/usr/share/modsecurity-crs/util/regression-tests/testserver.cgi
	find debian/modsecurity-crs/usr/share/modsecurity-crs/util \( -name '*.c' -o -name '*.h' -o -name '*.tests' \) -exec chmod a-x {} \;