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-10-02 21:59:00 +02:00
|
|
|
RSYSLOG_VERSION = 7.6.7
|
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
|
2014-03-12 18:51:09 +01:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
RSYSLOG_CONF_OPTS = --disable-testbench \
|
2014-10-01 15:23:53 +02:00
|
|
|
--enable-cached-man-pages \
|
|
|
|
--disable-generate-man-pages
|
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
|
2014-11-30 15:18:46 +01:00
|
|
|
$(INSTALL) -m 0755 -D package/rsyslog/S01rsyslog \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S01rsyslog
|
2014-03-12 18:51:09 +01:00
|
|
|
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))
|