#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic INSTALL = install INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 %: dh $@ override_dh_auto_configure: chmod 755 configure dh_auto_configure -Sautoconf -- --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --bindir=/usr/bin \ --sysconfdir=/etc/sarg \ --enable-fontdir=/usr/share/fonts/truetype/dejavu \ --enable-imagedir=/usr/share/sarg/images \ --enable-sargphp=/usr/share/sarg override_dh_auto_install: dh_auto_install $(INSTALL_FILE) debian/sarg.conf debian/sarg/etc/sarg $(INSTALL_FILE) debian/sarg.hosts debian/sarg/etc/sarg/exclude_hosts $(INSTALL_FILE) debian/sarg.users debian/sarg/etc/sarg/exclude_users $(INSTALL_FILE) debian/sarg.usertab debian/sarg/etc/sarg/usertab rm -r debian/sarg/usr/share/fonts $(INSTALL_SCRIPT) debian/sarg-reports debian/sarg/usr/sbin/sarg-reports $(INSTALL_FILE) debian/sarg-reports.conf debian/sarg/etc/sarg $(INSTALL_SCRIPT) debian/sarg-reports.cron.daily debian/sarg/etc/cron.daily/sarg $(INSTALL_SCRIPT) debian/sarg-reports.cron.weekly debian/sarg/etc/cron.weekly/sarg $(INSTALL_SCRIPT) debian/sarg-reports.cron.monthly debian/sarg/etc/cron.monthly/sarg $(INSTALL_FILE) css.tpl debian/sarg/usr/share/doc/sarg rm debian/sarg/usr/share/sarg/sarg-php/COPYING mv debian/sarg/usr/share/sarg/sarg-php/INSTALL debian/sarg/usr/share/doc/sarg/README.sarg.php mv debian/sarg/usr/share/sarg/sarg-php/LANGUAGES debian/sarg/usr/share/doc/sarg/LANGUAGES.sarg.php chmod 644 debian/sarg/etc/sarg/sarg.* chmod 755 debian/sarg/etc/sarg chmod 755 debian/sarg/etc/sarg/user_limit_block chmod 755 debian/sarg/usr/sbin/sarg-reports chmod 755 debian/sarg/etc/cron.daily/sarg chmod 755 debian/sarg/etc/cron.weekly/sarg chmod 755 debian/sarg/etc/cron.monthly/sarg