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
125
126
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2005 by Rex Tsai <chihchun@kalug.linux.org.tw>
# Copyright (C) 2003 by Dan Kegel, Ixia Communications (http://ixiacom.com)
#
# 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_SHOREWALL) += shorewall
#
# Paths and names
#
SHOREWALL_VERSION = 2.2.2
SHOREWALL = shorewall-$(SHOREWALL_VERSION)
SHOREWALL_SUFFIX = tgz
SHOREWALL_URL = http://www.shorewall.net/pub/shorewall/2.2/$(SHOREWALL)/$(SHOREWALL).$(SHOREWALL_SUFFIX)
SHOREWALL_SOURCE = $(SRCDIR)/$(SHOREWALL).$(SHOREWALL_SUFFIX)
SHOREWALL_DIR = $(BUILDDIR)/$(SHOREWALL)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
shorewall_get: $(STATEDIR)/shorewall.get
$(STATEDIR)/shorewall.get: $(shorewall_get_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
$(SHOREWALL_SOURCE):
@$(call targetinfo, $@)
@$(call get, SHOREWALL)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
shorewall_extract: $(STATEDIR)/shorewall.extract
$(STATEDIR)/shorewall.extract: $(shorewall_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(SHOREWALL_DIR))
@$(call extract, SHOREWALL)
@$(call patchin, SHOREWALL)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
shorewall_prepare: $(STATEDIR)/shorewall.prepare
$(STATEDIR)/shorewall.prepare: $(shorewall_prepare_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
shorewall_compile: $(STATEDIR)/shorewall.compile
$(STATEDIR)/shorewall.compile: $(shorewall_compile_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
shorewall_install: $(STATEDIR)/shorewall.install
$(STATEDIR)/shorewall.install: $(shorewall_install_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
shorewall_targetinstall: $(STATEDIR)/shorewall.targetinstall
#
# create /etc/shorewall directory before installing to keep it from
# using build system's chkconfig script to install itself!
#
$(STATEDIR)/shorewall.targetinstall: $(shorewall_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call install_init, shorewall)
@$(call install_fixup, shorewall,PACKAGE,shorewall)
@$(call install_fixup, shorewall,PRIORITY,optional)
@$(call install_fixup, shorewall,VERSION,$(SHOREWALL_VERSION))
@$(call install_fixup, shorewall,SECTION,base)
@$(call install_fixup, shorewall,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup, shorewall,DEPENDS,)
@$(call install_fixup, shorewall,DESCRIPTION,missing)
@$(call install_copy, shorewall, 0, 0, 0755, /etc/shorewall)
# FIXME: do this right
PREFIX=$(ROOTDIR) $(FAKEROOT) $(SHOREWALL_DIR)/install.sh
PREFIX=$(IMAGEDIR)/ipkg $(FAKEROOT) $(SHOREWALL_DIR)/install.sh
@$(call install_finish, shorewall)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
shorewall_clean:
rm -rf $(STATEDIR)/shorewall.*
rm -rf $(IMAGEDIR)/shorewall_*
rm -rf $(SHOREWALL_DIR)
# vim: syntax=make
|