1be432c2774a73b8a22ac8b70ec078b0697239bf
Bernd Wurst new ebuild for sks keyserver

Bernd Wurst authored 14 years ago

1) # Copyright 1999-2010 Gentoo Foundation
2) # Distributed under the terms of the GNU General Public License v2
3) # $Header: $
4) 
5) EAPI="2"
6) 
7) DESCRIPTION="Synchronizing Key Server, a PGP keyserver written in OCAML"
8) HOMEPAGE="http://www.nongnu.org/sks/"
9) SRC_URI="http://sks-keyserver.googlecode.com/files/${P}.tgz"
10) 
11) LICENSE="GPL-2"
12) SLOT="0"
13) KEYWORDS="~amd64 ~x86"
14) IUSE=""
15) 
16) DEPEND="=dev-lang/ocaml-3.10.2 \
Bernd Wurst a few improvements

Bernd Wurst authored 14 years ago

17) 	sys-libs/db"
Bernd Wurst new ebuild for sks keyserver

Bernd Wurst authored 14 years ago

18) RDEPEND="${DEPEND}"
19) 
20) 
21) src_compile() {
Bernd Wurst a few improvements

Bernd Wurst authored 14 years ago

22) 	# compilation breaks with parallel making
Bernd Wurst new ebuild for sks keyserver

Bernd Wurst authored 14 years ago

23) 	MAKEOPTS="${MAKEOPTS} -j1"
Bernd Wurst a few improvements

Bernd Wurst authored 14 years ago

24) 
25) 	# find out DB-major-version and configure Makefile.local to use it
26) 	BDBVER="$(best_version sys-libs/db|sed -e 's_^sys-libs/db-\(.\..\).*$_\1_')"
27) 	einfo "using sys-libs/db-${BDBVER}"
28) 	echo -e "LIBDB=-ldb-${BDBVER}\nexport LIBDB" > "${WORKDIR}/${P}/Makefile.local"
29) 
Bernd Wurst new ebuild for sks keyserver

Bernd Wurst authored 14 years ago

30) 	emake dep || die "make dep failed"
31) 	emake all || die "make all failed"
32) }
33) 
34) src_install() {
Bernd Wurst a few improvements

Bernd Wurst authored 14 years ago

35) 	# Makefile does not respect DESTDIR, so we must set up the needed variables
Bernd Wurst new ebuild for sks keyserver

Bernd Wurst authored 14 years ago

36) 	emake "PREFIX=${D}/usr" "MANDIR=${D}/usr/share/man" install || die
Bernd Wurst a few improvements

Bernd Wurst authored 14 years ago

37) 
38) 	newinitd "${FILESDIR}"/sks.initd sks
39) 	newconfd "${FILESDIR}"/sks.confd sks