summaryrefslogtreecommitdiff
path: root/net-libs/cvm
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/cvm')
-rw-r--r--net-libs/cvm/Manifest9
-rw-r--r--net-libs/cvm/cvm-0.76.ebuild61
-rw-r--r--net-libs/cvm/cvm-0.82.ebuild103
-rw-r--r--net-libs/cvm/cvm-0.96.ebuild105
-rw-r--r--net-libs/cvm/metadata.xml10
5 files changed, 288 insertions, 0 deletions
diff --git a/net-libs/cvm/Manifest b/net-libs/cvm/Manifest
new file mode 100644
index 000000000000..fc49f947d0ab
--- /dev/null
+++ b/net-libs/cvm/Manifest
@@ -0,0 +1,9 @@
+DIST cvm-0.76.tar.gz 91957 SHA256 0b0bbc21ad7bbe6acab66a85369502c2907e522fa2fd5c33c6f584ad1ccc000e SHA512 f3634be766e1381a95c09514547679f458e92b5f4de468b5d3b4e5f7e8f1eb8d1aa7eb5e2b15a374cbf51cc5f6e6269e7f5e7d9daf8d2adfaed37d2e11f472fa WHIRLPOOL 5fa4e5ec354ec114929da41e73a3505b077fb6cf14111ec7d3ea87985a3b1fe67aef740f34f77d448ee4c751ee22ca37fb7f5a6c5fe297a1e37b531deb52f69b
+DIST cvm-0.82.tar.gz 93615 SHA256 5c209c2ac911ba5473b1ef1b78407afa6821eca26de476291a7362fee616d0fe SHA512 a9d94d993f91395a3a1c5dd16570ddf05d725b799754d4fd7d76959774fabc6f73356dbcd61a4ff28cca8551bd7d7c55249009da5d801a0d883e63aaf778c013 WHIRLPOOL bc7745db28aa078f429325675df743c76845a9566da9d953712c66d3ed3c659ab7034f398276ec968263c36c4e701e5d020444503c3d371663f13b92e92dea97
+DIST cvm-0.96.tar.gz 127999 SHA256 b85121b2f4b160b27c95705bd83a871675ed4b65b8bcb259a0877f37606224e9 SHA512 23adf39571bf414fa61084ac824a54b3cb37ef32a46c72ad50734743fb66bb923168eb866d72fba7f88397b37831e2ce7603c7d543996b28761ed1d5b053d73d WHIRLPOOL 9c8189438ec4d38ab180a14adfa760fef0d25fdc18a44dd98ee29b2c84c3b0d0dc1f175f37a33a1017d1370f944747ab3b6a4480a7a031f5f10b0c25f848619c
+EBUILD cvm-0.76.ebuild 1451 SHA256 048c7e8e469a6d0dd7fcddac647b0d6a477b3163963de8dea8f8a9d7a2f5b4f9 SHA512 e0cdea110fa6acff28b95bb9eede58dd63dc4dfd9c6c22aa9ae2c2ede0b8d926d5f4adf458be62054358aad5f9329ea9b64441ca0dada3b60d825ae4fd956eb2 WHIRLPOOL 5b1158c896e11661e030c46b7d1d79f00328df0930c18cd201c7177f515ee2b8f7ede56f5f12ab8ef5aeabbea3e71518d3223f1b9e100a1f4f5cf3b92f387767
+EBUILD cvm-0.82.ebuild 2950 SHA256 0f9e44b6472756c8598ec09592d1891c36c5e9145e2548e71561d7507986e470 SHA512 316e2bcf7c1ca1ec79e1b4cc0d7b2bcd6ebf58ff33dad936142d907f11922ab9872aae646b059c474cf287c85829bc1a045fcfe1f0a0f789c7d81beb912358be WHIRLPOOL c439f1a376cfc08ad231d1aa9b788a442c58720e6f01263ead19cfed080759f2c02f31120fb8bb7f6aade2efa4eb6d01807ec72b5dfc08578f9caea61a5ba344
+EBUILD cvm-0.96.ebuild 2986 SHA256 2a3556782d0cccd4b7fcc5ba5201217aa0ff87ab182f2b9fb8f0a961f2c9e566 SHA512 f01eb0a15617e1394c0f9de3094f9f625206a10c52d123116090252fa4ee2075147246c93e04455a784c9eb71147a0c8655eda4a5b784cc3bcd647dcfbeb496d WHIRLPOOL 6902ca5279b47e331e10df8862fcbf2a64f2dc0c3e38487549b7b716c468084c026da208f54000031ddae4465f1ff6806ecbcdb66c8f43a324956568b943a6b2
+MISC ChangeLog 2246 SHA256 6508d353690d691e851cbcbf5caf7ab5d98f2a02974c9c4dbed9b92e6a7538ac SHA512 a04a402422693b97f4488d81aca92dcdeb68ce2c56eea2679bf8eb5be27b4a707d11f3f32448912cca44e3e57ffbd20cb5e53eb154b518bacb320ec7fa85966d WHIRLPOOL 99b4828942394eae9c5f2d861ff8a1b70f0f4908de169721221d76c87e7ffadef579610a2ec395ac2b52e198da62bb4e8cffed5cf063a18b2e5cc656dc5f1f01
+MISC ChangeLog-2015 3646 SHA256 ed8046dc28f1f90afb7a811ce43d583d6c80023bd3f62d108942779a9d26cc14 SHA512 7207fd7142389f88f9501acde54e5c9cd74c2baaabcd5d940638affaf36a4492764a42bd5e0b52fa1860795e3852cb2873e8accbf4fe36e5bc5899421a7e85b9 WHIRLPOOL 8693c4608b6daddb3527fe3a4b90d6d7f97c6f5af37978d193f099528f6180dc8364545549b1d19eeec9daf39ee23128cc3c3ae18d8d4f2328eeb638cf7c9529
+MISC metadata.xml 296 SHA256 990fcf5d8d2e7d3b446c46d94a2b0504bc4f860651207e3c34c398af5be9e9e6 SHA512 75d265987a3c3e83685a00d760965bc8e4e796429017c05642de2fcda4e37891dd06386df57dfe2d0e2b294916316389a1d72dc09e9feebdf5db3abe2626e34b WHIRLPOOL bfba938dc8db30a20213984a72fb3e80d1776eeeec1c0bc1cf44329a66275aa6c0d0f2e9db99fbffebe7e3967f5c34366ba3b92d417f5265d03d604692e741fe
diff --git a/net-libs/cvm/cvm-0.76.ebuild b/net-libs/cvm/cvm-0.76.ebuild
new file mode 100644
index 000000000000..63d425f003e3
--- /dev/null
+++ b/net-libs/cvm/cvm-0.76.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Credential Validation Modules by Bruce Guenter"
+HOMEPAGE="http://untroubled.org/cvm/"
+SRC_URI="${HOMEPAGE}archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="ppc sparc x86"
+IUSE="mysql postgres test"
+
+RDEPEND="dev-db/cdb"
+DEPEND="${RDEPEND}
+ >=dev-libs/bglibs-1.041
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql[server] )
+ test? ( app-editors/vim )"
+# some of the testcases use ex/vi/xxd
+
+src_unpack() {
+ unpack ${A}
+ # 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' "${S}"/tests.sh || die "sed failed"
+}
+
+src_compile() {
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/lib/bglibs" > conf-bglibs
+ echo "${D}/usr/include" > conf-include
+ echo "${D}/usr/lib" > conf-lib
+ echo "${D}/usr/bin" > conf-bin
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld
+ emake || die
+
+ if use mysql; then
+ make mysql || die "making mysql support failed"
+ fi
+
+ if use postgres; then
+ make pgsql || die "making postgres support failed"
+ fi
+}
+
+src_install() {
+ einstall || die
+
+ dodoc ANNOUNCEMENT NEWS NEWS.sql NEWS.vmailmgr README README.vchkpw
+ dodoc README.vmailmgr TODO VERSION
+ dohtml *.html
+}
+
+src_test() {
+ sh tests.sh || die "Testing Failed"
+}
diff --git a/net-libs/cvm/cvm-0.82.ebuild b/net-libs/cvm/cvm-0.82.ebuild
new file mode 100644
index 000000000000..089b8e086f77
--- /dev/null
+++ b/net-libs/cvm/cvm-0.82.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Credential Validation Modules by Bruce Guenter"
+HOMEPAGE="http://untroubled.org/cvm/"
+SRC_URI="${HOMEPAGE}archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~sparc ~x86 ~amd64"
+IUSE="mysql postgres test vpopmail"
+
+RDEPEND="dev-db/cdb"
+DEPEND="${RDEPEND}
+ >=dev-libs/bglibs-1.041
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql[server] )
+ vpopmail? ( net-mail/vpopmail )
+ test? ( app-editors/vim )"
+# some of the testcases use ex/vi/xxd
+
+src_unpack() {
+ unpack ${A}
+ # 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' \
+ "${S}"/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' \
+ "${S}"/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' \
+ "${S}"/Makefile \
+ || die "Failed to fix vpopmail compiling parts of Makefile"
+}
+
+src_compile() {
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/lib/bglibs" > conf-bglibs
+ echo "/usr/include" > conf-include
+ echo "/usr/lib" > conf-lib
+ echo "/usr/bin" > conf-bin
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld
+ emake || die
+
+ if use mysql; then
+ einfo "Building MySQL support"
+ emake mysql || die "making mysql support failed"
+ fi
+
+ if use postgres; then
+ einfo "Building Postgresql support"
+ emake pgsql || die "making postgres support failed"
+ fi
+
+ if use vpopmail; then
+ einfo "Building vpopmail support"
+ emake cvm-vchkpw || die "making vpopmail support failed"
+ fi
+}
+
+src_install() {
+ # Upstreams installer is incredibly broken
+ dolib .libs/*.a .libs/*.so.*
+ 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*
+ dohtml *.html
+}
+
+src_test() {
+ sh tests.sh || die "Testing Failed"
+}
diff --git a/net-libs/cvm/cvm-0.96.ebuild b/net-libs/cvm/cvm-0.96.ebuild
new file mode 100644
index 000000000000..1317cf1ef901
--- /dev/null
+++ b/net-libs/cvm/cvm-0.96.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Credential Validation Modules by Bruce Guenter"
+HOMEPAGE="http://untroubled.org/cvm/"
+SRC_URI="${HOMEPAGE}archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="mysql postgres test vpopmail"
+
+RDEPEND="dev-db/cdb"
+DEPEND="${RDEPEND}
+ >=dev-libs/bglibs-1.041
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql[server] )
+ vpopmail? ( net-mail/vpopmail )
+ test? ( app-editors/vim )"
+# some of the testcases use ex/vi/xxd
+
+MAKEOPTS="${MAKEOPTS} -j1" #310843
+
+src_unpack() {
+ unpack ${A}
+ # 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' \
+ "${S}"/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' \
+ "${S}"/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' \
+ "${S}"/Makefile \
+ || die "Failed to fix vpopmail compiling parts of Makefile"
+}
+
+src_compile() {
+ echo "/usr/include/bglibs" > conf-bgincs
+ echo "/usr/lib/bglibs" > conf-bglibs
+ echo "/usr/include" > conf-include
+ echo "/usr/lib" > conf-lib
+ echo "/usr/bin" > conf-bin
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS} -lcrypt" > conf-ld
+ emake || die
+
+ if use mysql; then
+ einfo "Building MySQL support"
+ emake mysql || die "making mysql support failed"
+ fi
+
+ if use postgres; then
+ einfo "Building Postgresql support"
+ emake pgsql || die "making postgres support failed"
+ fi
+
+ if use vpopmail; then
+ einfo "Building vpopmail support"
+ emake cvm-vchkpw || die "making vpopmail support failed"
+ fi
+}
+
+src_install() {
+ # Upstreams installer is incredibly broken
+ dolib .libs/*.a .libs/*.so.*
+ 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*
+ dohtml *.html
+}
+
+src_test() {
+ sh tests.sh || die "Testing Failed"
+}
diff --git a/net-libs/cvm/metadata.xml b/net-libs/cvm/metadata.xml
new file mode 100644
index 000000000000..db5dda48e725
--- /dev/null
+++ b/net-libs/cvm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="vpopmail">Enable vpopmail support</flag>
+ </use>
+</pkgmetadata>