1 ################################################################################
5 ################################################################################
7 RSYSLOG_VERSION = 8.9.0
8 RSYSLOG_SITE = http://rsyslog.com/files/download/rsyslog
9 RSYSLOG_LICENSE = GPLv3 LGPLv3 Apache-2.0
10 RSYSLOG_LICENSE_FILES = COPYING COPYING.LESSER COPYING.ASL20
11 RSYSLOG_DEPENDENCIES = zlib libestr liblogging json-c host-pkgconf
12 RSYSLOG_CONF_ENV = ac_cv_prog_cc_c99='-std=c99'
13 RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
14 mmanon mmaudit mmfields mmjsonparse mmpstrucdata mmsequence mmutf8fix \
15 mail omprog omruleset omstdout omuxsock \
16 pmaixforwardedfrom pmciscoios pmcisconames pmlastmsg pmsnare
17 RSYSLOG_CONF_OPTS = --disable-generate-man-pages \
18 $(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x))
21 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
22 RSYSLOG_DEPENDENCIES += busybox
25 ifeq ($(BR2_PACKAGE_LIBEE),y)
26 RSYSLOG_DEPENDENCIES += libee
29 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
30 RSYSLOG_DEPENDENCIES += libgcrypt
31 RSYSLOG_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
32 RSYSLOG_CONF_OPTS += --enable-libgcrypt
34 RSYSLOG_CONF_OPTS += --disable-libgcrypt
37 ifeq ($(BR2_PACKAGE_MYSQL),y)
38 RSYSLOG_DEPENDENCIES += mysql
39 RSYSLOG_CONF_OPTS += --enable-mysql
40 RSYSLOG_CONF_ENV += ac_cv_prog_MYSQL_CONFIG=$(STAGING_DIR)/usr/bin/mysql_config
42 RSYSLOG_CONF_OPTS += --disable-mysql
45 ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
46 RSYSLOG_DEPENDENCIES += postgresql
47 RSYSLOG_CONF_OPTS += --enable-pgsql
48 RSYSLOG_CONF_ENV += ac_cv_prog_PG_CONFIG=$(STAGING_DIR)/usr/bin/pg_config
50 RSYSLOG_CONF_OPTS += --disable-pgsql
53 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
54 RSYSLOG_DEPENDENCIES += util-linux
55 RSYSLOG_CONF_OPTS += --enable-uuid
57 RSYSLOG_CONF_OPTS += --disable-uuid
60 define RSYSLOG_INSTALL_INIT_SYSV
61 $(INSTALL) -m 0755 -D package/rsyslog/S01logging \
62 $(TARGET_DIR)/etc/init.d/S01logging
65 define RSYSLOG_INSTALL_INIT_SYSTEMD
66 ln -sf /lib/systemd/system/rsyslog.service \
67 $(TARGET_DIR)/etc/systemd/system/syslog.service
68 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
69 ln -sf ../syslog.service \
70 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/syslog.service
73 define RSYSLOG_INSTALL_CONF
74 $(INSTALL) -m 0644 -D $(@D)/platform/redhat/rsyslog.conf \
75 $(TARGET_DIR)/etc/rsyslog.conf
76 mkdir -p $(TARGET_DIR)/etc/rsyslog.d
79 RSYSLOG_POST_INSTALL_TARGET_HOOKS += RSYSLOG_INSTALL_CONF
81 $(eval $(autotools-package))