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
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libol" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libol" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
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)" \
65 install -d
-m0755
$(IDIR_SYSLOG_NG
)/usr
/sbin
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/syslog-ng
$(IDIR_SYSLOG_NG
)/usr
/sbin
/
67 install -d
-m0755
$(IDIR_SYSLOG_NG
)/etc
/init.d
68 install -m0755 .
/files
/syslog-ng.init
$(IDIR_SYSLOG_NG
)/etc
/init.d
/S
$(PKG_INIT_LEVEL
)syslog-ng
69 install -d
-m0755
$(IDIR_SYSLOG_NG
)/etc
/syslog-ng
70 install -m0644 .
/files
/syslog-ng.conf
$(IDIR_SYSLOG_NG
)/etc
/syslog-ng
/
71 $(RSTRIP
) $(IDIR_SYSLOG_NG
)
72 $(IPKG_BUILD
) $(IDIR_SYSLOG_NG
) $(PACKAGE_DIR
)