23712084 Deliver liboauth 1.0.3 in Solaris
authorNiveditha Rau <Niveditha.Rau@Oracle.COM>
Fri, 01 Jul 2016 13:21:35 +0000
changeset 6357 f780f1313ac5
parent 6355 54be0d99b031
child 6365 c00599961a88
23712084 Deliver liboauth 1.0.3 in Solaris PSARC/2016/413 GNOME 3 Web Bundle
components/liboauth/Makefile
components/liboauth/liboauth.p5m
components/liboauth/patches/01-studio.patch
components/liboauth/test/results-all.master
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/liboauth/Makefile	Fri Jul 01 13:21:35 2016 +0000
@@ -0,0 +1,78 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+BUILD_BITS =            64_and_32
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		liboauth
+COMPONENT_VERSION=	1.0.3
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_PROJECT_URL=  http://sourceforge.net/projects/liboauth
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH= \
+    sha256:0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f
+COMPONENT_ARCHIVE_URL=  http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_ARCHIVE)/download
+COMPONENT_BUGDB=	library/liboauth
+
+TPNO=			25840
+
+include $(WS_MAKE_RULES)/common.mk
+
+CFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
+
+CONFIGURE_OPTIONS += --disable-static
+# Use NSS backend instead of OpenSSL backend due to GPL-licensed components
+# that link against liboauth and thus would have to link against OpenSSL and
+# cannot.
+CONFIGURE_OPTIONS += --enable-nss
+CONFIGURE_OPTIONS += --localstatedir="$(VARDIR)"
+CONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
+CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
+CONFIGURE_ENV += SED="$(GSED)"
+# override needed because library/security/nss is missing a pkgconfig file
+# for $(MACH64).
+CONFIGURE_ENV.64 += NSS_LIBS="-R/usr/lib/mps/$(MACH64) -L/usr/lib/mps/$(MACH64) -lnss3 -lsmime3 -lssl3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
+
+# Required to use generate and use non-broken version of libtool macros.
+COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
+
+# for the tests
+unexport SHELLOPTS
+COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
+COMPONENT_TEST_ARGS =   -k -i
+COMPONENT_TEST_TRANSFORMS += \
+        '-n ' \
+        '-e "/TOTAL:/p" ' \
+        '-e "/SKIP:/p" ' \
+        '-e "/PASS:/p" ' \
+        '-e "/FAIL:/p" ' \
+        '-e "/ERROR:/p" '
+
+REQUIRED_PACKAGES += developer/documentation-tool/doxygen
+REQUIRED_PACKAGES += image/graphviz
+REQUIRED_PACKAGES += library/security/nss
+REQUIRED_PACKAGES += runtime/perl-522
+REQUIRED_PACKAGES += system/library
+REQUIRED_PACKAGES += web/curl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/liboauth/liboauth.p5m	Fri Jul 01 13:21:35 2016 +0000
@@ -0,0 +1,53 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> \
+    default mangler.man.stability "pass-through volatile">
+set name=pkg.fmri \
+    value=pkg:/library/liboauth@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary \
+    value="A library for processing data according to the oAuth standard"
+set name=pkg.description \
+    value="A POSIX-C implementation of the http://oauth.net/ protocol. libOauth provides functionality to encode URLs and sign HTTP request data according to the oAuth standard."
+set name=com.oracle.info.description value=liboauth
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value=org.opensolaris.category.2008:System/Libraries
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/413
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=usr/include/oauth.h
+link path=usr/lib/$(MACH64)/liboauth.so target=liboauth.so.0.8.7
+link path=usr/lib/$(MACH64)/liboauth.so.0 target=liboauth.so.0.8.7
+file path=usr/lib/$(MACH64)/liboauth.so.0.8.7
+file path=usr/lib/$(MACH64)/pkgconfig/oauth.pc
+link path=usr/lib/liboauth.so target=liboauth.so.0.8.7
+link path=usr/lib/liboauth.so.0 target=liboauth.so.0.8.7
+file path=usr/lib/liboauth.so.0.8.7
+file path=usr/lib/pkgconfig/oauth.pc
+file path=usr/share/man/man3/oauth.3
+license COPYING.GPL license=GPLv2
+license COPYING.MIT license=MIT
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/liboauth/patches/01-studio.patch	Fri Jul 01 13:21:35 2016 +0000
@@ -0,0 +1,13 @@
+Change for building on Solaris
+
+--- liboauth-1.0.3/configure.ac	Wed Oct 31 21:34:49 2012
++++ liboauth-1.0.3/configure.ac	Tue May 26 09:39:33 2015
+@@ -77,7 +77,7 @@
+ AC_SUBST(EXESUF)
+ 
+ dnl *** misc complier/linker flags ***
+-LIBOAUTH_CFLAGS="-Wall"
++LIBOAUTH_CFLAGS=""
+ LIBOAUTH_LDFLAGS="${LIBOAUTH_CFLAGS} -export-symbols-regex '^oauth_.*'"
+ #LIBOAUTH_CFLAGS="${LIBOAUTH_CFLAGS} -g -posix -std=c99 -pedantic"
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/liboauth/test/results-all.master	Fri Jul 01 13:21:35 2016 +0000
@@ -0,0 +1,10 @@
+PASS: tests/tcwiki
+PASS: tests/tceran
+PASS: tests/tcother
+# TOTAL: 3
+# PASS:  3
+# SKIP:  0
+# XFAIL: 0
+# FAIL:  0
+# XPASS: 0
+# ERROR: 0