The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rsyslog / rsyslog.mk
1 ################################################################################
2 #
3 # rsyslog
4 #
5 ################################################################################
6
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))
19
20 # Build after BusyBox
21 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
22 RSYSLOG_DEPENDENCIES += busybox
23 endif
24
25 ifeq ($(BR2_PACKAGE_LIBEE),y)
26 RSYSLOG_DEPENDENCIES += libee
27 endif
28
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
33 else
34 RSYSLOG_CONF_OPTS += --disable-libgcrypt
35 endif
36
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
41 else
42 RSYSLOG_CONF_OPTS += --disable-mysql
43 endif
44
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
49 else
50 RSYSLOG_CONF_OPTS += --disable-pgsql
51 endif
52
53 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
54 RSYSLOG_DEPENDENCIES += util-linux
55 RSYSLOG_CONF_OPTS += --enable-uuid
56 else
57 RSYSLOG_CONF_OPTS += --disable-uuid
58 endif
59
60 define RSYSLOG_INSTALL_INIT_SYSV
61         $(INSTALL) -m 0755 -D package/rsyslog/S01logging \
62                 $(TARGET_DIR)/etc/init.d/S01logging
63 endef
64
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
71 endef
72
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
77 endef
78
79 RSYSLOG_POST_INSTALL_TARGET_HOOKS += RSYSLOG_INSTALL_CONF
80
81 $(eval $(autotools-package))