2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-06-29 15:46:21 +02:00
|
|
|
#
|
|
|
|
# rsyslog
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2015-04-11 09:52:17 +02:00
|
|
|
RSYSLOG_VERSION = 8.9.0
|
2014-07-31 10:46:58 +02:00
|
|
|
RSYSLOG_SITE = http://rsyslog.com/files/download/rsyslog
|
2014-03-12 18:51:09 +01:00
|
|
|
RSYSLOG_LICENSE = GPLv3 LGPLv3 Apache-2.0
|
|
|
|
RSYSLOG_LICENSE_FILES = COPYING COPYING.LESSER COPYING.ASL20
|
2014-10-01 14:51:51 +02:00
|
|
|
RSYSLOG_DEPENDENCIES = zlib libestr liblogging json-c host-pkgconf
|
2015-01-14 00:17:01 +01:00
|
|
|
RSYSLOG_CONF_ENV = ac_cv_prog_cc_c99='-std=c99'
|
2015-01-14 00:17:02 +01:00
|
|
|
RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
|
|
|
|
mmanon mmaudit mmfields mmjsonparse mmpstrucdata mmsequence mmutf8fix \
|
|
|
|
mail omprog omruleset omstdout omuxsock \
|
|
|
|
pmaixforwardedfrom pmciscoios pmcisconames pmlastmsg pmsnare
|
|
|
|
RSYSLOG_CONF_OPTS = --disable-generate-man-pages \
|
|
|
|
$(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x))
|
2015-01-14 21:16:57 +01:00
|
|
|
# For mysql and pgsql support patches
|
|
|
|
RSYSLOG_AUTORECONF = YES
|
2011-06-29 15:46:21 +02:00
|
|
|
|
2014-05-31 09:55:35 +02:00
|
|
|
# Build after BusyBox
|
2011-06-29 15:46:21 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
2015-01-14 22:05:59 +01:00
|
|
|
RSYSLOG_DEPENDENCIES += busybox
|
2011-06-29 15:46:21 +02:00
|
|
|
endif
|
|
|
|
|
2014-03-12 18:51:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEE),y)
|
2015-01-14 22:05:59 +01:00
|
|
|
RSYSLOG_DEPENDENCIES += libee
|
2014-03-12 18:51:09 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2015-01-14 22:05:59 +01:00
|
|
|
RSYSLOG_DEPENDENCIES += libgcrypt
|
|
|
|
RSYSLOG_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
2015-01-14 22:06:23 +01:00
|
|
|
RSYSLOG_CONF_OPTS += --enable-libgcrypt
|
2014-03-12 18:51:09 +01:00
|
|
|
else
|
2015-01-14 22:06:23 +01:00
|
|
|
RSYSLOG_CONF_OPTS += --disable-libgcrypt
|
2014-03-12 18:51:09 +01:00
|
|
|
endif
|
|
|
|
|
2015-01-14 21:16:57 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
2015-01-14 22:05:59 +01:00
|
|
|
RSYSLOG_DEPENDENCIES += mysql
|
|
|
|
RSYSLOG_CONF_OPTS += --enable-mysql
|
|
|
|
RSYSLOG_CONF_ENV += ac_cv_prog_MYSQL_CONFIG=$(STAGING_DIR)/usr/bin/mysql_config
|
2015-01-14 22:07:14 +01:00
|
|
|
else
|
|
|
|
RSYSLOG_CONF_OPTS += --disable-mysql
|
2015-01-14 21:16:57 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
2015-01-14 22:05:59 +01:00
|
|
|
RSYSLOG_DEPENDENCIES += postgresql
|
|
|
|
RSYSLOG_CONF_OPTS += --enable-pgsql
|
|
|
|
RSYSLOG_CONF_ENV += ac_cv_prog_PG_CONFIG=$(STAGING_DIR)/usr/bin/pg_config
|
2015-01-14 22:07:14 +01:00
|
|
|
else
|
|
|
|
RSYSLOG_CONF_OPTS += --disable-pgsql
|
2015-01-14 21:16:57 +01:00
|
|
|
endif
|
|
|
|
|
2014-10-01 14:51:51 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
2015-01-14 22:05:59 +01:00
|
|
|
RSYSLOG_DEPENDENCIES += util-linux
|
|
|
|
RSYSLOG_CONF_OPTS += --enable-uuid
|
2014-10-01 14:51:51 +02:00
|
|
|
else
|
2015-01-14 22:05:59 +01:00
|
|
|
RSYSLOG_CONF_OPTS += --disable-uuid
|
2014-10-01 14:51:51 +02:00
|
|
|
endif
|
|
|
|
|
2014-03-12 18:51:09 +01:00
|
|
|
define RSYSLOG_INSTALL_INIT_SYSV
|
2015-01-14 00:16:58 +01:00
|
|
|
$(INSTALL) -m 0755 -D package/rsyslog/S01logging \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S01logging
|
2014-03-12 18:51:09 +01:00
|
|
|
endef
|
|
|
|
|
2014-12-12 23:39:56 +01:00
|
|
|
define RSYSLOG_INSTALL_INIT_SYSTEMD
|
|
|
|
ln -sf /lib/systemd/system/rsyslog.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/syslog.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../syslog.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/syslog.service
|
|
|
|
endef
|
|
|
|
|
2014-11-30 15:18:46 +01:00
|
|
|
define RSYSLOG_INSTALL_CONF
|
|
|
|
$(INSTALL) -m 0644 -D $(@D)/platform/redhat/rsyslog.conf \
|
|
|
|
$(TARGET_DIR)/etc/rsyslog.conf
|
2011-06-29 15:46:21 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/rsyslog.d
|
|
|
|
endef
|
|
|
|
|
2014-11-30 15:18:46 +01:00
|
|
|
RSYSLOG_POST_INSTALL_TARGET_HOOKS += RSYSLOG_INSTALL_CONF
|
2011-06-29 15:46:21 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|