nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / nmap / Makefile
blob8309696a29a684b2f8141424da4f1cbd07bbc5ee
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2016 Jim Klimov
25 # Copyright 2022 Nona Hansel
28 BUILD_BITS=64
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= nmap
32 COMPONENT_VERSION= 7.80
33 COMPONENT_REVISION= 2
34 COMPONENT_PROJECT_URL= http://nmap.org/
35 COMPONENT_FMRI= diagnostic/$(COMPONENT_NAME)
36 COMPONENT_CLASSIFICATION= System/Administration and Configuration
37 COMPONENT_SUMMARY= Network exploration tool and security / port scanner
38 COMPONENT_DESCRIPTION= Nmap is useful for inventorying the network, managing \
39 service upgrade schedules, and monitoring host or service uptime
40 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
41 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
42 COMPONENT_ARCHIVE_HASH= sha256:fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa
43 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
44 COMPONENT_SIG_URL= $(COMPONENT_PROJECT_URL)dist/sigs/$(COMPONENT_ARCHIVE).asc
45 COMPONENT_LICENSE= GPLv2,OpenSSL,SSLeay
46 # Note: This license file incorporates nmap COPYING and OpenSSL license text
47 COMPONENT_LICENSE_FILE= nmap.license
49 include $(WS_MAKE_RULES)/common.mk
51 PKG_OPTIONS += -D COMPONENT_DESCRIPTION="$(COMPONENT_DESCRIPTION)"
53 COMPONENT_PREP_ACTION = (cd $(@D)/libdnet-stripped && autoconf)
55 COMPONENT_PRE_CONFIGURE_ACTION = $(CP) -rp $(SOURCE_DIR)/. $(@D)
57 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
58 CONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
59 CONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_$(BITS))
60 CONFIGURE_OPTIONS += --localstatedir=/var
61 CONFIGURE_OPTIONS += --without-localdirs
62 CONFIGURE_OPTIONS += --without-ndiff
63 CONFIGURE_OPTIONS += --without-zenmap
64 CONFIGURE_OPTIONS += --with-openssl
65 CONFIGURE_OPTIONS += --with-libpcap
66 CONFIGURE_OPTIONS += --with-libpcre
67 CONFIGURE_OPTIONS += --with-liblua
68 CONFIGURE_OPTIONS += --with-ncat
70 TEST_TARGET= $(NO_TESTS)
72 # Auto-generated dependencies
73 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
74 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
75 REQUIRED_PACKAGES += library/libssh2
76 REQUIRED_PACKAGES += library/pcre
77 REQUIRED_PACKAGES += library/security/openssl
78 REQUIRED_PACKAGES += library/zlib
79 REQUIRED_PACKAGES += runtime/lua-53
80 REQUIRED_PACKAGES += system/library
81 REQUIRED_PACKAGES += system/library/libpcap
82 REQUIRED_PACKAGES += system/library/math