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]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2023, Friedrich Kink. All rights reserved.
27 USE_DEFAULT_TEST_TRANSFORMS
= yes
28 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_NAME
= memcached
31 COMPONENT_VERSION
= 1.6.23
32 COMPONENT_SUMMARY
= The memcached memory object cache
33 COMPONENT_DESCRIPTION
= Memcached is a high performance multithreaded event-based \
34 key
/value cache store intended to be used in a distributed system.
35 COMPONENT_FMRI
= service
/memcached
36 COMPONENT_CLASSIFICATION
=Web Services
/Application and Web Servers
37 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
38 COMPONENT_PROJECT_URL
= https
://memcached.org
/
39 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
40 COMPONENT_ARCHIVE_HASH
= sha256
:85b0334904f440296a685ccfda75f0f4517bf8922ab8efa6d0c4b3c92c354d4c
41 COMPONENT_ARCHIVE_URL
= https
://www.memcached.org
/files
/$(COMPONENT_ARCHIVE
)
42 COMPONENT_LICENSE
= BSD
43 COMPONENT_LICENSE_FILE
= COPYING
45 include $(WS_MAKE_RULES
)/common.mk
47 COMPONENT_PRE_CONFIGURE_ACTION
= \
48 (cd
$(SOURCE_DIR
); aclocal
; autoconf
; $(CLONEY
) $(SOURCE_DIR
) $(@D
))
50 # otherwise the link with ssl library does not work
51 # standard linker path does not make sense anyway
52 COMPONENT_POST_CONFIGURE_ACTION
= \
53 ($(GSED
) -i
-e
's:-L/usr/lib/amd64::' $(@D
)/config.status
)
55 COMPONENT_TEST_TARGETS
= test
57 CFLAGS
+= -I
/usr
/include/libevent2
59 CONFIGURE_OPTIONS
+= --with-libevent
=$(USRLIBDIR64
)
60 CONFIGURE_OPTIONS
+= --enable-dtrace
61 CONFIGURE_OPTIONS
+= --disable-sasl
62 CONFIGURE_OPTIONS
+= --enable-werror
63 CONFIGURE_OPTIONS
+= --enable-64bit
64 CONFIGURE_OPTIONS
+= --enable-large-client-flags
65 CONFIGURE_OPTIONS
+= --enable-tls
66 CONFIGURE_OPTIONS
+= --disable-docs
67 CONFIGURE_OPTIONS
+= --disable-coverage
68 CONFIGURE_OPTIONS
+= --localstatedir
=/var
70 ASLR_MODE
= $(ASLR_ENABLE
)
72 COMPONENT_TEST_ARGS
+= -k
-i
73 # Just retain test result output that's useful.
74 COMPONENT_TEST_TRANSFORMS
+= \
77 '-e "/^All tests/p" ' \
80 # Manually added test dependency
81 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/io-socket-ssl-538
83 # Auto-generated dependencies
84 REQUIRED_PACKAGES
+= SUNWcs
85 REQUIRED_PACKAGES
+= library
/libevent2
86 REQUIRED_PACKAGES
+= library
/security
/openssl-31
87 REQUIRED_PACKAGES
+= shell/ksh93
88 REQUIRED_PACKAGES
+= system
/library