3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=5280a86b4f5c25b2ba157c8cea302cf0
10 PKG_SOURCE_URL
:=http
://www.balabit.com
/downloads
/syslog-ng
/stable
/src \
11 http
://www.balabit.com
/downloads
/syslog-ng
/1.6/src
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,SYSLOG_NG
,syslog-ng
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
:
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libol" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libol" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
48 --localstatedir
=/var
/lib \
49 --disable-dependency-tracking \
50 --disable-full-static \
51 --enable-tcp-wrapper \
52 --with-libol
=$(STAGING_DIR
)/usr
/bin \
54 touch
$(PKG_BUILD_DIR
)/.configured
56 $(PKG_BUILD_DIR
)/.built
:
57 rm -rf
$(PKG_INSTALL_DIR
)
58 mkdir
-p
$(PKG_INSTALL_DIR
)
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libol" \
62 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libol" \
68 install -d
-m0755
$(IDIR_SYSLOG_NG
)/usr
/sbin
69 install -d
-m0755
$(IDIR_SYSLOG_NG
)/etc
/syslog-ng
70 install -d
-m0755
$(IDIR_SYSLOG_NG
)/etc
/init.d
71 $(CP
) ${PKG_BUILD_DIR}/src
/syslog-ng
$(IDIR_SYSLOG_NG
)/usr
/sbin
/
72 $(CP
) files
/syslog-ng.conf
$(IDIR_SYSLOG_NG
)/etc
/syslog-ng
/
73 $(CP
) files
/syslog-ng.init
$(IDIR_SYSLOG_NG
)/etc
/init.d
/S
$(PKG_INIT_LEVEL
)syslog-ng
74 $(RSTRIP
) $(IDIR_SYSLOG_NG
)
75 $(IPKG_BUILD
) $(IDIR_SYSLOG_NG
) $(PACKAGE_DIR
)