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 2014-2017 Alexander Pyhalov
13 # Copyright 2019, Michal Nowak
14 # Copyright 2023, Niklas Poslovski
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 0.4.8.12
22 COMPONENT_PROJECT_URL
= https
://www.torproject.org
23 COMPONENT_SUMMARY
= Anonymizing overlay network for TCP
24 COMPONENT_FMRI
= network
/tor
25 COMPONENT_CLASSIFICATION
= Applications
/Internet
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= \
29 sha256
:ca7cc735d98e3747b58f2f3cc14f804dd789fa0fb333a84dcb6bd70adbb8c874
30 COMPONENT_ARCHIVE_URL
= https
://dist.torproject.org
/$(COMPONENT_ARCHIVE
)
31 COMPONENT_SIG_URL
= $(COMPONENT_ARCHIVE_URL
).asc
32 COMPONENT_LICENSE_FILE
= LICENSE
33 COMPONENT_LICENSE
= BSD
, OPEN DATA LICENSE
35 include $(WS_MAKE_RULES
)/common.mk
37 CPPFLAGS
+= -I
/usr
/include/libevent2
-I
$(OPENSSL_INCDIR
)
38 LDFLAGS
+= -L
$(OPENSSL_LIBDIR
)
40 COMPONENT_PREP_ACTION
= (cd
$(@D
) && autoreconf
-f
)
42 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
43 CONFIGURE_OPTIONS
+= --localstatedir
=/var
44 CONFIGURE_OPTIONS
+= --disable-dependency-tracking
46 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
47 CONFIGURE_ENV
+= LDFLAGS
="$(LDFLAGS)"
49 COMPONENT_TEST_ENV
+= PATH
=$(PATH.gnu
)
51 COMPONENT_TEST_TRANSFORMS
+= \
59 # Tests require GNU diff
60 REQUIRED_PACKAGES
+= text
/gnu-diffutils
61 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
63 # Bogus dependency due to libssp
64 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
68 REQUIRED_PACKAGES
+= SUNWcs
69 REQUIRED_PACKAGES
+= compress
/xz
70 REQUIRED_PACKAGES
+= compress
/zstd
71 REQUIRED_PACKAGES
+= library
/libevent2
72 REQUIRED_PACKAGES
+= library
/zlib
73 REQUIRED_PACKAGES
+= shell/ksh93
74 REQUIRED_PACKAGES
+= system
/library
75 REQUIRED_PACKAGES
+= system
/library
/math