Merge pull request #3573 from nikil/bitlbee
[feed/packages.git] / admin / syslog-ng / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=syslog-ng
4 PKG_VERSION:=3.8.1
5 PKG_RELEASE:=3
6
7 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
8
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_SOURCE_URL:=https://github.com/balabit/syslog-ng/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
11 PKG_MD5SUM:=acf14563cf5ce435db8db35486ce66af
12
13 PKG_INSTALL:=1
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/nls.mk
17
18 define Package/syslog-ng
19 SECTION:=admin
20 CATEGORY:=Administration
21 DEPENDS:=+libpcre +glib2 +libeventlog +libopenssl +libuuid +libcurl
22 TITLE:=A powerful syslog daemon
23 URL:=http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/
24 endef
25
26 define Package/syslog-ng/description
27 syslog-ng reads and logs messages to the system console, log
28 files, other machines and/or users as specified by its
29 configuration file.
30 endef
31
32 define Package/syslog-ng/conffiles
33 /etc/syslog-ng.conf
34 endef
35
36 define Build/Configure
37 $(SED) 's,-I/usr/include,,' $(PKG_BUILD_DIR)/configure
38 $(Build/Configure/Default)
39 endef
40
41 CONFIGURE_ARGS += \
42 $(call autoconf_bool,CONFIG_IPV6,ipv6) \
43 --disable-dependency-tracking \
44 --disable-ampq \
45 --disable-tcp-wrapper \
46 --disable-glibtest \
47 --disable-mongodb \
48 --disable-java \
49 --disable-json \
50 --disable-python \
51 --disable-spoof-source \
52 --disable-sql \
53 --disable-linux-caps \
54 --disable-smtp \
55 --disable-redis \
56 --enable-prce \
57
58 TARGET_CPPFLAGS += \
59 -I$(STAGING_DIR)/usr/include/eventlog
60
61 CONFIGURE_VARS += \
62 LIBDBI_CFLAGS="-I$(STAGING_DIR)/usr/include"
63
64 define Package/syslog-ng/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(MAKE) -C $(PKG_BUILD_DIR) \
67 install-sbinPROGRAMS install-libLTLIBRARIES \
68 install-moduleLTLIBRARIES DESTDIR="$(1)"
69 $(INSTALL_DIR) $(1)/etc/init.d
70 $(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
71 $(INSTALL_DIR) $(1)/etc
72 $(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
73 $(call libtool_remove_files,$(1))
74 endef
75
76 $(eval $(call BuildPackage,syslog-ng))