update nmap to 4.01 (thanks to Richard Nadeau)
[openwrt.git] / openwrt / package / syslog-ng / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=syslog-ng
6 PKG_VERSION:=1.6.9
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=5280a86b4f5c25b2ba157c8cea302cf0
9
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
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17 PKG_INIT_LEVEL:=60
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,SYSLOG_NG,syslog-ng,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
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" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --disable-dependency-tracking \
50 --disable-full-static \
51 --enable-tcp-wrapper \
52 --with-libol="$(STAGING_DIR)/usr/bin" \
53 );
54 touch $(PKG_BUILD_DIR)/.configured
55
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 all install
62 touch $@
63
64 $(IPKG_SYSLOG_NG):
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)
73
This page took 0.043378 seconds and 5 git commands to generate.