source: freewrt/package/syslog-ng/Makefile

freewrt_2_0
Last change on this file was 5d9f1ed, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

more init script fixes

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1009 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.0 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= syslog-ng
10PKG_VERSION:= 1.6.11
11PKG_RELEASE:= 2
12PKG_MD5SUM:= 8f9ca6140f428dc9adec9fa1c270a2dd
13PKG_INIT:= 05
14
15PKG_SOURCE_URL:= http://www.balabit.com/downloads/syslog-ng/stable/src \
16 http://www.balabit.com/downloads/syslog-ng/1.6/src
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,SYSLOG_NG,syslog-ng,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
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-nls \
47 --disable-dependency-tracking \
48 --disable-full-static \
49 --enable-tcp-wrapper \
50 --with-libol="$(STAGING_DIR)/usr/bin" \
51 );
52 touch $@
53
54$(WRKBUILD)/.built:
55 rm -rf $(WRKINST)
56 mkdir -p $(WRKINST)
57 $(MAKE) -C $(WRKBUILD) \
58 DESTDIR="$(WRKINST)" \
59 all install
60 touch $@
61
62$(IPKG_SYSLOG_NG):
63 install -d -m0755 $(IDIR_SYSLOG_NG)/usr/sbin
64 $(CP) $(WRKINST)/usr/sbin/syslog-ng $(IDIR_SYSLOG_NG)/usr/sbin/
65 install -d -m0755 $(IDIR_SYSLOG_NG)/etc/init.d
66 install -m0755 ./files/syslog-ng.init \
67 $(IDIR_SYSLOG_NG)/etc/init.d/S$(PKG_INIT)syslog-ng
68 install -d -m0755 $(IDIR_SYSLOG_NG)/etc/syslog-ng
69 install -m0644 ./files/syslog-ng.conf $(IDIR_SYSLOG_NG)/etc/syslog-ng/
70 $(RSTRIP) $(IDIR_SYSLOG_NG)
71 $(IPKG_BUILD) $(IDIR_SYSLOG_NG) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.