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-01-14 00:17:01 +01:00
|
|
|
RSYSLOG_VERSION = 8.7.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))
|
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)
|
|
|
|
RSYSLOG_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2014-03-12 18:51:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEE),y)
|
|
|
|
RSYSLOG_DEPENDENCIES += libee
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2014-05-14 20:28:52 +02:00
|
|
|
RSYSLOG_DEPENDENCIES += libgcrypt
|
2014-03-12 18:51:09 +01:00
|
|
|
RSYSLOG_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
2014-09-27 21:32:44 +02:00
|
|
|
RSYSLOG_CONF_OPTS += --enable-libgcrypt=yes
|
2014-03-12 18:51:09 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
RSYSLOG_CONF_OPTS += --enable-libgcrypt=no
|
2014-03-12 18:51:09 +01:00
|
|
|
endif
|
|
|
|
|
2014-10-01 14:51:51 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
|
|
|
RSYSLOG_DEPENDENCIES += util-linux
|
2014-09-27 21:32:44 +02:00
|
|
|
RSYSLOG_CONF_OPTS += --enable-uuid
|
2014-10-01 14:51:51 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02: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))
|