From 38fe534e54323e0bb5feb988ca22e06510225733 Mon Sep 17 00:00:00 2001 From: pettai Date: Sat, 16 Jun 2012 18:55:30 +0000 Subject: SKS is a new OpenPGP keyserver whose goal is to provide easy to deploy, decentralized, and highly reliable synchronization. That means that a key submitted to one SKS server will quickly be distributed to all key servers, and even wildly out-of-date servers, or servers that experience spotty connectivity, can fully synchronize with rest of the system. --- security/sks/DESCR | 5 +++++ security/sks/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ security/sks/PLIST | 5 +++++ security/sks/distinfo | 9 +++++++++ security/sks/patches/patch-aa | 22 ++++++++++++++++++++++ security/sks/patches/patch-ab | 13 +++++++++++++ security/sks/patches/patch-ac | 28 ++++++++++++++++++++++++++++ security/sks/patches/patch-ad | 9 +++++++++ 8 files changed, 133 insertions(+) create mode 100644 security/sks/DESCR create mode 100644 security/sks/Makefile create mode 100644 security/sks/PLIST create mode 100644 security/sks/distinfo create mode 100644 security/sks/patches/patch-aa create mode 100644 security/sks/patches/patch-ab create mode 100644 security/sks/patches/patch-ac create mode 100644 security/sks/patches/patch-ad (limited to 'security') diff --git a/security/sks/DESCR b/security/sks/DESCR new file mode 100644 index 00000000000..7a39682bf4d --- /dev/null +++ b/security/sks/DESCR @@ -0,0 +1,5 @@ +SKS is a new OpenPGP keyserver whose goal is to provide easy to deploy, +decentralized, and highly reliable synchronization. That means that a key +submitted to one SKS server will quickly be distributed to all key servers, +and even wildly out-of-date servers, or servers that experience spotty +connectivity, can fully synchronize with rest of the system. diff --git a/security/sks/Makefile b/security/sks/Makefile new file mode 100644 index 00000000000..3787f0527ac --- /dev/null +++ b/security/sks/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ +# + +DISTNAME= sks-1.1.2 +CATEGORIES= security +MASTER_SITES= http://sks-keyserver.googlecode.com/files/ +EXTRACT_SUFX= .tgz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://minskyprimus.net/sks/ +COMMENT= Self Replicating PGP Key Server +LICENSE= gnu-gpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir + +BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.10.2 +BUILDLINK_API_DEPENDS.db4+= db4>=4.6.0 + +REPLACE_SH= sks_build.sh + +USE_TOOLS+= gmake perl:run tar +BDB_ACCEPTED= db4 + +MAKE_ENV+= LIBDB=-ldb46 \ + BDBINCLUDE=-I${BUILDLINK_DIR}/include \ + BDBLIB=-L${BUILDLINK_DIR}/lib \ + PREFIX=${PREFIX:Q} \ + MANDIR=${PREFIX:Q}/man + +INSTALLATION_DIRS= ${PKGMANDIR}/man8 bin + +.include "../../lang/ocaml/buildlink3.mk" +.include "../../databases/db46/buildlink3.mk" + +post-install: + cd ${WRKSRC} && ${MAKE_PROGRAM} sks.8 + ${INSTALL_PROGRAM} ${WRKSRC}/sks ${DESTDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/sks_add_mail ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/sks_build.sh ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/sks.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 + +.include "../../mk/bsd.pkg.mk" diff --git a/security/sks/PLIST b/security/sks/PLIST new file mode 100644 index 00000000000..d2731bf5d05 --- /dev/null +++ b/security/sks/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ +bin/sks +bin/sks_add_mail +bin/sks_build.sh +man/man8/sks.8 diff --git a/security/sks/distinfo b/security/sks/distinfo new file mode 100644 index 00000000000..009a16ea79d --- /dev/null +++ b/security/sks/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ + +SHA1 (sks-1.1.2.tgz) = 52db59822969a6b2d729dbe57c65e9e67b52c9e5 +RMD160 (sks-1.1.2.tgz) = fa51a12ad258623df526648c66e4639aebecc5f4 +Size (sks-1.1.2.tgz) = 275724 bytes +SHA1 (patch-aa) = bd9106e971e4a49eaa1b9fb11ba7021f2e737164 +SHA1 (patch-ab) = a2e4be2adfdb9ccbfabfd0683e10a068b63cef20 +SHA1 (patch-ac) = 16bd6fbb9bcdbced63e56d2683bf93ff9a152366 +SHA1 (patch-ad) = 4f5f538a6ebed923dd394cea544b516333c34c1d diff --git a/security/sks/patches/patch-aa b/security/sks/patches/patch-aa new file mode 100644 index 00000000000..8180c8d716f --- /dev/null +++ b/security/sks/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ + +--- bdb/bdb_stubs.c.orig 2009-03-26 01:18:03.000000000 +0000 ++++ bdb/bdb_stubs.c +@@ -12,7 +12,7 @@ + #include + #include + #include +-#include ++#include + /* O_CREAT and others are not defined in db.h */ + #include + +@@ -1198,7 +1198,7 @@ value caml_txn_begin(value dbenv, value + + err = UW_dbenv(dbenv)->txn_begin(UW_dbenv(dbenv), parent, &newtxn, flags); + if (err != 0) { +- if (err == ENOMEM) { ++ if (err == DB_BUFFER_SMALL) { + failwith("Maximum # of concurrent transactions reached"); + } else { + UW_dbenv(dbenv)->err(UW_dbenv(dbenv), err,"caml_txn_begin"); diff --git a/security/sks/patches/patch-ab b/security/sks/patches/patch-ab new file mode 100644 index 00000000000..43b4153de2c --- /dev/null +++ b/security/sks/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ + +--- bdb/dbstubs.c.orig 2002-10-01 02:10:14.000000000 +0200 ++++ bdb/dbstubs.c +@@ -22,7 +22,7 @@ + + #include + #include +-#include ++#include + /* O_CREAT and others are not defined in db.h */ + #include + diff --git a/security/sks/patches/patch-ac b/security/sks/patches/patch-ac new file mode 100644 index 00000000000..9a4ad255b5b --- /dev/null +++ b/security/sks/patches/patch-ac @@ -0,0 +1,28 @@ +$NetBSD: patch-ac,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ + +--- Makefile.orig 2009-08-13 01:51:24.000000000 +0000 ++++ Makefile +@@ -14,7 +14,7 @@ + # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + # USA + # +-CINCLUDES=-I`ocamlc -where` ++CINCLUDES=-I${PREFIX}/lib/ocaml + CC=gcc + CXX=g++ + CFLAGS=-O3 -Werror-implicit-function-declaration $(CINCLUDES) -I . +@@ -125,10 +125,10 @@ keyMerge.cmx: keyMerge.ml + # Special targets + + install: +- mkdir -p $(PREFIX)/bin +- install sks_build.sh sks sks_add_mail $(PREFIX)/bin +- mkdir -p $(MANDIR)/man8 +- install sks.8.gz $(MANDIR)/man8 ++# mkdir -p $(PREFIX)/bin ++# install sks_build.sh sks sks_add_mail $(PREFIX)/bin ++# mkdir -p $(MANDIR)/man8 ++# install sks.8.gz $(MANDIR)/man8 + + install.bc: + mkdir -p $(PREFIX)/bin diff --git a/security/sks/patches/patch-ad b/security/sks/patches/patch-ad new file mode 100644 index 00000000000..8266a24a49c --- /dev/null +++ b/security/sks/patches/patch-ad @@ -0,0 +1,9 @@ +$NetBSD: patch-ad,v 1.1.1.1 2012/06/16 18:55:30 pettai Exp $ + +--- bdb/Makefile.orig 2011-02-18 10:14:32.000000000 +0000 ++++ bdb/Makefile +@@ -15,3 +15,3 @@ + +-CINCLUDES=-I`ocamlc -where` $(BDBINCLUDE) ++CINCLUDES=-I${PREFIX}/lib/ocaml $(BDBINCLUDE) + CC=gcc -- cgit v1.2.3