2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=a3cbfdb6e1e5beea181a7349749719f3
16 PKG_SOURCE_URL
:= http
://www.balabit.com
/downloads
/syslog-ng
/1.6/src \
17 http
://www.balabit.com
/downloads
/syslog-ng
/stable
/src
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/syslog-ng
27 CATEGORY
:=Administration
29 TITLE
:=A powerful syslog daemon
30 URL
:=http
://www.balabit.com
/products
/syslog_ng
/
33 define Package
/syslog-ng
/description
34 syslog-ng reads and logs messages to the system console
, log
35 files
, other machines and
/or users
as specified by its
40 define Package
/syslog-ng
/conffiles
41 /etc
/syslog-ng
/syslog-ng.conf
44 define Build
/Configure
45 $(call Build
/Configure
/Default
,--disable-dependency-tracking \
46 --disable-full-static \
47 --enable-tcp-wrapper \
48 --with-libol
="$(STAGING_DIR)/usr/bin",CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libol" \
49 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libol")
53 $(call Build
/Compile
/Default
,DESTDIR
="$(PKG_INSTALL_DIR)" \
57 define Package
/syslog-ng
/install
58 $(INSTALL_DIR
) $(1)/usr
/sbin
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/syslog-ng
$(1)/usr
/sbin
/
60 $(INSTALL_DIR
) $(1)/etc
/init.d
61 $(INSTALL_BIN
) .
/files
/syslog-ng.init
$(1)/etc
/init.d
/syslog-ng
62 $(INSTALL_DIR
) $(1)/etc
/syslog-ng
63 $(INSTALL_DATA
) .
/files
/syslog-ng.conf
$(1)/etc
/syslog-ng
/
66 $(eval
$(call BuildPackage
,syslog-ng
))