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
|