From 7f0ccc917c7abe6223784c703d86cd14755691fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 3 Jul 2021 22:39:47 +0100 Subject: gentoo resync : 03.07.2021 --- net-libs/cvm/Manifest | 2 +- net-libs/cvm/cvm-0.97-r1.ebuild | 123 ++++++++++++++++++++++++++++++++++++++++ net-libs/cvm/cvm-0.97.ebuild | 122 --------------------------------------- 3 files changed, 124 insertions(+), 123 deletions(-) create mode 100644 net-libs/cvm/cvm-0.97-r1.ebuild delete mode 100644 net-libs/cvm/cvm-0.97.ebuild (limited to 'net-libs/cvm') diff --git a/net-libs/cvm/Manifest b/net-libs/cvm/Manifest index e35b71d283ef..5bd22876ca83 100644 --- a/net-libs/cvm/Manifest +++ b/net-libs/cvm/Manifest @@ -1,4 +1,4 @@ AUX cvm-0.96-fix-test-padding.patch 971 BLAKE2B a0a6dbd617427347a4b93b436f326d2cda5bd123adb6410a29f4b5955f014d078935cbf7178a1857941fa09ace013a5800f615cc0a5067dbfca10b228ec0e758 SHA512 18fa658e70030709fb83b81311a13358b09cc872ea8bb9db91ab78ea56dea13459f0bdf8e02bf8c6045c8838d7ea1941f73d0c405fe3b38f2edcb29a9cc200fb DIST cvm-0.97.tar.gz 127759 BLAKE2B 857a30ae52e7edc5e8bc66dfbe7e2ada6ba7763260b073eabbca6ee289b68ceece92442dffc5aa1d358faec24f90993d88d3555dd9399837f25e9f689ab6d66b SHA512 b04ca9edb8c84e06628ed1a827d28bf7d787c3853bec1e064fc1eb7e3082ad81998e7c902e029c0f01c346a52a4419e3c9890e2a7a75ab38625e0078dc4e9891 -EBUILD cvm-0.97.ebuild 3237 BLAKE2B e4c0d2bf498717fbd4aba72e42367822310f5f4e34d498b7f55381e259f2ceb28d60b0cc7237cda14f52e3a55e0bbaba86a1e6063f8e3d207dc3386b54ec51a6 SHA512 e736a653e6f85dbf1efa5b6af80852bd3e7263006792c4232ef5c41edb950f722576d0e4f00042206cf2665d49525cff688900ceb02637b804e605dc014b7a49 +EBUILD cvm-0.97-r1.ebuild 3257 BLAKE2B 6fb554622f54f07b4963342123ec0d9b1bf4540ff73828c5925a965ee80590dafeeb62721e6273f4168c04710d88747423028cceb3cd5bd6e6c2f676a5158e31 SHA512 0f97c575d47253fd9cdd5ec543db3398f72b29b27f73a61ae15039ea2446c2b8942b795b6e47e7a1cbcb8b43d78d854bbda03e7097daa7f36fcebf10c6e628a8 MISC metadata.xml 237 BLAKE2B 0c8ef45b6f0e15404fc767ceb7b133a844621199b4b5a5f8906c6e9ffb186572a46fd6871021bb4fe3e3b1f76ba75f38bddcaaf8eddeef43568074a54dea0c9e SHA512 34de058bcfc91edc8aa792fa3a20d0bb0318166634113402f22da57d97a4d54f8710c922c38fdd810aeb3bdcb9591494d5b20f63441ff77d242ab83f764126f3 diff --git a/net-libs/cvm/cvm-0.97-r1.ebuild b/net-libs/cvm/cvm-0.97-r1.ebuild new file mode 100644 index 000000000000..4f0ebc583cec --- /dev/null +++ b/net-libs/cvm/cvm-0.97-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Credential Validation Modules by Bruce Guenter" +HOMEPAGE="http://untroubled.org/cvm/" +SRC_URI="http://untroubled.org/cvm/archive/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ppc sparc x86" +IUSE="mysql postgres test vpopmail" +RESTRICT="!test? ( test )" + +RDEPEND="dev-db/cdb:= + >=dev-libs/bglibs-2.04:0= + virtual/libcrypt:= + mysql? ( dev-db/mysql-connector-c:0= ) + postgres? ( dev-db/postgresql[server] ) + vpopmail? ( net-mail/vpopmail )" +DEPEND="${RDEPEND} + test? ( + app-editors/vim + dev-db/sqlite + )" +# some of the testcases use +# - ex/vi/xxd +# - cdbmake +# - sqlite + +PATCHES=( "${FILESDIR}"/${PN}-0.96-fix-test-padding.patch ) + +src_prepare() { + default + # disable this test, as it breaks under Portage + # and there is no easy fix + sed -i.orig \ + -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' \ + tests.sh || die "sed failed" + # Fix the vpopmail build + sed -i.orig \ + -e '/.\/ltload cvm-vchkpw/s,-lmysqlclient,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/vpopmail/lib,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/var/vpopmail/lib,,g' \ + -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/lib/mysql,,g' \ + -e '/.\/ltload cvm-vchkpw/s,\.la,.la `cat /var/vpopmail/etc/lib_deps`,g' \ + Makefile \ + || die "Failed to fix vpopmail linking parts of Makefile" + sed -i.orig \ + -e '/.\/compile cvm-vchkpw/s,$, `cat /var/vpopmail/etc/inc_deps`,g' \ + Makefile \ + || die "Failed to fix vpopmail compiling parts of Makefile" + sed -i '/\-rpath/s|conf\-lib|conf\-rpath|' Makefile || die +} + +src_configure() { + echo "${ED}/usr/include" > conf-include || die + echo "${ED}/usr/$(get_libdir)" > conf-lib || die + echo "${ED}/usr/bin" > conf-bin || die + echo "${EPREFIX}/usr/$(get_libdir)" > conf-rpath || die + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die + echo "$(tc-getCC) ${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)/bglibs -lcrypt" > conf-ld || die +} + +src_compile() { + emake -j1 + + if use mysql; then + einfo "Building MySQL support" + emake mysql + fi + + if use postgres; then + einfo "Building Postgresql support" + emake pgsql + fi + + if use vpopmail; then + einfo "Building vpopmail support" + emake cvm-vchkpw + fi +} + +src_test() { + # bug 624384 + # the test suite tests stuff that isn't potentially enabled + emake -j1 sqlite + sh tests.sh || die "Testing Failed" +} + +src_install() { + # Upstreams installer is incredibly broken + dolib.a .libs/*.a + dolib.so .libs/*.so* + + local i + for i in a so; do + dosym libcvm-v2client.${i} /usr/$(get_libdir)/libcvm-client.${i} + done + + for i in {bench,test}client chain checkpassword pwfile qmail unix \ + vmailmgr{,-local,-udp} v1{benchclient,checkpassword,testclient} \ + ; do + dobin .libs/cvm-${i} + done + use mysql && dobin .libs/cvm-mysql{,-local,-udp} + use postgres && dobin .libs/cvm-pgsql{,-local,-udp} + use vpopmail && dobin .libs/cvm-vchkpw + + insinto /usr/include/cvm + doins {credentials,errors,facts,module,protocol,sasl,v1client,v2client}.h + dosym v1client.h /usr/include/cvm/client.h + dosym cvm/sasl.h /usr/include/cvm-sasl.h + + dodoc ANNOUNCEMENT NEWS{,.sql,.vmailmgr} + dodoc README{,.vchkpw,.vmailmgr} + dodoc TODO VERSION ChangeLog* + docinto html + dodoc *.html +} diff --git a/net-libs/cvm/cvm-0.97.ebuild b/net-libs/cvm/cvm-0.97.ebuild deleted file mode 100644 index d69c9a394878..000000000000 --- a/net-libs/cvm/cvm-0.97.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs - -DESCRIPTION="Credential Validation Modules by Bruce Guenter" -HOMEPAGE="http://untroubled.org/cvm/" -SRC_URI="http://untroubled.org/cvm/archive/${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ppc sparc x86" -IUSE="mysql postgres test vpopmail" -RESTRICT="!test? ( test )" - -RDEPEND="dev-db/cdb:= - >=dev-libs/bglibs-2.04:0=" -DEPEND="${RDEPEND} - mysql? ( dev-db/mysql-connector-c:0= ) - postgres? ( dev-db/postgresql[server] ) - vpopmail? ( net-mail/vpopmail ) - test? ( - app-editors/vim - dev-db/sqlite - )" -# some of the testcases use -# - ex/vi/xxd -# - cdbmake -# - sqlite - -PATCHES=( "${FILESDIR}"/${PN}-0.96-fix-test-padding.patch ) - -src_prepare() { - default - # disable this test, as it breaks under Portage - # and there is no easy fix - sed -i.orig \ - -e '/qmail-lookup-nodomain/,/^END_OF_TEST_RESULTS/d' \ - tests.sh || die "sed failed" - # Fix the vpopmail build - sed -i.orig \ - -e '/.\/ltload cvm-vchkpw/s,-lmysqlclient,,g' \ - -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/vpopmail/lib,,g' \ - -e '/.\/ltload cvm-vchkpw/s,-L/var/vpopmail/lib,,g' \ - -e '/.\/ltload cvm-vchkpw/s,-L/usr/local/lib/mysql,,g' \ - -e '/.\/ltload cvm-vchkpw/s,\.la,.la `cat /var/vpopmail/etc/lib_deps`,g' \ - Makefile \ - || die "Failed to fix vpopmail linking parts of Makefile" - sed -i.orig \ - -e '/.\/compile cvm-vchkpw/s,$, `cat /var/vpopmail/etc/inc_deps`,g' \ - Makefile \ - || die "Failed to fix vpopmail compiling parts of Makefile" - sed -i '/\-rpath/s|conf\-lib|conf\-rpath|' Makefile || die -} - -src_configure() { - echo "${ED}/usr/include" > conf-include || die - echo "${ED}/usr/$(get_libdir)" > conf-lib || die - echo "${ED}/usr/bin" > conf-bin || die - echo "${EPREFIX}/usr/$(get_libdir)" > conf-rpath || die - echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die - echo "$(tc-getCC) ${LDFLAGS} -L${EPREFIX}/usr/$(get_libdir)/bglibs -lcrypt" > conf-ld || die -} - -src_compile() { - emake -j1 - - if use mysql; then - einfo "Building MySQL support" - emake mysql - fi - - if use postgres; then - einfo "Building Postgresql support" - emake pgsql - fi - - if use vpopmail; then - einfo "Building vpopmail support" - emake cvm-vchkpw - fi -} - -src_test() { - # bug 624384 - # the test suite tests stuff that isn't potentially enabled - emake -j1 sqlite - sh tests.sh || die "Testing Failed" -} - -src_install() { - # Upstreams installer is incredibly broken - dolib.a .libs/*.a - dolib.so .libs/*.so* - - local i - for i in a so; do - dosym libcvm-v2client.${i} /usr/$(get_libdir)/libcvm-client.${i} - done - - for i in {bench,test}client chain checkpassword pwfile qmail unix \ - vmailmgr{,-local,-udp} v1{benchclient,checkpassword,testclient} \ - ; do - dobin .libs/cvm-${i} - done - use mysql && dobin .libs/cvm-mysql{,-local,-udp} - use postgres && dobin .libs/cvm-pgsql{,-local,-udp} - use vpopmail && dobin .libs/cvm-vchkpw - - insinto /usr/include/cvm - doins {credentials,errors,facts,module,protocol,sasl,v1client,v2client}.h - dosym v1client.h /usr/include/cvm/client.h - dosym cvm/sasl.h /usr/include/cvm-sasl.h - - dodoc ANNOUNCEMENT NEWS{,.sql,.vmailmgr} - dodoc README{,.vchkpw,.vmailmgr} - dodoc TODO VERSION ChangeLog* - docinto html - dodoc *.html -} -- cgit v1.2.3