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
|
# -*-makefile-*-
#
# Copyright (C) 2005 by Bjoern Buerger <b.buerger@pengutronix.de>
# 2010 Michael Olbrich <m.olbrich@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_NETCAT) += netcat
#
# Paths and names
#
NETCAT_VERSION := 0.7.1
NETCAT := netcat-$(NETCAT_VERSION)
NETCAT_SUFFIX := tar.gz
NETCAT_URL := $(PTXCONF_SETUP_SFMIRROR)/netcat/$(NETCAT).$(NETCAT_SUFFIX)
NETCAT_SOURCE := $(SRCDIR)/$(NETCAT).$(NETCAT_SUFFIX)
NETCAT_DIR := $(BUILDDIR)/$(NETCAT)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(NETCAT_SOURCE):
@$(call targetinfo)
@$(call get, NETCAT)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
NETCAT_PATH := PATH=$(CROSS_PATH)
NETCAT_ENV := $(CROSS_ENV)
#
# autoconf
#
NETCAT_AUTOCONF := $(CROSS_AUTOCONF_ROOT)
ifdef PTXCONF_NETCAT_OLD_HEXDUMP
NETCAT_AUTOCONF += --enable-oldhexdump
else
NETCAT_AUTOCONF += --disable-oldhexdump
endif
ifdef PTXCONF_NETCAT_OLD_TELNET
NETCAT_AUTOCONF += --enable-oldtelnet
else
NETCAT_AUTOCONF += --disable-oldtelnet
endif
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/netcat.targetinstall:
@$(call targetinfo)
@$(call install_init, netcat)
@$(call install_fixup, netcat,PACKAGE,netcat)
@$(call install_fixup, netcat,PRIORITY,optional)
@$(call install_fixup, netcat,VERSION,$(NETCAT_VERSION))
@$(call install_fixup, netcat,SECTION,base)
@$(call install_fixup, netcat,AUTHOR,"Bjoern Buerger <b.buerger@pengutronix.de>")
@$(call install_fixup, netcat,DEPENDS,)
@$(call install_fixup, netcat,DESCRIPTION,missing)
@$(call install_copy, netcat, 0, 0, 0755, -, /bin/netcat)
@$(call install_link, netcat, netcat, /bin/nc)
@$(call install_finish, netcat)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
netcat_clean:
rm -rf $(STATEDIR)/netcat.*
rm -rf $(PKGDIR)/netcat_*
rm -rf $(NETCAT_DIR)
# vim: syntax=make
|