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 37 38 39
|
#! /usr/bin/make -f
## debian/rules file for syslog-ng Incubator
## (C) 2013, 2014 Gergely Nagy <algernon@madhouse-project.org>
##
## Released under the GPLv2+, see /usr/share/common-licenses/GPL-2 on
## Debian systems.
export DH_OPTIONS += -O-Bdebian/build-tree -O-D${SRCDIR}
CFLAGS ?= $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS ?= $(shell dpkg-buildflags --get LDFLAGS)
##
#* Overrides for dh_auto*
##
override_dh_auto_configure:
install -d debian/build-tree
dh_auto_configure -- \
--datadir=/usr/share/syslog-ng \
LDFLAGS="${LDFLAGS} -Wl,-rpath=/usr/lib/syslog-ng"
##
#* Overrides for other debhelper commands
#
# Below are overrides for individual debhelper commands.
##
# Install the NEWS file as upstream changelog.
override_dh_installchangelogs:
dh_installchangelogs NEWS
# dh_makeshlibs wants to be clever and treat plugins as shared libs.
# Slap it in the face, and tell it not to.
override_dh_makeshlibs:
dh_makeshlibs -n -Xusr/lib/syslog-ng/*
%:
dh $@ --with autoreconf --parallel
|