summaryrefslogtreecommitdiff
path: root/package/rsyslog/Makefile
blob: d829b39ae4f2ba21c0f83ae42e0b2701a81f5eaf (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
# 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:=		rsyslog
PKG_VERSION:=		8.10.0
PKG_RELEASE:=		1
PKG_HASH:=		b92df3f367108219e2fffccd463bf49d75cb8ab3ceaa52e9789f85eace066912
PKG_DESCR:=		syslog daemon
PKG_SECTION:=		sys/misc
PKG_BUILDDEP:=		libestr liblogging json-c util-linux zlib
PKG_BUILDDEP+=		ncurses
PKG_DEPENDS:=		libestr liblogging json-c libuuid zlib
PKG_DEPENDS+=		libpthread librt libncurses
PKG_URL:=		http://www.rsyslog.com/
PKG_SITES:=		http://www.rsyslog.com/files/download/rsyslog/

DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,RSYSLOG,rsyslog,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ENV+=		ac_cv_func_malloc_0_nonnull=yes \
			ac_cv_func_realloc_0_nonnull=yes

rsyslog-install:
	$(INSTALL_DIR) $(IDIR_RSYSLOG)/etc
	$(CP) ./files/rsyslog.conf $(IDIR_RSYSLOG)/etc
	$(INSTALL_DIR) $(IDIR_RSYSLOG)/usr/lib/rsyslog
	$(CP) $(WRKINST)/usr/lib/rsyslog/*.so \
		$(IDIR_RSYSLOG)/usr/lib/rsyslog
	$(INSTALL_DIR) $(IDIR_RSYSLOG)/usr/sbin
	$(INSTALL_BIN) $(WRKINST)/usr/sbin/rsyslogd \
		$(IDIR_RSYSLOG)/usr/sbin

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