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
|
|
|
|
2014-03-12 18:51:09 +01:00
|
|
|
RSYSLOG_VERSION = 7.6.0
|
2011-06-29 15:46:21 +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
|
|
|
|
RSYSLOG_DEPENDENCIES = zlib libestr liblogging json-c util-linux host-pkgconf
|
|
|
|
RSYSLOG_AUTORECONF = YES
|
|
|
|
|
|
|
|
RSYSLOG_CONF_OPT = --disable-testbench \
|
|
|
|
--enable-cached-man-pages
|
2011-06-29 15:46:21 +02:00
|
|
|
|
|
|
|
# Build after Busybox
|
|
|
|
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)
|
|
|
|
RSYSLOG_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
|
|
RSYSLOG_CONF_OPT += --enable-libgcrypt=yes
|
|
|
|
else
|
|
|
|
RSYSLOG_CONF_OPT += --enable-libgcrypt=no
|
|
|
|
endif
|
|
|
|
|
|
|
|
define RSYSLOG_INSTALL_INIT_SYSV
|
2011-11-23 23:28:30 +01:00
|
|
|
[ -f $(TARGET_DIR)/etc/init.d/S01rsyslog ] || \
|
|
|
|
$(INSTALL) -m 0755 -D package/rsyslog/S01rsyslog \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S01rsyslog
|
2014-03-12 18:51:09 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define RSYSLOG_INSTALL_CONF_SCRIPT
|
2011-06-29 15:46:21 +02:00
|
|
|
[ -f $(TARGET_DIR)/etc/rsyslog.conf ] || \
|
2014-03-12 18:51:09 +01:00
|
|
|
$(INSTALL) -m 0644 -D $(@D)/platform/redhat/rsyslog.conf \
|
2011-06-29 15:46:21 +02:00
|
|
|
$(TARGET_DIR)/etc/rsyslog.conf
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/rsyslog.d
|
|
|
|
endef
|
|
|
|
|
|
|
|
RSYSLOG_POST_INSTALL_TARGET_HOOKS += RSYSLOG_INSTALL_CONF_SCRIPT
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|