File debian.rules of Package rsyslog

#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

# the default LDFLAGS="-Wl,-Bsymbolic-functions" caused rsyslog to
# segfault on receipt of first message (see LP: #794230)
unexport LDFLAGS

%:
	dh $@ --with autoreconf
#org	dh $@ --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-imfile \
		--enable-impstats \
		--enable-mmnormalize \
		--enable-mmanon \
		--enable-mmjsonparse \
		--enable-mmutf8fix \
		--enable-mmpstrucdata \
		--enable-mmsequence \
		--enable-mail \
		--enable-omprog \
		--enable-omuxsock \
		--enable-fmhttp \
		--enable-fmhash \
		--enable-mmkubernetes \
		--enable-omstdout \
		--enable-gnutls \
		--enable-relp \
		--enable-omhttp \
		--disable-libgcrypt \
		--with-systemdsystemunitdir=/lib/systemd/system

#
#		--enable-openssl \
#		 --enable-guardtime \
#		 --enable-gt-ksi \
#                --enable-gssapi-krb5 \
#                --enable-guardtime \
#                --enable-ommongodb \
#                --enable-mmnormalize \
#                --enable-imzmq3 \
#                --enable-omzmq3 \

override_dh_auto_install:
	dh_auto_install
#	install --mode=644 -D plugins/ommysql/createDB.sql debian/rsyslog-mysql/usr/share/dbconfig-common/data/rsyslog-mysql/install/mysql
#	install --mode=644 -D plugins/ompgsql/createDB.sql debian/rsyslog-pgsql/usr/share/dbconfig-common/data/rsyslog-pgsql/install/pgsql

override_dh_compress:
	dh_compress -X rsyslog-example.conf

override_dh_installinit:
	--profile-name=usr.sbin.rsyslogd -prsyslog
	dh_installinit -R

override_dh_auto_test:
ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	make check || ( cat tests/test-suite.log; exit 1; )
endif

openSUSE Build Service is sponsored by