summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules85
1 files changed, 85 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..dae9262
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,85 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CPPFLAGS_MAINT_APPEND = -DPATH_PIDFILE=\"/run/rsyslogd.pid\"
+
+export PYTHON=/usr/bin/python3
+
+%:
+ dh $@
+
+ifeq ($(DEB_HOST_ARCH_OS), linux)
+confflags += --enable-imptcp \
+ --enable-imjournal \
+ --enable-omjournal \
+ --enable-kmsg
+endif
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ $(confflags) \
+ --enable-mysql \
+ --enable-pgsql \
+ --enable-ommongodb \
+ --enable-elasticsearch \
+ --enable-imkafka \
+ --enable-omkafka \
+ --enable-mail \
+ --enable-imfile \
+ --enable-imfile-tests \
+ --enable-impstats \
+ --enable-klog \
+ --enable-gssapi-krb5 \
+ --enable-gnutls \
+ --enable-openssl \
+ --enable-relp \
+ --enable-snmp \
+ --enable-pmaixforwardedfrom \
+ --enable-pmciscoios \
+ --enable-pmcisconames \
+ --enable-pmlastmsg \
+ --enable-pmnormalize \
+ --enable-pmsnare \
+ --enable-omstdout \
+ --enable-omprog \
+ --enable-omuxsock \
+ --enable-mmanon \
+ --enable-mmnormalize \
+ --enable-mmjsonparse \
+ --enable-mmutf8fix \
+ --enable-mmpstrucdata \
+ --enable-mmsequence \
+ --enable-mmfields \
+ --enable-mmrm1stspace \
+ --enable-mmkubernetes \
+ --enable-imczmq \
+ --enable-omczmq \
+ --enable-omhiredis \
+ --enable-fmhash \
+ --enable-testbench \
+ --enable-extended-tests \
+ --enable-imdiag \
+ --enable-libzstd \
+ --disable-libgcrypt \
+ --disable-generate-man-pages \
+ --disable-fmhttp \
+ --disable-liblogging-stdlog \
+ --without-valgrind-testbench
+
+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_install:
+ find debian/tmp -name '*.la' -print -delete
+ dh_install
+
+override_dh_auto_test:
+ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
+ PATH=$$PATH:/usr/sbin dh_auto_test || ( cat tests/test-suite.log; exit 1 ) && ( cat tests/test-suite.log )
+endif