File: rules

package info (click to toggle)
sagan 1.2.0-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 6,604 kB
  • sloc: ansic: 21,146; sh: 4,499; asm: 1,002; perl: 282; makefile: 143
file content (36 lines) | stat: -rwxr-xr-x 1,289 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
34
35
36
#!/usr/bin/make -f
# -*- makefile -*-
#
# rules file for Sagan
# Written by Pierre Chifflier
#
# 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

override_dh_auto_configure:
	dh_testdir
	dh_auto_configure -- --with-postgresql-includes=/usr/include/postgresql --disable-libdnet LIBS="-lm -lestr -lee"

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/sagan/var/run/sagan
	sed -i \
		-e 's|/usr/local/etc|/etc|' \
		-e 's|/var/sagan/fifo/sagan.fifo|/var/run/sagan/sagan.fifo|' \
		-e 's|/var/sagan/ipc|/var/run/sagan/ipc|' \
		-e 's|^\(.*\)apc-emu.rules|#\1apc-emu.rules|' \
		-e 's|^\(.*\)bit9.rules|#\1bit9.rules|' \
		-e 's|^\(.*\)bonding.rules|#\1bonding.rules|' \
		-e 's|^\(.*\)cacti-thold.rules|#\1cacti-thold.rules|' \
		-e 's|^\(.*\)ossec-mi.rules|#\1ossec-mi.rules|' \
		-e 's|^\(.*\)sonicwall.rules|#\1sonicwall.rules|' \
		debian/sagan/etc/sagan.yaml && \
	sed -i '/redis-server/{n;n;s/enabled: yes/enabled: no/}' debian/sagan/etc/sagan.yaml

%:
	dh $@ --with autoreconf