new ebuild for sks keyserver
Bernd Wurst

Bernd Wurst commited on 2010-04-01 10:06:41
Zeige 3 geänderte Dateien mit 60 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,3 @@
1
+AUX sks.init 334 RMD160 dbd4b530002fa08af9476ca792a4a1b7dfc9d2c6 SHA1 edfaa81cf89e7ea1ace517600b4a422a5d95e883 SHA256 fa6165990286b0fc521b17c16f5fa7b8d16f69bbbc6ccc36c78acc43533ae1f6
2
+DIST sks-1.1.1.tgz 273833 RMD160 93926ba70366cdd88e07d21091e1c516a4dda701 SHA1 692d731eccf127fbb5c131d41edba29c5d1422cb SHA256 3cad29126e2d0cd904e9c92b0393ee4756f40916af33346bc5075b836fea8362
3
+EBUILD sks-1.1.1.ebuild 848 RMD160 2b037b3c3187467bea54d51c811db5f660c2339a SHA1 533cea1a5458644a15e60538b1205dc900bc1b89 SHA256 b3d317e0d7262d44c32db99846a3086070d812af69289888c21cf9d6a081a536
... ...
@@ -0,0 +1,21 @@
1
+#!/sbin/runscript
2
+
3
+opts="start stop"
4
+
5
+depend() {
6
+  use dns net
7
+  provide keyserver
8
+}
9
+ 
10
+start() {
11
+  ebegin "Starting sks keyserver"
12
+  start-stop-daemon --start --quiet --exec /usr/sbin/sks -- -p 
13
+  eend $?
14
+}
15
+ 
16
+stop() {
17
+  ebegin "Shutting down sks keyserver"
18
+  start-stop-daemon --quiet --stop --pidfile /var/run/sks.pid
19
+  eend $?
20
+}  
21
+
... ...
@@ -0,0 +1,36 @@
1
+# Copyright 1999-2010 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+inherit eutils
6
+
7
+EAPI="2"
8
+
9
+DESCRIPTION="Synchronizing Key Server, a PGP keyserver written in OCAML"
10
+HOMEPAGE="http://www.nongnu.org/sks/"
11
+SRC_URI="http://sks-keyserver.googlecode.com/files/${P}.tgz"
12
+
13
+LICENSE="GPL-2"
14
+SLOT="0"
15
+KEYWORDS="~amd64 ~x86"
16
+IUSE=""
17
+
18
+DEPEND="=dev-lang/ocaml-3.10.2 \
19
+	sys-libs/db:4.6"
20
+RDEPEND="${DEPEND}"
21
+
22
+
23
+src_compile() {
24
+	MAKEOPTS="${MAKEOPTS} -j1"
25
+	echo -e 'LIBDB=-ldb-4.7\nexport LIBDB' > "${WORKDIR}/${P}/Makefile.local"
26
+	#sed -i -e 's/LIBDB=-ldb-4\.6/LIBDB=-ldb-4.7/' "${WORKDIR}/${P}/bdb/Makefile"
27
+	emake dep || die "make dep failed"
28
+	emake all || die "make all failed"
29
+}
30
+
31
+src_install() {
32
+	emake "PREFIX=${D}/usr" "MANDIR=${D}/usr/share/man" install || die
33
+	newinitd "${FILESDIR}"/sks.init sks
34
+}
35
+
36
+
0 37