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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Pengutronix e.K., Hildesheim, Germany
#
# 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_TCPWRAPPER) += tcpwrapper
#
# Paths and names
#
TCPWRAPPER_VERSION = 7.6
TCPWRAPPER = tcp_wrappers_$(TCPWRAPPER_VERSION)
TCPWRAPPER_URL = ftp://ftp.porcupine.org/pub/security/$(TCPWRAPPER).tar.gz
TCPWRAPPER_SOURCE = $(SRCDIR)/$(TCPWRAPPER).tar.gz
TCPWRAPPER_DIR = $(BUILDDIR)/$(TCPWRAPPER)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
tcpwrapper_get: $(STATEDIR)/tcpwrapper.get
$(STATEDIR)/tcpwrapper.get: $(tcpwrapper_get_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
$(TCPWRAPPER_SOURCE):
@$(call targetinfo, $@)
@$(call get, TCPWRAPPER)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
tcpwrapper_extract: $(STATEDIR)/tcpwrapper.extract
$(STATEDIR)/tcpwrapper.extract: $(tcpwrapper_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(TCPWRAPPER_DIR))
@$(call extract, TCPWRAPPER)
@$(call patchin, TCPWRAPPER)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
tcpwrapper_prepare: $(STATEDIR)/tcpwrapper.prepare
$(STATEDIR)/tcpwrapper.prepare: $(tcpwrapper_prepare_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
tcpwrapper_compile: $(STATEDIR)/tcpwrapper.compile
TCPWRAPPER_ENV = $(CROSS_ENV)
TCPWRAPPER_PATH = PATH=$(CROSS_PATH)
$(STATEDIR)/tcpwrapper.compile: $(tcpwrapper_compile_deps_default)
@$(call targetinfo, $@)
$(TCPWRAPPER_PATH) $(TCPWRAPPER_ENV) \
make -C $(TCPWRAPPER_DIR) linux
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
tcpwrapper_install: $(STATEDIR)/tcpwrapper.install
$(STATEDIR)/tcpwrapper.install: $(tcpwrapper_install_deps_default)
@$(call targetinfo, $@)
install -d $(SYSROOT)/lib
install $(TCPWRAPPER_DIR)/libwrap.a $(SYSROOT)/lib
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
tcpwrapper_targetinstall: $(STATEDIR)/tcpwrapper.targetinstall
$(STATEDIR)/tcpwrapper.targetinstall: $(tcpwrapper_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call install_init, tcpwrapper)
@$(call install_fixup, tcpwrapper,PACKAGE,tcpwrapper)
@$(call install_fixup, tcpwrapper,PRIORITY,optional)
@$(call install_fixup, tcpwrapper,VERSION,$(TCPWRAPPER_VERSION))
@$(call install_fixup, tcpwrapper,SECTION,base)
@$(call install_fixup, tcpwrapper,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup, tcpwrapper,DEPENDS,)
@$(call install_fixup, tcpwrapper,DESCRIPTION,missing)
ifdef PTXCONF_TCPWRAPPER_INSTALL_TCPD
@$(call install_copy, tcpwrapper, 0, 0, 0755, $(TCPWRAPPER_DIR)/tcpd, /usr/sbin/tcpd)
endif
@$(call install_finish, tcpwrapper)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
tcpwrapper_clean:
rm -rf $(STATEDIR)/tcpwrapper.*
rm -rf $(IMAGEDIR)/tcpwrapper_*
rm -rf $(TCPWRAPPER_DIR)
# vim: syntax=make
|