summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:28:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:28:21 +0000
commit24b1e14e26b1bc6cf98663c2964a3637c56944eb (patch)
tree5dfbc4d09ae789919613f5e20d0dcac87e6ece90 /debian/rules
parentAdding upstream version 8.2402.0. (diff)
downloadrsyslog-debian/8.2402.0-1.tar.xz
rsyslog-debian/8.2402.0-1.zip
Adding debian version 8.2402.0-1.debian/8.2402.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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