summaryrefslogtreecommitdiff
path: root/package/syslog-ng/Makefile
blob: 81ac044f31f69ac609f50b89a36a7523e644deed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		syslog-ng
PKG_VERSION:=		3.14.1
PKG_RELEASE:=		1
PKG_HASH:=		235b1ac46fe4f3b06b3e945d000276f07deb8243be05d63c04aff06ab6123b64
PKG_DESCR:=		powerful syslog daemon
PKG_SECTION:=		sys/misc
PKG_BUILDDEP:=		cmake-host glib ivykis libressl json-c libnet flex
PKG_DEPENDS:=		glib ivykis libressl json-c libnet
PKG_URL:=		http://www.balabit.com/
PKG_SITES:=		https://github.com/balabit/syslog-ng/archive/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
WRKDIST=		${WRKDIR}/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,SYSLOG_NG,syslog-ng,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=		cmake
CMAKE_FLAGS+=		-DSYSLOG_NG_ENABLE_SYSTEMD=OFF \
			-DSYSLOG_NG_ENABLE_TCP_WRAPPER=OFF \
			-DENABLE_CURL=OFF \
			-DENABLE_JAVA=OFF \
			-DENABLE_JAVA_MODULES=OFF

syslog-ng-install:
	${INSTALL_DIR} ${IDIR_SYSLOG_NG}/usr/sbin \
		${IDIR_SYSLOG_NG}/etc/syslog-ng
	${INSTALL_BIN} ${WRKINST}/usr/sbin/syslog-ng \
		${IDIR_SYSLOG_NG}/usr/sbin/
	${INSTALL_DATA} ./files/syslog-ng.conf \
		${IDIR_SYSLOG_NG}/etc/syslog-ng/

include ${ADK_TOPDIR}/mk/pkg-bottom.mk