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
|
# -*-makefile-*-
#
# Copyright (C) 2014 by Alexander Aring <aar@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 := 1.105
NETCAT_MD5 := 7e67b22f1ad41a1b7effbb59ff28fca1
NETCAT := netcat-openbsd-$(NETCAT_VERSION)
NETCAT_SUFFIX := tar.gz
NETCAT_TARBALL := netcat-openbsd_$(NETCAT_VERSION).orig.$(NETCAT_SUFFIX)
NETCAT_URL := $(call ptx/mirror, DEB, pool/main/n/netcat-openbsd/$(NETCAT_TARBALL))
NETCAT_SOURCE := $(SRCDIR)/$(NETCAT).$(NETCAT_SUFFIX)
NETCAT_DIR := $(BUILDDIR)/$(NETCAT)
NETCAT_LICENSE := BSD
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
NETCAT_CONF_TOOL := NO
NETCAT_MAKEVARS := \
$(CROSS_ENV)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/netcat.install:
@$(call targetinfo)
install -D -m 755 "$(NETCAT_DIR)/nc" "$(NETCAT_PKGDIR)/usr/bin/nc"
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/netcat.targetinstall:
@$(call targetinfo)
@$(call install_init, netcat)
@$(call install_fixup, netcat,PRIORITY,optional)
@$(call install_fixup, netcat,SECTION,base)
@$(call install_fixup, netcat,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
@$(call install_fixup, netcat,DESCRIPTION,missing)
@$(call install_copy, netcat, 0, 0, 0755, -, /usr/bin/nc)
@$(call install_link, netcat, nc, /usr/bin/netcat)
@$(call install_finish, netcat)
@$(call touch)
# vim: syntax=make
|