diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-10-23 17:19:32 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-10-23 17:19:32 +0000 |
commit | f33c7a28e96b9d9c7808cdc108ba5601f762d29d (patch) | |
tree | bf4fecff30512dfa620afedb4caa41a173d8170d /app-crypt/ekey-egd-linux | |
parent | ia64/sparc stable wrt #315775 (diff) | |
download | historical-f33c7a28e96b9d9c7808cdc108ba5601f762d29d.tar.gz historical-f33c7a28e96b9d9c7808cdc108ba5601f762d29d.tar.bz2 historical-f33c7a28e96b9d9c7808cdc108ba5601f762d29d.zip |
Add ekey-egd-linux client ebuild, proxy maintained by Jaervosz from bug #342079 (with a bit of polishing).
Package-Manager: portage-2.2.0_alpha1/cvs/Linux x86_64
Diffstat (limited to 'app-crypt/ekey-egd-linux')
-rw-r--r-- | app-crypt/ekey-egd-linux/ChangeLog | 12 | ||||
-rw-r--r-- | app-crypt/ekey-egd-linux/Manifest | 17 | ||||
-rw-r--r-- | app-crypt/ekey-egd-linux/ekey-egd-linux-1.1.3.ebuild | 73 | ||||
-rw-r--r-- | app-crypt/ekey-egd-linux/files/ekey-egd-linux-1.1.3-ldflags.patch | 13 | ||||
-rw-r--r-- | app-crypt/ekey-egd-linux/files/ekey-egd-linux.conf | 10 | ||||
-rw-r--r-- | app-crypt/ekey-egd-linux/files/ekey-egd-linux.init | 30 | ||||
-rw-r--r-- | app-crypt/ekey-egd-linux/metadata.xml | 16 |
7 files changed, 171 insertions, 0 deletions
diff --git a/app-crypt/ekey-egd-linux/ChangeLog b/app-crypt/ekey-egd-linux/ChangeLog new file mode 100644 index 000000000000..674d40d9dea2 --- /dev/null +++ b/app-crypt/ekey-egd-linux/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-crypt/ekey-egd-linux +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekey-egd-linux/ChangeLog,v 1.1 2010/10/23 17:19:32 flameeyes Exp $ + +*ekey-egd-linux-1.1.3 (23 Oct 2010) + + 23 Oct 2010; Diego E. Pettenò <flameeyes@gentoo.org> + +ekey-egd-linux-1.1.3.ebuild, +files/ekey-egd-linux-1.1.3-ldflags.patch, + +files/ekey-egd-linux.conf, +files/ekey-egd-linux.init, +metadata.xml: + Add ekey-egd-linux client ebuild, proxy maintained by Jaervosz from bug + #342079 (with a bit of polishing). + diff --git a/app-crypt/ekey-egd-linux/Manifest b/app-crypt/ekey-egd-linux/Manifest new file mode 100644 index 000000000000..6bca8199b032 --- /dev/null +++ b/app-crypt/ekey-egd-linux/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX ekey-egd-linux-1.1.3-ldflags.patch 654 RMD160 287ab1ae976a3309916fa6170c5f5d97f844fe89 SHA1 b9d1db6e587b3d1ebf3b18daaa4b43142347c845 SHA256 2552e54ac33748031523073f8bfcde6c8a0f077b48e7fa944ac211aafb371632 +AUX ekey-egd-linux.conf 283 RMD160 d65f71d3cfe6b7a7efbfb05988e4641f8fd6b9f2 SHA1 de0a168996b27a77eec52ef038b942c8e160765b SHA256 793100649653c15d19acfed48d5ada542bca385f17e66e4281f05cca5d684d73 +AUX ekey-egd-linux.init 793 RMD160 07deac56b9d4b66484fbee48275aeb8709a50dda SHA1 92d52b010611116f431a5df81f68ed1bb7cbd2ca SHA256 aaf9b2ebeb4777bf6f2ee6667c201ae9d23383c382a5cbd08c61a855b0c22637 +DIST ekeyd-1.1.3.tar.gz 95173 RMD160 0af970891d8da67b5b0737fbac9d626a38ccb41a SHA1 a0119105d3804b76df0dd6a5e18e80db3193ece8 SHA256 07c20450e7ab139b723945e3aa0748f55209c0da097253b25074149c847044e4 +EBUILD ekey-egd-linux-1.1.3.ebuild 1557 RMD160 f18e8c2eb380005f2a53a5d9c7a8a4afbb0dc066 SHA1 ede60a597067042fac7bd9f71e61c03436f5d675 SHA256 ee95711b7757ed6b9f15b3b48d32e585cc37370010f8f405e0674d4a90d2e6ee +MISC ChangeLog 577 RMD160 e0cc5a28236eca71dbd92949af75a6b72932b06f SHA1 2e263a17be429836229aa3e553e01a945842a7f4 SHA256 70d525d9c540af6b949b26ffa4c22e20f893b4eac9aa00f2e79e07675fa8c601 +MISC metadata.xml 521 RMD160 1134a1997f3bca6dafc3f23749672a4b09bb9dde SHA1 5fdc861090db74bc22394cc49fa8358529274422 SHA256 37a56495ab8dd05911baef290d1c51c72425c4eda334b42cc6f619a955059cbb +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAkzDGTUACgkQAiZjviIA2XgLxACeLY9bQWSB4btL850R5ePuYxh9 +iSwAn3GW+mFstFMUraeYUWz8i/4OfRoE +=H6Jd +-----END PGP SIGNATURE----- diff --git a/app-crypt/ekey-egd-linux/ekey-egd-linux-1.1.3.ebuild b/app-crypt/ekey-egd-linux/ekey-egd-linux-1.1.3.ebuild new file mode 100644 index 000000000000..62bfe099f967 --- /dev/null +++ b/app-crypt/ekey-egd-linux/ekey-egd-linux-1.1.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekey-egd-linux/ekey-egd-linux-1.1.3.ebuild,v 1.1 2010/10/23 17:19:32 flameeyes Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +MY_P="ekeyd-${PV}" +DESCRIPTION="EGD client from Entropy Key" +HOMEPAGE="http://www.entropykey.co.uk/" +SRC_URI="http://www.entropykey.co.uk/res/download/${MY_P}.tar.gz" + +LICENSE="as-is" # yes, truly + +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND="" +DEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # avoid using -Werror + sed -i -e 's:-Werror::' daemon/Makefile || die + + epatch "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + local osname + + # Override automatic detection: upstream provides this with uname, + # we don't like using uname. + case ${CHOST} in + *-linux-*) + osname=linux;; + *-freebsd*) + osname=freebsd;; + *-kfrebsd-gnu) + osname=gnukfreebsd;; + *-openbsd*) + osname=openbsd;; + *) + die "Unsupported operating system!" + ;; + esac + + emake -C daemon \ + CC="$(tc-getCC)" \ + LUA_V= LUA_INC= \ + OSNAME=${osname} \ + OPT="${CFLAGS}" \ + egd-linux || die "emake failed" +} + +src_install() { + exeinto /usr/libexec + newexe "${S}"/daemon/egd-linux ${PN} || die + doman daemon/${PN}.8 || die + + newconfd "${FILESDIR}"/${PN}.conf ${PN} || die + newinitd "${FILESDIR}"/${PN}.init ${PN} || die +} + +pkg_postinst() { + elog "Sysctl write support have to be enabled in order for the init script" + elog "modify the kernel.random.write_wakeup_threshold sysctl entry." +} diff --git a/app-crypt/ekey-egd-linux/files/ekey-egd-linux-1.1.3-ldflags.patch b/app-crypt/ekey-egd-linux/files/ekey-egd-linux-1.1.3-ldflags.patch new file mode 100644 index 000000000000..7d939d239c09 --- /dev/null +++ b/app-crypt/ekey-egd-linux/files/ekey-egd-linux-1.1.3-ldflags.patch @@ -0,0 +1,13 @@ +Index: ekeyd-1.1.3/daemon/Makefile +=================================================================== +--- ekeyd-1.1.3.orig/daemon/Makefile ++++ ekeyd-1.1.3/daemon/Makefile +@@ -118,7 +118,7 @@ daemonise_ulusbd.o: daemonise.c + $(COMPILE.c) $(OUTPUT_OPTION) $(PTHFLAGS) $^ + + egd-linux: egd-linux.o daemonise.o +- $(CC) $(CFLAGS) -o $@ $^ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + + ekeyd: ekeyd.o daemonise.o lstate.o connection.o stream.o frame.o packet.o keydb.o util.o fds.o krnlop.o foldback.o stats.o nonce.o ../device/frames/pem.o ../device/skeinwrap.o ../device/skein/skein.o ../device/skein/skein_block.o + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) diff --git a/app-crypt/ekey-egd-linux/files/ekey-egd-linux.conf b/app-crypt/ekey-egd-linux/files/ekey-egd-linux.conf new file mode 100644 index 000000000000..c72da63e1c78 --- /dev/null +++ b/app-crypt/ekey-egd-linux/files/ekey-egd-linux.conf @@ -0,0 +1,10 @@ +# Host IP address to connect to. +HOST="localhost" +# Port number to connect to. +PORT="1234" +# Time between reconnect attempts. +RECONNECTINTERVAL=10 +# Set the number of 1024 bit blocks to request each time +BLOCKS=2 +# Low level entropy to trigger egd-linux entropy read +WATERMARK=1024 diff --git a/app-crypt/ekey-egd-linux/files/ekey-egd-linux.init b/app-crypt/ekey-egd-linux/files/ekey-egd-linux.init new file mode 100644 index 000000000000..ad9476e780c2 --- /dev/null +++ b/app-crypt/ekey-egd-linux/files/ekey-egd-linux.init @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 2009-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekey-egd-linux/files/ekey-egd-linux.init,v 1.1 2010/10/23 17:19:32 flameeyes Exp $ + +depend() { + use net +} + +start() { + ebegin "Starting EntropyKey EGD client" + start-stop-daemon \ + --start --pidfile "/var/run/${SVCNAME}.pid" \ + --exec /usr/libexec/ekey-egd-linux -- \ + -H ${HOST} -p ${PORT} \ + -r ${RECONNECTINTERVAL} \ + -b ${BLOCKS} \ + -D "/var/run/${SVCNAME}.pid" + sysctl kernel.random.write_wakeup_threshold=$WATERMARK >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping EntropyKey EGD client" + start-stop-daemon \ + --stop --pidfile "/var/run/${SVCNAME}.pid" \ + --exec /usr/libexec/ekey-egd-linux + eend $? +} + diff --git a/app-crypt/ekey-egd-linux/metadata.xml b/app-crypt/ekey-egd-linux/metadata.xml new file mode 100644 index 000000000000..07e3fd691b09 --- /dev/null +++ b/app-crypt/ekey-egd-linux/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>jaervosz@gentoo.org</email> + <name>Sune Kloppenborg Jeppesen</name> + <description>Proxied co-maintainer, assign bugs to him</description> + </maintainer> + + <maintainer> + <email>flameeyes@gentoo.org</email> + <name>Diego Elio Pettenò</name> + <description>Proxy maintainer, CC him on bugs</description> + </maintainer> +</pkgmetadata> |