#!/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 # TODO: drop when upstream cleans up code (see bug#957771) export DEB_CFLAGS_MAINT_APPEND=-fcommon 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