1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# -*-makefile-*-
#
# Copyright (C) 2006 by Robert Schwebel
# 2008, 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_SYSLOGNG) += syslogng
#
# Paths and names
#
SYSLOGNG_VERSION := 2.0.10
SYSLOGNG_MD5 := 3f96ccf13dda0b9e150e511bcffde795
SYSLOGNG := syslog-ng-$(SYSLOGNG_VERSION)
SYSLOGNG_SUFFIX := tar.gz
SYSLOGNG_URL := http://www.balabit.com/downloads/files/syslog-ng/sources/2.0/src/$(SYSLOGNG).$(SYSLOGNG_SUFFIX)
SYSLOGNG_SOURCE := $(SRCDIR)/$(SYSLOGNG).$(SYSLOGNG_SUFFIX)
SYSLOGNG_DIR := $(BUILDDIR)/$(SYSLOGNG)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
SYSLOGNG_PATH := PATH=$(CROSS_PATH)
SYSLOGNG_ENV := $(CROSS_ENV)
#
# autoconf
#
SYSLOGNG_AUTOCONF := \
$(CROSS_AUTOCONF_ROOT) \
$(GLOBAL_IPV6_OPTION) \
--enable-dynamic-linking \
--disable-debug \
--disable-sun-streams \
--disable-sun-door
ifdef PTXCONF_SYSLOGNG_TCP_WRAPPER
SYSLOGNG_AUTOCONF += --enable-tcp-wrapper
else
SYSLOGNG_AUTOCONF += --disable-tcp-wrapper
endif
ifdef PTXCONF_SYSLOGNG_SPOOF_SOURCE
SYSLOGNG_AUTOCONF += \
--enable-spoof-source \
--with-libnet=$(SYSROOT)/usr/bin
else
SYSLOGNG_AUTOCONF += --disable-spoof-source
endif
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/syslogng.targetinstall:
@$(call targetinfo)
@$(call install_init, syslogng)
@$(call install_fixup, syslogng,PRIORITY,optional)
@$(call install_fixup, syslogng,SECTION,base)
@$(call install_fixup, syslogng,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, syslogng,DESCRIPTION,missing)
# # binary
@$(call install_copy, syslogng, 0, 0, 0755, -, \
/sbin/syslog-ng)
# # config
ifdef PTXCONF_SYSLOGNG_CONFIG
@$(call install_alternative, syslogng, 0, 0, 0644, /etc/syslog-ng.conf, n)
endif
# # bb init: start scripts
ifdef PTXCONF_INITMETHOD_BBINIT
ifdef PTXCONF_SYSLOGNG_STARTSCRIPT
@$(call install_alternative, syslogng, 0, 0, 0755, /etc/init.d/syslog-ng, n)
ifneq ($(call remove_quotes,$(PTXCONF_SYSLOGNG_BBINIT_LINK)),)
@$(call install_link, syslogng, \
../init.d/syslog-ng, \
/etc/rc.d/$(PTXCONF_SYSLOGNG_BBINIT_LINK))
endif
endif
endif
@$(call install_finish, syslogng)
@$(call touch)
# vim: syntax=make
|