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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2002 by Pengutronix e.K., Hildesheim, Germany
# 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_PORTMAP) += portmap
#
# Paths and names
#
PORTMAP_VERSION := 5beta
PORTMAP := portmap_$(PORTMAP_VERSION)
PORTMAP_SUFFIX := tar.gz
PORTMAP_URL := ftp://ftp.porcupine.org/pub/security/$(PORTMAP).tar.gz
PORTMAP_SOURCE := $(SRCDIR)/$(PORTMAP).tar.gz
PORTMAP_DIR := $(BUILDDIR)/$(PORTMAP)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(PORTMAP_SOURCE):
@$(call targetinfo)
@$(call get, PORTMAP)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
$(STATEDIR)/portmap.prepare:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
PORTMAP_ENV := $(CROSS_ENV)
PORTMAP_PATH := PATH=$(CROSS_PATH)
PORTMAP_MAKEVARS := CC=$(CROSS_CC)
$(STATEDIR)/portmap.compile:
@$(call targetinfo)
cd $(PORTMAP_DIR) && \
$(PORTMAP_ENV) $(PORTMAP_PATH) make $(PORTMAP_MAKEVARS)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/portmap.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/portmap.targetinstall:
@$(call targetinfo)
@$(call install_init, portmap)
@$(call install_fixup, portmap,PACKAGE,portmap)
@$(call install_fixup, portmap,PRIORITY,optional)
@$(call install_fixup, portmap,VERSION,$(PORTMAP_VERSION))
@$(call install_fixup, portmap,SECTION,base)
@$(call install_fixup, portmap,AUTHOR,"Juergen Beisert <jbeisert@netscape.net>")
@$(call install_fixup, portmap,DEPENDS,)
@$(call install_fixup, portmap,DESCRIPTION,missing)
@$(call install_copy, portmap, 0, 0, 0755, \
$(PORTMAP_DIR)/portmap, /sbin/portmap)
# #
# # busybox init
# #
ifdef PTXCONF_INITMETHOD_BBINIT
ifdef PTXCONF_PORTMAP_STARTSCRIPT
@$(call install_alternative, portmap, 0, 0, 0755, /etc/init.d/portmapd, n)
endif
endif
# #
# # /etc/inetd.conf sniplet
# #
ifdef PTXCONF_PORTMAP_INETD_SERVER
@$(call install_alternative, portmap, 0, 0, 0644, /etc/inetd.conf.d/portmap, n)
endif
@$(call install_finish, portmap)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
portmap_clean:
rm -rf $(STATEDIR)/portmap.*
rm -rf $(PKGDIR)/portmap_*
rm -rf $(PORTMAP_DIR)
# vim: syntax=make
|