2013-04-30 04:46:56 +08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2016-04-06 20:43:20 +08:00
|
|
|
export CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pipe
|
|
|
|
export CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pipe
|
|
|
|
INSTDIR = debian/tmp
|
2013-04-30 04:46:56 +08:00
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2016-04-06 20:43:20 +08:00
|
|
|
dh_auto_configure -- \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=OFF \
|
|
|
|
-DCMAKE_COLOR_MAKEFILE=ON \
|
|
|
|
-DZM_RUNDIR=/var/run/zm \
|
|
|
|
-DZM_SOCKDIR=/var/run/zm \
|
|
|
|
-DZM_TMPDIR=/var/tmp/zm \
|
|
|
|
-DZM_LOGDIR=/var/log/zm \
|
|
|
|
-DZM_WEBDIR=/usr/share/zoneminder/www \
|
|
|
|
-DZM_CONTENTDIR=/var/cache/zoneminder \
|
|
|
|
-DZM_CGIDIR=/usr/lib/zoneminder/cgi-bin \
|
|
|
|
-DZM_WEB_USER=www-data \
|
|
|
|
-DZM_WEB_GROUP=www-data \
|
2017-06-06 04:39:19 +08:00
|
|
|
-DZM_CONFIG_SUBDIR="/etc/zm/conf.d" \
|
2017-06-13 09:39:37 +08:00
|
|
|
-DZM_CONFIG_DIR="/etc/zm" \
|
|
|
|
-DZM_DIR_EVENTS="/var/cache/zoneminder/events" \
|
|
|
|
-DZM_DIR_IMAGES="/var/cache/zoneminder/images" \
|
|
|
|
-DZM_PATH_ZMS="/zm/cgi-bin/nph-zms"
|
2016-04-06 20:43:20 +08:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install --buildsystem=cmake
|
|
|
|
install -D -m 0644 debian/apache.conf $(INSTDIR)/etc/zm/apache.conf
|
2017-05-24 02:44:21 +08:00
|
|
|
rm -f $(INSTDIR)/usr/share/zoneminder/www/api/lib/Cake/LICENSE.txt
|
|
|
|
rm -f $(INSTDIR)/usr/share/zoneminder/www/api/.gitignore
|
|
|
|
rm -rf $(INSTDIR)/usr/share/zoneminder/www/api/lib/Cake/Test
|
2013-04-30 04:46:56 +08:00
|
|
|
|
|
|
|
override_dh_auto_test:
|
|
|
|
# do not run tests...
|
2013-11-09 00:25:06 +08:00
|
|
|
|
|
|
|
override_dh_strip:
|
2016-04-06 20:43:20 +08:00
|
|
|
dh_strip --dbg-package=zoneminder-dbg
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@ --buildsystem=cmake --parallel
|