summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Doty <kingtaco@gentoo.org>2012-02-06 23:44:36 +0000
committerMike Doty <kingtaco@gentoo.org>2012-02-06 23:44:36 +0000
commitdab6bed15d5e5bc607ca11be2d98f0af99714990 (patch)
tree5bfec94b415c91252b50f48db5f408862e270737 /net-misc/sks
parentAdd new ebuild bin_replace_string-0.2, a program which helps do minor ugly th... (diff)
downloadhistorical-dab6bed15d5e5bc607ca11be2d98f0af99714990.tar.gz
historical-dab6bed15d5e5bc607ca11be2d98f0af99714990.tar.bz2
historical-dab6bed15d5e5bc607ca11be2d98f0af99714990.zip
Initial commit
Package-Manager: portage-2.1.10.44/cvs/Linux x86_64
Diffstat (limited to 'net-misc/sks')
-rw-r--r--net-misc/sks/ChangeLog10
-rw-r--r--net-misc/sks/Manifest5
-rw-r--r--net-misc/sks/files/bdb_stubs-gentoo.patch110
-rw-r--r--net-misc/sks/metadata.xml10
-rw-r--r--net-misc/sks/sks-1.1.2.ebuild53
5 files changed, 188 insertions, 0 deletions
diff --git a/net-misc/sks/ChangeLog b/net-misc/sks/ChangeLog
new file mode 100644
index 000000000000..aeb4da464034
--- /dev/null
+++ b/net-misc/sks/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/sks
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/sks/ChangeLog,v 1.1 2012/02/06 23:44:36 kingtaco Exp $
+
+*sks-1.1.2 (06 Feb 2012)
+
+ 06 Feb 2012; Mike Doty <kingtaco@gentoo.org> +sks-1.1.2.ebuild,
+ +files/bdb_stubs-gentoo.patch, +metadata.xml:
+ Initial commit
+
diff --git a/net-misc/sks/Manifest b/net-misc/sks/Manifest
new file mode 100644
index 000000000000..0b50208ed457
--- /dev/null
+++ b/net-misc/sks/Manifest
@@ -0,0 +1,5 @@
+AUX bdb_stubs-gentoo.patch 2999 RMD160 c2fe53233e74d365ebbbb0314c22115df8c35aae SHA1 b958fa577b6ed0f24e9706801adc37b1f442aaf2 SHA256 a5a7449c272daa1d95adaa388b1d27d8bce11d3c2a47a5661cec0cf486021752
+DIST sks-1.1.2.tgz 275724 RMD160 fa51a12ad258623df526648c66e4639aebecc5f4 SHA1 52db59822969a6b2d729dbe57c65e9e67b52c9e5 SHA256 3700d9f91bf2b55d39dea269c22ba2585c70d141dbf9cc386730fd8a3d541396
+EBUILD sks-1.1.2.ebuild 1307 RMD160 ad3f5d2b0c72c4426d5500d99b04893f00b9cd9c SHA1 389a440ace357553aa27c13e13a91de93149df1d SHA256 520c67e510188461f0424c0f493a28f32d3847e93c93c6f1821cf743a2c7f43c
+MISC ChangeLog 357 RMD160 3817f8792ab3059c047618621ae2f19534b3cfc9 SHA1 1a199f1823376a485d3338741f82ee04f2ed8561 SHA256 6b48d8b4f51e2777737cffffb155b69019ef5f58c0cbc4f0b1fb544c54f50166
+MISC metadata.xml 277 RMD160 ad5f9f5b301bbbbf6f6f78c4e7e13fa722d3e5dc SHA1 085372e241e8e7b4672bf486f3d59ff969f76be5 SHA256 a8d1d1b4899585aee7d932206d416d0ef8b749b958340282157cdfcc97fcddcd
diff --git a/net-misc/sks/files/bdb_stubs-gentoo.patch b/net-misc/sks/files/bdb_stubs-gentoo.patch
new file mode 100644
index 000000000000..c28db93853b1
--- /dev/null
+++ b/net-misc/sks/files/bdb_stubs-gentoo.patch
@@ -0,0 +1,110 @@
+--- bdb/bdb_stubs.c.orig 2012-02-06 14:41:54.294290158 -0800
++++ bdb/bdb_stubs.c 2012-02-06 14:36:10.853355551 -0800
+@@ -27,7 +27,7 @@
+ #define False 0
+
+
+-void bzero(void* addr,size_t n) {
++void zerob(void* addr,size_t n) {
+ memset(addr,0,n);
+ }
+
+@@ -210,7 +210,7 @@
+ // calls to DB->err and DBENV->err lead to exceptions.
+
+ // FIX: currently, prefix is ignored. Should be concatenated.
+-void raise_db_cb(const DB_ENV *dbenv, const char *prefix, char *msg) {
++void raise_db_cb(const DB_ENV *dbenv, const char *prefix, const char *msg) {
+ raise_db(msg);
+ }
+
+@@ -512,7 +512,7 @@
+
+ test_db_closed(db);
+
+- bzero(&dbt,sizeof(DBT));
++ zerob(&dbt,sizeof(DBT));
+
+ dbt.data = String_val(key);
+ dbt.size = string_length(key);
+@@ -542,7 +542,7 @@
+
+ test_db_closed(db);
+
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ key.data = String_val(vkey);
+ key.size = string_length(vkey);
+@@ -577,7 +577,7 @@
+
+ test_db_closed(db);
+
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ key.data = String_val(vkey);
+ key.size = string_length(vkey);
+@@ -827,7 +827,7 @@
+
+ test_cursor_closed(cursor);
+
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ data.data = String_val(vdata);
+ data.size = string_length(vdata);
+@@ -851,7 +851,7 @@
+
+ test_cursor_closed(cursor);
+
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ key.data = String_val(vkey);
+ key.size = string_length(vkey);
+@@ -880,7 +880,7 @@
+
+ test_cursor_closed(cursor);
+
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ key.data = String_val(vkey);
+ key.size = string_length(vkey);
+@@ -906,7 +906,7 @@
+ int flags = convert_flag_list(vflags,cursor_get_flags) | DB_SET_RANGE;
+ int err;
+
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ test_cursor_closed(cursor);
+
+@@ -948,7 +948,7 @@
+ flags = convert_flag_list(vflags,cursor_get_flags) | DB_GET_BOTH;
+ test_cursor_closed(cursor);
+
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ key.data = String_val(vkey);
+ key.size = string_length(vkey);
+@@ -975,7 +975,7 @@
+ int flags = Flag_val(vtype,cursor_get_type) |
+ convert_flag_list(vflags,cursor_get_flags);
+ int err;
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ test_cursor_closed(cursor);
+
+@@ -1005,7 +1005,7 @@
+ int flags = Flag_val(vtype,cursor_get_type) |
+ convert_flag_list(vflags,cursor_get_flags);
+ int err;
+- bzero(&key,sizeof(DBT)); bzero(&data,sizeof(DBT));
++ zerob(&key,sizeof(DBT)); zerob(&data,sizeof(DBT));
+
+ test_cursor_closed(cursor);
+
diff --git a/net-misc/sks/metadata.xml b/net-misc/sks/metadata.xml
new file mode 100644
index 000000000000..fcd241ed15d8
--- /dev/null
+++ b/net-misc/sks/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>
+ <email>kingtaco@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='optimize'>Enables bytecode optimization</flag>
+</use>
+</pkgmetadata>
diff --git a/net-misc/sks/sks-1.1.2.ebuild b/net-misc/sks/sks-1.1.2.ebuild
new file mode 100644
index 000000000000..d7f719900534
--- /dev/null
+++ b/net-misc/sks/sks-1.1.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/sks/sks-1.1.2.ebuild,v 1.1 2012/02/06 23:44:36 kingtaco Exp $
+
+EAPI=4
+
+inherit eutils multilib
+
+DESCRIPTION="SKS Keyserver"
+HOMEPAGE="http://code.google.com/p/sks-keyserver/"
+SRC_URI="http://sks-keyserver.googlecode.com/files/${PF}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="optimize"
+
+DEPEND="dev-lang/ocaml
+ dev-ml/cryptokit
+ sys-libs/db:4.6"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ cp Makefile.local.unused Makefile.local || die
+ sed -i \
+ -e "s:^BDBLIB=.*$:BDBLIB=-L/usr/$(get_libdir):g" \
+ -e "s:^BDBINCLUDE=.*$:BDBINCLUDE=-I/usr/include/db4.6/:g" \
+ -e "s:^PREFIX=.*$:PREFIX=${D}/usr:g" \
+ -e "s:^MANDIR=.*$:MANDIR=${D}/usr/share/man:g" \
+ Makefile.local || die
+ sed -i \
+ -e 's:^CAMLINCLUDE= -I lib -I bdb$:CAMLINCLUDE= -I lib -I bdb -I +cryptokit:g' \
+ -e 's:-Werror-implicit-function-declaration::g' \
+ -e 's:LIBS.bc= lib/cryptokit.cma bdb/bdb.cma:LIBS.bc= bdb/bdb.cma:g' \
+ Makefile bdb/Makefile || die
+ epatch "${FILESDIR}/bdb_stubs-gentoo.patch"
+}
+
+src_compile() {
+ emake dep
+ emake all
+ if use optimize; then
+ emake all.bc
+ fi
+}
+
+src_install() {
+ if use optimize; then
+ emake install.bc
+ else
+ emake install
+ fi
+}