summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-01 12:34:42 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-01 12:34:42 +0000
commitc8711215772578b25b026de3fa535ff3a133fcc8 (patch)
tree86169c9fa7012b658cd183afa4df3f967a7ccc80 /app-crypt/ekeyd
parentapp-admin/tripwire: New proxy-maintainer and proxy added to metadata. Ebuild ... (diff)
downloadhistorical-c8711215772578b25b026de3fa535ff3a133fcc8.tar.gz
historical-c8711215772578b25b026de3fa535ff3a133fcc8.tar.bz2
historical-c8711215772578b25b026de3fa535ff3a133fcc8.zip
Add a munin USE flag to install the munin plugin to graph the ekeyd statistical data.
Package-Manager: portage-2.2.0_alpha29/cvs/Linux x86_64
Diffstat (limited to 'app-crypt/ekeyd')
-rw-r--r--app-crypt/ekeyd/ChangeLog9
-rw-r--r--app-crypt/ekeyd/Manifest11
-rw-r--r--app-crypt/ekeyd/ekeyd-1.1.3-r3.ebuild177
-rw-r--r--app-crypt/ekeyd/metadata.xml5
4 files changed, 196 insertions, 6 deletions
diff --git a/app-crypt/ekeyd/ChangeLog b/app-crypt/ekeyd/ChangeLog
index c41199c05cef..ca56bf790c5f 100644
--- a/app-crypt/ekeyd/ChangeLog
+++ b/app-crypt/ekeyd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-crypt/ekeyd
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.20 2011/03/27 22:13:47 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.21 2011/04/01 12:34:42 flameeyes Exp $
+
+*ekeyd-1.1.3-r3 (01 Apr 2011)
+
+ 01 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org> +ekeyd-1.1.3-r3.ebuild,
+ metadata.xml:
+ Add a munin USE flag to install the munin plugin to graph the ekeyd
+ statistical data.
27 Mar 2011; Diego E. Pettenò <flameeyes@gentoo.org> ekeyd-1.1.3-r2.ebuild:
Fix think in log output.
diff --git a/app-crypt/ekeyd/Manifest b/app-crypt/ekeyd/Manifest
index a70d70bb029b..c5b44511fd56 100644
--- a/app-crypt/ekeyd/Manifest
+++ b/app-crypt/ekeyd/Manifest
@@ -9,12 +9,13 @@ AUX ekeyd-1.1.3-slashes.patch 1820 RMD160 4ed9ac60240fae3d9cd1c5f06f372fa7808a70
AUX ekeyd.init 781 RMD160 9f7f426544b116224cbb523d27bee17d378acf2d SHA1 9017e3ddfa29b2b4319a61245f1cf8400f0f06c4 SHA256 441af4b871a17184196a5dbf5263b40291185646ed199c2495662f4da2ea9f86
DIST ekeyd-1.1.3.tar.gz 95173 RMD160 0af970891d8da67b5b0737fbac9d626a38ccb41a SHA1 a0119105d3804b76df0dd6a5e18e80db3193ece8 SHA256 07c20450e7ab139b723945e3aa0748f55209c0da097253b25074149c847044e4
EBUILD ekeyd-1.1.3-r2.ebuild 4766 RMD160 27a843052e6df732b98646535892c36e2a58cd55 SHA1 94fab5d4b06077b48a430e1373e88cbbf9a049ac SHA256 881ccc08d7989dc0eace75a0342e65954c9b1bfde5061a3b152d5ca68303f100
-MISC ChangeLog 5038 RMD160 9caa1c0df0cd1dffc5f08c2bd95a5f91e98e0084 SHA1 19921105eaa9a0fb6bcc834eb1290eb1e60cfcc2 SHA256 8234a2e270fdbf62d32f93a425fb2a31314d78e370f082dcf19d140e92866f95
-MISC metadata.xml 619 RMD160 a2b1c4bc5ba935096e78992db51ee7d129e21b30 SHA1 2d82a2c0c31be9a52b57ce055de3fb3bbde28544 SHA256 f7a7ec084ae9aec5e7b5bfc14fc853bdb56f427b8577eb494576079ae5205aa9
+EBUILD ekeyd-1.1.3-r3.ebuild 4968 RMD160 c0a7efcdb0a3f7495ea7709dd7f40eb04b8fc8db SHA1 4360c542c82507abc13a791903697dc060d598b2 SHA256 23881f8c4a226cf669a4e31c51b68187c5329a0995905667801fbedd869cc341
+MISC ChangeLog 5256 RMD160 a94ce9f797925c18f866185fa18ac1ae73e35bc4 SHA1 7e7627179b09250c74054fa8c5c965a6e4cd31db SHA256 4d8870a887c8b859ea5304503c695dbabc6da018c394f6b90d9d4d46ca794092
+MISC metadata.xml 757 RMD160 9b29407b2c47da62e7bae4c5d5d1c69052f83b8b SHA1 c384edb2eb5a72973b34628cee962f5f27bc83c9 SHA256 195d8572fab7249a9b085285e0206771ff12cf7d6c222878402439d2c4d69a2b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk2PtpYACgkQAiZjviIA2XjQmQCfdBKyp4tnLqTBlWmP7OKWqypt
-bKoAoL4hU48Ylo2rV7KMjAxpfZCbWAoB
-=kQ6Y
+iEYEARECAAYFAk2VxmIACgkQAiZjviIA2Xg4awCfXKq65TnpGr55/ZNEWMeq/Q4f
+MN8AniycqgZc2r/pIPIBViUeANAOYWzU
+=u996
-----END PGP SIGNATURE-----
diff --git a/app-crypt/ekeyd/ekeyd-1.1.3-r3.ebuild b/app-crypt/ekeyd/ekeyd-1.1.3-r3.ebuild
new file mode 100644
index 000000000000..2182265f92f7
--- /dev/null
+++ b/app-crypt/ekeyd/ekeyd-1.1.3-r3.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ekeyd-1.1.3-r3.ebuild,v 1.1 2011/04/01 12:34:42 flameeyes Exp $
+
+EAPI=2
+
+inherit multilib linux-info toolchain-funcs
+
+DESCRIPTION="Entropy Key userspace daemon"
+HOMEPAGE="http://www.entropykey.co.uk/"
+SRC_URI="http://www.entropykey.co.uk/res/download/${P}.tar.gz"
+
+LICENSE="as-is" # yes, truly
+
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="usb kernel_linux munin"
+
+RDEPEND="dev-lang/lua
+ usb? ( virtual/libusb:0 )"
+DEPEND="${RDEPEND}"
+RDEPEND="${RDEPEND}
+ dev-lua/luasocket
+ kernel_linux? ( sys-fs/udev )
+ usb? ( !kernel_linux? ( sys-apps/usbutils ) )
+ munin? ( net-analyzer/munin )"
+
+CONFIG_CHECK="~USB_ACM"
+
+pkg_setup() {
+ if use kernel_linux && ! use usb && linux_config_exists; then
+ check_extra_config
+ fi
+}
+
+src_prepare() {
+ # - avoid using -Werror;
+ # - don't gzip the man pages, this will also stop it from
+ # installing them, so we'll do it by hand.
+ sed -i \
+ -e 's:-Werror::' \
+ -e '/gzip/d' \
+ daemon/Makefile || die
+
+ epatch "${FILESDIR}"/${PN}-1.1.1-earlyboot.patch
+ epatch "${FILESDIR}"/${P}-libusb_compat.patch
+ epatch "${FILESDIR}"/${P}-slashes.patch
+
+ # Stupid multilib hack; remove it once Gentoo has sane paths for
+ # udev directories.
+ if [[ $(get_libdir) != lib ]]; then
+ sed -i -e "s:/lib/udev/:/$(get_libdir)/udev/:" \
+ doc/*.rules || die
+ fi
+
+ # We moved the binaries around
+ sed -i -e 's:$BINPATH/ekey-ulusbd:/usr/libexec/ekey-ulusbd:' \
+ doc/ekeyd-udev || die
+}
+
+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
+
+ # We don't slot LUA so we don't really need to have the variables
+ # set at all.
+ emake -C daemon \
+ CC="$(tc-getCC)" \
+ LUA_V= LUA_INC= \
+ OSNAME=${osname} \
+ OPT="${CFLAGS}" \
+ BUILD_ULUSBD=$(use usb && echo yes || echo no) \
+ || die "emake failed"
+}
+
+src_install() {
+ emake -C daemon \
+ DESTDIR="${D}" \
+ BUILD_ULUSBD=$(use usb && echo yes || echo no) \
+ install || die "emake install failed"
+
+ # We move the daemons around to avoid polluting the available
+ # commands.
+ dodir /usr/libexec
+ mv "${D}"/usr/sbin/ekey*d "${D}"/usr/libexec
+
+ # Install them manually because we don't want them gzipped
+ doman daemon/{ekeyd,ekey-setkey,ekey-rekey,ekeydctl}.8 \
+ daemon/ekeyd.conf.5 || die
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN} || die
+
+ if use usb; then
+ if ! use kernel_linux; then
+ newinitd "${FILESDIR}"/ekey-ulusbd.init ekey-ulusbd || die
+ newconfd "${FILESDIR}"/ekey-ulusbd.conf ekey-ulusbd || die
+ fi
+ doman daemon/ekey-ulusbd.8 || die
+ fi
+
+ dodoc daemon/README* AUTHORS WARNING ChangeLog || die
+
+ if use kernel_linux; then
+ local rules=doc/60-UDEKEY01.rules
+ use usb && rules=doc/60-UDEKEY01-UDS.rules
+
+ insinto /$(get_libdir)/udev/rules.d
+ newins ${rules} 70-${PN}.rules || die
+
+ exeinto /$(get_libdir)/udev
+ doexe doc/ekeyd-udev || die
+ fi
+
+ if use munin; then
+ exeinto /usr/libexec/munin/plugins
+ doexe munin/ekeyd_stat_
+
+ insinto /etc/munin/plugin-conf.d
+ newins munin/plugin-conf.d_ekeyd ekeyd
+ fi
+}
+
+pkg_postinst() {
+ elog "To make use of your entropykey, make sure to execute ekey-rekey"
+ elog "the first time, and then start the ekeyd service."
+ elog ""
+ elog "The service supports multiplexing if you wish to use multiple"
+ elog "keys, just symlink /etc/init.d/ekeyd → /etc/init.d/ekeyd.identifier"
+ elog "and it'll be looking for /etc/entropykey/identifier.conf"
+ elog ""
+ elog "If you intend on providing entropy for more than your running host"
+ elog "you'll have to set the ekeyd daemon into EGD-server mode, and install"
+ elog "on both the ekey host and the clients the app-crypt/ekey-egd-linux"
+ elog "package that connects to the egd socket to receive entropy."
+ elog ""
+
+ if use usb; then
+ if use kernel_linux; then
+ elog "You're going to use the userland USB daemon, the udev rules"
+ elog "will be used accordingly. If you want to use the CDC driver"
+ elog "please disable the usb USE flag."
+ else
+ elog "You're going to use the userland USB daemon, since your OS"
+ elog "does not support udev, you should start the ekey-ulusbd"
+ elog "service before ekeyd."
+ fi
+ else
+ if use kernel_linux; then
+ elog "Some versions of Linux have a faulty CDC ACM driver that stops"
+ elog "EntropyKey from working properly; please check the compatibility"
+ elog "table at http://www.entropykey.co.uk/download/"
+ else
+ elog "Make sure your operating system supports the CDC ACM driver"
+ elog "or otherwise you won't be able to use the EntropyKey."
+ fi
+ elog ""
+ elog "If you're unsure about the working state of the CDC ACM driver"
+ elog "enable the usb USE flag and use the userland USB daemon"
+ fi
+}
diff --git a/app-crypt/ekeyd/metadata.xml b/app-crypt/ekeyd/metadata.xml
index b12952fd840a..3f212cc6178a 100644
--- a/app-crypt/ekeyd/metadata.xml
+++ b/app-crypt/ekeyd/metadata.xml
@@ -13,5 +13,10 @@
often seems to be fragile (or the gadget implementation on the
EntropyKey is too buggy), and can cause various problems.
</flag>
+
+ <flag name='munin'>
+ Install a plugin for <pkg>net-analyzer/munin</pkg> to graph
+ statistical data from ekeyd.
+ </flag>
</use>
</pkgmetadata>