jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / libgcrypt / Makefile
blobf81fe6b546e0be6b209bfc6a0dee566d4d77c194
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
21 # Copyright 2013 Colin Ellis. All rights reserved.
22 # Copyright 2011 Audioboo Ltd. All rights reserved.
25 USE_DEFAULT_TEST_TRANSFORMS= yes
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= libgcrypt
29 COMPONENT_VERSION= 1.11.0
30 COMPONENT_REVISION= 2
31 COMPONENT_SUMMARY= GnuPG libgcrypt library
32 COMPONENT_PROJECT_URL= https://www.gnu.org/software/libgcrypt/
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
35 COMPONENT_ARCHIVE_HASH= sha256:09120c9867ce7f2081d6aaa1775386b98c2f2f246135761aae47d81f58685b9c
36 COMPONENT_ARCHIVE_URL= https://gnupg.org/ftp/gcrypt/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
37 COMPONENT_FMRI= system/library/security/libgcrypt
38 COMPONENT_CLASSIFICATION= System/Security
39 COMPONENT_LICENSE= GPL-2.0-only AND LGPL-2.1-only AND BSD-3-Clause
41 include $(WS_MAKE_RULES)/common.mk
43 ifeq ($(MACH), sparc)
44 CONFIGURE_OPTIONS += --disable-asm
45 endif
47 # helper target
48 update-license-file: patch
49 ( \
50 printf -- '--- LICENSES --------------------------------------------------------------\n\n' ; \
51 $(CAT) $(SOURCE_DIR)/LICENSES ; \
52 printf '\n--- COPYING ---------------------------------------------------------------\n\n' ; \
53 $(CAT) $(SOURCE_DIR)/COPYING ; \
54 printf '\n--- COPYING.LIB -----------------------------------------------------------\n\n' ; \
55 $(CAT) $(SOURCE_DIR)/COPYING.LIB \
56 ) > $(COMPONENT_DIR)/$(COMPONENT_LICENSE_FILE)
58 # We do not want the info index file
59 COMPONENT_POST_INSTALL_ACTION += $(RM) $(PROTOUSRSHAREDIR)/info/dir ;
61 # Some tests are using mlock(3c) and expects it pass. Since mlock() is
62 # restricted function in illumos we need to make sure the additional privileges
63 # are granted.
64 COMPONENT_PRE_TEST_ACTION += \
65 /usr/bin/ppriv $$$$ | $(GNU_GREP) -q 'E:.*proc_lock_memory' || ( \
66 /usr/bin/printf "\nERROR: The proc_lock_memory privilege is needed!!!\n\n" ; \
67 /usr/bin/printf "Use\n\n\tusermod -K defaultpriv=basic,proc_lock_memory USERNAME\n" ; \
68 /usr/bin/printf "\nto grant the required privileges.\n\n" ; \
69 exit 1 ) ;
71 # Auto-generated dependencies
72 REQUIRED_PACKAGES += library/security/libgpg-error
73 REQUIRED_PACKAGES += shell/ksh93
74 REQUIRED_PACKAGES += system/library