146N/A
146N/A# CDDL HEADER START
146N/A#
146N/A# The contents of this file are subject to the terms of the
146N/A# Common Development and Distribution License (the "License").
146N/A# You may not use this file except in compliance with the License.
146N/A#
146N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
146N/A# or http://www.opensolaris.org/os/licensing.
146N/A# See the License for the specific language governing permissions
146N/A# and limitations under the License.
146N/A#
146N/A# When distributing Covered Code, include this CDDL HEADER in each
146N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
146N/A# If applicable, add the following below this CDDL HEADER, with the
146N/A# fields enclosed by brackets "[]" replaced with your own identifying
146N/A# information: Portions Copyright [yyyy] [name of copyright owner]
146N/A#
146N/A# CDDL HEADER END
146N/A#
146N/A
146N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
146N/A#
5680N/ABUILD_BITS= 64
3817N/A# Can't use the Studio compilers as they don't support the GNU
3817N/A# __attribute__ extension
5680N/ACOMPILER= gcc
146N/Ainclude ../../make-rules/shared-macros.mk
146N/A
614N/ACOMPONENT_NAME= nmap
5789N/ACOMPONENT_VERSION= 7.11
1317N/ACOMPONENT_PROJECT_URL= http://nmap.org/
614N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
844N/ACOMPONENT_ARCHIVE_HASH= \
5789N/A sha256:dfc95db3a8ee4c56650dbaa5a1a1e989b2963de8faea2531c21e6fd6e0bccc2a
1317N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
146N/A
5789N/ATPNO= 27577
2899N/A
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
146N/A
146N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1317N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
146N/A
3915N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
3915N/A
5680N/Aifeq ($(OS_VERSION),5.11)
146N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
5680N/Aendif
5680N/A
5680N/A# Fix 64-bit linking via compiler.
5680N/ALDFLAGS += $(CC_BITS)
5680N/A
3915N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON.$(PYTHON_VERSION))"
2465N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_64)
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
146N/ACONFIGURE_OPTIONS += --without-localdirs
146N/ACONFIGURE_OPTIONS += --with-zenmap
146N/ACONFIGURE_OPTIONS += --with-openssl
146N/ACONFIGURE_OPTIONS += --with-libpcap
146N/ACONFIGURE_OPTIONS += --with-libpcre
1317N/ACONFIGURE_OPTIONS += --with-liblua
146N/ACONFIGURE_OPTIONS += --with-ncat
146N/ACONFIGURE_OPTIONS += --with-ndiff
1317N/A
1317N/A# pkgdepend doesn't like the first line of a Python script to be:
3915N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
1317N/ACOMPONENT_POST_INSTALL_ACTION += \
3915N/A $(GSED) -i -e "s?env python?python$(PYTHON_VERSION)?" \
1317N/A $(PROTOUSRBINDIR)/uninstall_zenmap
146N/A
3817N/AREQUIRED_PACKAGES += library/pcre
3915N/AREQUIRED_PACKAGES += library/python/pygobject-27
3915N/AREQUIRED_PACKAGES += library/python/pygtk2-27
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += runtime/lua
3915N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/libpcap
3817N/AREQUIRED_PACKAGES += system/library/math
6951N/AREQUIRED_PACKAGES += system/network/bpf