p7zip: assorted fixes
[oi-userland.git] / components / network / socat / Makefile
blob26efa60857d1f92739bbc322aeeff29ab3f11327
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2012, Adam Stevko <adam.stevko@gmail.com>
13 # Copyright (c) 2018, Michal Nowak
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= socat
19 COMPONENT_VERSION= 1.8.0.1
20 COMPONENT_SUMMARY= socat is a larger and more flexible variant of netcat
21 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
23 COMPONENT_ARCHIVE_HASH= sha256:6a283565db7cf86292c6f70504c58abb03e29888adeed5a6c5f3457e803c1b81
24 COMPONENT_PROJECT_URL= http://www.dest-unreach.org/socat/
25 COMPONENT_ARCHIVE_URL= http://www.dest-unreach.org/socat/download/$(COMPONENT_ARCHIVE)
26 COMPONENT_FMRI= network/$(COMPONENT_NAME)
27 COMPONENT_CLASSIFICATION= Applications/Internet
28 COMPONENT_LICENSE= GPLv2
29 COMPONENT_LICENSE_FILE= COPYING
31 include $(WS_TOP)/make-rules/common.mk
33 CFLAGS += $(XPG6MODE)
34 LDFLAGS += -L$(OPENSSL_LIBDIR)
36 CONFIGURE_OPTIONS += --enable-openssl_base=$(OPENSSL_PREFIX)
38 # For the test target
39 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
41 COMPONENT_TEST_TARGETS= test
43 # Disable colors in test output
44 COMPONENT_TEST_ENV += TERM=
46 # Note that some tests fail because of missing privileges ("not root")
47 COMPONENT_TEST_TRANSFORMS= \
48 '-ne "s/\.\.\. .* OK/\.\.\. OK/"' \
49 '-ne "s/\.\.\. .* NO RESULT/\.\.\. NO RESULT/"' \
50 '-ne "s/\.\.\. .* timed out/\.\.\. timed out/"' \
51 '-ne "/^test/p"' \
52 '-ne "/^summary/p"' \
53 '-ne "/^CANT/p"' \
54 '-ne "/^FAILED/p"'
56 # Auto-generated dependencies
57 REQUIRED_PACKAGES += $(OPENSSL_PKG)
58 REQUIRED_PACKAGES += $(READLINE_PKG)
59 REQUIRED_PACKAGES += SUNWcs
60 REQUIRED_PACKAGES += system/library