From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-libs/svrcore/Manifest | 7 ++ dev-libs/svrcore/files/svrcore-4.0.4-gentoo.patch | 100 ++++++++++++++++++++++ dev-libs/svrcore/files/svrcore-4.1-gentoo.patch | 100 ++++++++++++++++++++++ dev-libs/svrcore/metadata.xml | 16 ++++ dev-libs/svrcore/svrcore-4.0.4-r1.ebuild | 40 +++++++++ dev-libs/svrcore/svrcore-4.1.2.ebuild | 35 ++++++++ 6 files changed, 298 insertions(+) create mode 100644 dev-libs/svrcore/Manifest create mode 100644 dev-libs/svrcore/files/svrcore-4.0.4-gentoo.patch create mode 100644 dev-libs/svrcore/files/svrcore-4.1-gentoo.patch create mode 100644 dev-libs/svrcore/metadata.xml create mode 100644 dev-libs/svrcore/svrcore-4.0.4-r1.ebuild create mode 100644 dev-libs/svrcore/svrcore-4.1.2.ebuild (limited to 'dev-libs/svrcore') diff --git a/dev-libs/svrcore/Manifest b/dev-libs/svrcore/Manifest new file mode 100644 index 000000000000..89369c487edc --- /dev/null +++ b/dev-libs/svrcore/Manifest @@ -0,0 +1,7 @@ +AUX svrcore-4.0.4-gentoo.patch 3063 BLAKE2B 1ab4e7eb0dab6990ca7d2c85ab1b05d1868c5b37daa41ed900a19fc474d36311520cc3041a25576b837b7ab93f80182378b745e93d7ab8e8c3de7c0224dc80f3 SHA512 b27e02f31d17cbb3fbf7972da2147831070068ab4981cb439dff00c1d80888193c4a39376ab77cb8f202b09100f514e5e536d65e08e54253be93cadae00a2321 +AUX svrcore-4.1-gentoo.patch 3066 BLAKE2B 0acdeac026704f78470289025500a4a8da17d871eb820961aa991f3c230dff0b72f87bc1b769e58c44c72a694e393b16e57b0926b4b63c966c406519f9104ac9 SHA512 f5a16cadbef104c5658176e3684cd0de03245b6ded86d14965d7f98e2d2c65e4eba43d0630199c8c6f18f922302027ab856d1c96f592cbe79207cc327db786ab +DIST svrcore-4.0.4.tar.bz2 217076 BLAKE2B 1d5b1c6d397552f299554a19c21a81d1df8f449480095102d46bd2c9db8e4b667302f06fd199579dffb854f47fcb6f6ba54d505e3e6d3ccdfcf54dca07363f81 SHA512 4a63e2618ef8f508e71adf212eefae56e3c9d9898b924f405399bb99793de57bd178a3417f9e837c474e7960b6eb8a3cbe775b420c8fecbd974e89b4196b78fc +DIST svrcore-4.1.2.tar.bz2 263891 BLAKE2B 4d546406e18099857c1d77d479123332bdc721b51f5ad6bae74812b77704d3d6f8fa2ab67848355be7050fc3ee161c534fc7ee1692811fe9829da513f7cba29e SHA512 9d148ec9c568f1183e44006fec83b4e43b0cef56d5a04fce122fab1e9a0c0bfe39919de81c5a4d7adb2258fb7f16b4d327da20cdb4d948810e968c422d62ad40 +EBUILD svrcore-4.0.4-r1.ebuild 837 BLAKE2B 309d9419d26117395c0bb618537c978dbc9c61672633d9e928632b01e491eec61ecd28fbad36c4f3ac9af70047c6918e69737e40523de60877e8fd9ba48be153 SHA512 7c10b47f3270b6149b99881a969e889743bce88cad4f1b09cd1519b7e38a77af51a5ec3e073e06132ed24e2f2e1bb23cb4c941d6bdd2d7aaad4a66c5cb121dbe +EBUILD svrcore-4.1.2.ebuild 692 BLAKE2B d4a2ef8b78ffedc502a6a666dc16fa555d5d012aedf7362da87f6b4092f7274a00d3c06d643919ac6532e3700265ee244c0424a000c73fd41394f50c5041ae33 SHA512 105c0e603d9acace34ad5ab9705eec19822cedfacc85fca1940409d652a2bb3eb1621309f690efdca8705ace076ae0e45d63f232da4e6e98d31c3bd21dda103e +MISC metadata.xml 459 BLAKE2B 1b1121a04f0ee2f59af930415a61b083378ce28d973be4c4c19472adaa7e3d74b443e5fa15262c58f9226124e988678f67fd086e03522e4f7e8f0916b62368a0 SHA512 55ecd7c4c70d396e9f6a9458664854f564e2bd81f67f477bffb7da39ef71ca3fb881895527c45e16795c7b59c9c47e529bce2c0aabc94a5bde5fe4661879c1ad diff --git a/dev-libs/svrcore/files/svrcore-4.0.4-gentoo.patch b/dev-libs/svrcore/files/svrcore-4.0.4-gentoo.patch new file mode 100644 index 000000000000..83e9f7fca359 --- /dev/null +++ b/dev-libs/svrcore/files/svrcore-4.0.4-gentoo.patch @@ -0,0 +1,100 @@ +diff -uNr src/Makefile.am svrcore-4.0.4src/Makefile.am +--- src/Makefile.am 2006-12-14 18:07:32.000000000 +0100 ++++ src/Makefile.am 2007-08-06 17:37:17.000000000 +0200 +@@ -4,8 +4,8 @@ + Makefile.win \ + ntgetpin.rc + +-lib_LTLIBRARIES = libsvrcore.la +-include_HEADERS = svrcore.h ++pkglib_LTLIBRARIES = libsvrcore.la ++pkginclude_HEADERS = svrcore.h + libsvrcore_la_SOURCES = alt.c \ + cache.c \ + errors.c \ +diff -uNr svrcore.pc.in svrcore.pc.in +--- svrcore.pc.in 2006-12-14 18:07:32.000000000 +0100 ++++ svrcore.pc.in 2007-08-06 17:38:12.000000000 +0200 +@@ -1,11 +1,11 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ +-libdir=@libdir@ +-includedir=@includedir@ ++libdir=@libdir@/@PACKAGE@ ++includedir=@includedir@/@PACKAGE@ + + Name: svrcore + Description: Svrcore - Secure PIN handling using NSS crypto + Version: @VERSION@ + Requires: @NSPR_NAME@ >= @NSPR_MIN_VER@ , @NSS_NAME@ >= @NSS_MIN_VER@ +-Libs: -lsvrcore ++Libs: -L${libdir} -lsvrcore + Cflags: -I${includedir} +diff -ur m4.orig/nspr.m4 m4/nspr.m4 +--- m4.orig/nspr.m4 2009-10-06 01:40:18.979484804 +0300 ++++ m4/nspr.m4 2009-10-06 01:41:21.539982482 +0300 +@@ -52,28 +52,6 @@ + ], + AC_MSG_RESULT(no)) + +-# see if we are doing an "in-tree" build with the other +-# mozilla components +-if test -z "$nspr_inc" -o -z "$nspr_lib" ; then +- for nsprpath in "../../dist" "../../dist/*.OBJ" ; do +- savedir=`pwd` +- cd $nsprpath +- abs_nsprpath=`pwd` +- cd $savedir +- if test -f "$abs_nsprpath/include/nspr/nspr.h" ; then +- nspr_inc="-I$abs_nsprpath/include/nspr" +- elif test -f "$abs_nsprpath/include/nspr.h" ; then +- nspr_inc="-I$abs_nsprpath/include" +- fi +- if test -d "$abs_nsprpath/lib" ; then +- nspr_lib="-L$abs_nsprpath/lib" +- fi +- if test -n "$nspr_inc" -a -n "$nspr_lib" ; then +- break +- fi +- done +-fi +- + # if NSPR is not found yet, try pkg-config + # last resort + if test -z "$nspr_inc" -o -z "$nspr_lib" ; then +diff -ur m4.orig/nss.m4 m4/nss.m4 +--- m4.orig/nss.m4 2009-10-06 01:40:18.979484804 +0300 ++++ m4/nss.m4 2009-10-06 01:41:31.291485717 +0300 +@@ -52,32 +52,6 @@ + ], + AC_MSG_RESULT(no)) + +-# see if we are building "in tree" with the +-# other mozilla components +-if test -z "$nss_inc" -o -z "$nss_lib"; then +- nsslibpath=`echo ../../dist/*.OBJ/lib | cut -f1 -d' '` +- savedir=`pwd` +- cd $nsslibpath +- abs_nsslibpath=`pwd` +- cd $savedir +- nssincpath=../../dist/public/nss +- savedir=`pwd` +- cd $nssincpath +- abs_nssincpath=`pwd` +- cd $savedir +- if test -f "$abs_nssincpath/nss.h" ; then +- nss_inc="-I$abs_nssincpath" +- fi +- if test -d "$abs_nsslibpath" ; then +- nss_lib="-L$abs_nsslibpath" +- fi +- if test -n "$nss_inc" -a -n "$nss_lib" ; then +- AC_MSG_CHECKING(using in-tree NSS from $nssincpath $nsslibpath) +- else +- AC_MSG_CHECKING(could not find in-tree NSS in ../../dist) +- fi +-fi +- + # if NSS is not found yet, try pkg-config + # last resort + if test -z "$nss_inc" -o -z "$nss_lib"; then diff --git a/dev-libs/svrcore/files/svrcore-4.1-gentoo.patch b/dev-libs/svrcore/files/svrcore-4.1-gentoo.patch new file mode 100644 index 000000000000..346407e124e3 --- /dev/null +++ b/dev-libs/svrcore/files/svrcore-4.1-gentoo.patch @@ -0,0 +1,100 @@ +diff -uNr a/m4/nspr.m4 b/m4/nspr.m4 +--- a/m4/nspr.m4 2016-04-22 06:30:23.000000000 +1000 ++++ b/m4/nspr.m4 2016-06-08 15:06:49.923333338 +1000 +@@ -52,28 +52,6 @@ + ], + AC_MSG_RESULT(no)) + +-# see if we are doing an "in-tree" build with the other +-# mozilla components +-if test -z "$nspr_inc" -o -z "$nspr_lib" ; then +- for nsprpath in "../../dist" "../../dist/*.OBJ" ; do +- savedir=`pwd` +- cd $nsprpath +- abs_nsprpath=`pwd` +- cd $savedir +- if test -f "$abs_nsprpath/include/nspr/nspr.h" ; then +- nspr_inc="-I$abs_nsprpath/include/nspr" +- elif test -f "$abs_nsprpath/include/nspr.h" ; then +- nspr_inc="-I$abs_nsprpath/include" +- fi +- if test -d "$abs_nsprpath/lib" ; then +- nspr_lib="-L$abs_nsprpath/lib" +- fi +- if test -n "$nspr_inc" -a -n "$nspr_lib" ; then +- break +- fi +- done +-fi +- + # if NSPR is not found yet, try pkg-config + # last resort + if test -z "$nspr_inc" -o -z "$nspr_lib" ; then +diff -uNr a/m4/nss.m4 b/m4/nss.m4 +--- a/m4/nss.m4 2016-04-22 06:30:23.000000000 +1000 ++++ b/m4/nss.m4 2016-06-08 15:06:49.923333338 +1000 +@@ -52,32 +52,6 @@ + ], + AC_MSG_RESULT(no)) + +-# see if we are building "in tree" with the +-# other mozilla components +-if test -z "$nss_inc" -o -z "$nss_lib"; then +- nsslibpath=`echo ../../dist/*.OBJ/lib | cut -f1 -d' '` +- savedir=`pwd` +- cd $nsslibpath +- abs_nsslibpath=`pwd` +- cd $savedir +- nssincpath=../../dist/public/nss +- savedir=`pwd` +- cd $nssincpath +- abs_nssincpath=`pwd` +- cd $savedir +- if test -f "$abs_nssincpath/nss.h" ; then +- nss_inc="-I$abs_nssincpath" +- fi +- if test -d "$abs_nsslibpath" ; then +- nss_lib="-L$abs_nsslibpath" +- fi +- if test -n "$nss_inc" -a -n "$nss_lib" ; then +- AC_MSG_CHECKING(using in-tree NSS from $nssincpath $nsslibpath) +- else +- AC_MSG_CHECKING(could not find in-tree NSS in ../../dist) +- fi +-fi +- + # if NSS is not found yet, try pkg-config + # last resort + if test -z "$nss_inc" -o -z "$nss_lib"; then +diff -uNr a/src/Makefile.am b/src/Makefile.am +--- a/src/Makefile.am 2016-04-22 06:30:23.000000000 +1000 ++++ b/src/Makefile.am 2016-06-08 15:06:49.923333338 +1000 +@@ -10,8 +10,8 @@ + Makefile.win \ + ntgetpin.rc + +-lib_LTLIBRARIES = libsvrcore.la +-include_HEADERS = svrcore.h ++pkglib_LTLIBRARIES = libsvrcore.la ++pkginclude_HEADERS = svrcore.h + libsvrcore_la_SOURCES = alt.c \ + cache.c \ + errors.c \ +diff -uNr a/svrcore.pc.in b/svrcore.pc.in +--- a/svrcore.pc.in 2016-04-22 06:30:23.000000000 +1000 ++++ b/svrcore.pc.in 2016-06-08 15:06:49.923333338 +1000 +@@ -1,11 +1,11 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ +-libdir=@libdir@ +-includedir=@includedir@ ++libdir=@libdir@/@PACKAGE@ ++includedir=@includedir@/@PACKAGE@ + + Name: svrcore + Description: Svrcore - Secure PIN handling using NSS crypto + Version: @VERSION@ + Requires: @NSPR_NAME@ >= @NSPR_MIN_VER@ , @NSS_NAME@ >= @NSS_MIN_VER@ +-Libs: -lsvrcore ++Libs: -L${libdir} -lsvrcore + Cflags: -I${includedir} diff --git a/dev-libs/svrcore/metadata.xml b/dev-libs/svrcore/metadata.xml new file mode 100644 index 000000000000..502fff316fa2 --- /dev/null +++ b/dev-libs/svrcore/metadata.xml @@ -0,0 +1,16 @@ + + + + + wibrown@redhat.com + William Brown + + + wes@sol1.com.au + Wes + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/dev-libs/svrcore/svrcore-4.0.4-r1.ebuild b/dev-libs/svrcore/svrcore-4.0.4-r1.ebuild new file mode 100644 index 000000000000..b88e4a800e90 --- /dev/null +++ b/dev-libs/svrcore/svrcore-4.0.4-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit multilib autotools eutils + +DESCRIPTION="Mozilla LDAP C SDK" +HOMEPAGE="http://wiki.mozilla.org/LDAP_C_SDK" +SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/directory/svrcore/releases/"${PV}"/src/"${P}".tar.bz2" + +LICENSE="MPL-1.1 GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=">=dev-libs/nss-3.11 + >=dev-libs/nspr-4.6" + +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/"${P}"-gentoo.patch + eautoreconf +} + +src_configure() { + econf --with-pic || die "cannot configure" +} + +src_install () { + default + + # cope with libraries being in /usr/lib/svrcore + echo "LDPATH=/usr/$(get_libdir)/svrcore" > 08svrcore + dodir /etc/env.d + doenvd 08svrcore + + dodoc ChangeLog INSTALL NEWS TODO README AUTHORS +} diff --git a/dev-libs/svrcore/svrcore-4.1.2.ebuild b/dev-libs/svrcore/svrcore-4.1.2.ebuild new file mode 100644 index 000000000000..9de0cc2dfa35 --- /dev/null +++ b/dev-libs/svrcore/svrcore-4.1.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="Mozilla LDAP C SDK" +HOMEPAGE="http://www.port389.org/" +SRC_URI="http://www.port389.org/binaries/${P}.tar.bz2" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-libs/nss-3.11 + >=dev-libs/nspr-4.6" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/${PN}-4.1-gentoo.patch" ) + +src_prepare() { + default + eautoreconf +} + +src_install() { + default + # cope with libraries being in /usr/lib/svrcore + echo "LDPATH='/usr/$(get_libdir)/${PN}'" > "${T}/08svrcore" || die "Unable to create env file" + doenvd "${T}/08svrcore" +} -- cgit v1.2.3