fix cups depends
[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:=00
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,SYSLOG_NG,syslog-ng,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23
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" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 --localstatedir=/var/lib \
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 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" \
63 CC=$(TARGET_CC) \
64 install-exec install-data
65 touch $@
66
67 $(IPKG_SYSLOG_NG):
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)
76
This page took 0.046828 seconds and 5 git commands to generate.