Gentoo Archives: gentoo-commits

From: "Kristian Fiskerstrand (k_f)" <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/ekeyd: ekeyd-1.1.5.ebuild ChangeLog
Date: Sat, 30 Aug 2014 13:04:21
Message-Id: 20140830130417.9E6CD441D@oystercatcher.gentoo.org
1 k_f 14/08/30 13:04:17
2
3 Modified: ChangeLog
4 Added: ekeyd-1.1.5.ebuild
5 Log:
6 Version bump: Bringing in 1.1.5 from overlay
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xFC3B17DE05E136A0!)
9
10 Revision Changes Path
11 1.34 app-crypt/ekeyd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.34&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.34&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/ekeyd/ChangeLog?r1=1.33&r2=1.34
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v
20 retrieving revision 1.33
21 retrieving revision 1.34
22 diff -u -r1.33 -r1.34
23 --- ChangeLog 30 Aug 2014 12:29:19 -0000 1.33
24 +++ ChangeLog 30 Aug 2014 13:04:17 -0000 1.34
25 @@ -1,6 +1,15 @@
26 # ChangeLog for app-crypt/ekeyd
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.33 2014/08/30 12:29:19 k_f Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.34 2014/08/30 13:04:17 k_f Exp $
30 +
31 +*ekeyd-1.1.5 (30 Aug 2014)
32 +
33 + 30 Aug 2014; Kristian Fiskerstrand <k_f@g.o> +ekeyd-1.1.5.ebuild,
34 + +files/90-ekeyd.rules, +files/ekeyd-1.1.5-const_char_usage.patch,
35 + +files/ekeyd-1.1.5-enoent.patch, +files/ekeyd-1.1.5-misc.patch,
36 + +files/ekeyd-1.1.5-path-fixes.patch, +files/ekeyd-1.1.5-remove-werror.patch,
37 + +files/ekeyd-1.1.5-udev-rule.patch, +files/ekeyd.service:
38 + Version bump: Bringing in 1.1.5 from overlay
39
40 30 Aug 2014; Kristian Fiskerstrand <k_f@g.o> metadata.xml:
41 Adding myself as maintainer for this maintainer-needed package
42
43
44
45 1.1 app-crypt/ekeyd/ekeyd-1.1.5.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/ekeyd/ekeyd-1.1.5.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/ekeyd/ekeyd-1.1.5.ebuild?rev=1.1&content-type=text/plain
49
50 Index: ekeyd-1.1.5.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ekeyd-1.1.5.ebuild,v 1.1 2014/08/30 13:04:17 k_f Exp $
55
56 EAPI=4
57
58 inherit eutils multilib linux-info toolchain-funcs udev systemd
59
60 DESCRIPTION="Entropy Key userspace daemon"
61 HOMEPAGE="http://www.entropykey.co.uk/"
62 SRC_URI="mirror://ubuntu/pool/universe/e/ekeyd/ekeyd_${PV}.orig.tar.gz"
63
64 LICENSE="MIT GPL-2" # GPL-2 (only) for init script
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="kernel_linux munin minimal"
68 REQUIRED_USE="minimal? ( !munin )"
69
70 EKEYD_RDEPEND="dev-lang/lua"
71 EKEYD_DEPEND="${EKEYD_RDEPEND}"
72 EKEYD_RDEPEND="${EKEYD_RDEPEND}
73 dev-lua/luasocket
74 kernel_linux? ( virtual/udev )
75 munin? ( net-analyzer/munin )"
76
77 RDEPEND="!minimal? ( ${EKEYD_RDEPEND} )
78 !app-crypt/ekey-egd-linux
79 sys-apps/openrc"
80 DEPEND="!minimal? ( ${EKEYD_DEPEND} )"
81
82 CONFIG_CHECK="~USB_ACM"
83
84 pkg_setup() {
85 if ! use minimal && use kernel_linux && ! use usb && linux_config_exists; then
86 check_extra_config
87 fi
88 }
89
90 src_prepare() {
91 epatch "${FILESDIR}/${P}-const_char_usage.patch";
92 epatch "${FILESDIR}/${P}-enoent.patch";
93 epatch "${FILESDIR}/${P}-path-fixes.patch";
94 epatch "${FILESDIR}/${P}-udev-rule.patch";
95 epatch "${FILESDIR}/${P}-remove-werror.patch";
96 epatch "${FILESDIR}/${P}-misc.patch";
97 }
98
99 src_compile() {
100 local osname
101
102 # Override automatic detection: upstream provides this with uname,
103 # we don't like using uname.
104 case ${CHOST} in
105 *-linux-*)
106 osname=linux;;
107 *-freebsd*)
108 osname=freebsd;;
109 *-kfrebsd-gnu)
110 osname=gnukfreebsd;;
111 *-openbsd*)
112 osname=openbsd;;
113 *)
114 die "Unsupported operating system!"
115 ;;
116 esac
117
118 # We don't slot LUA so we don't really need to have the variables
119 # set at all.
120 emake -C host \
121 CC="$(tc-getCC)" \
122 LUA_V= LUA_INC= \
123 OSNAME=${osname} \
124 OPT="${CFLAGS}" \
125 BUILD_ULUSBD=no \
126 $(use minimal && echo egd-linux)
127 }
128
129 src_install() {
130 exeinto /usr/libexec
131 newexe host/egd-linux ekey-egd-linux
132 newman host/egd-linux.8 ekey-egd-linux.8
133
134 newconfd "${FILESDIR}"/ekey-egd-linux.conf.2 ekey-egd-linux
135 newinitd "${FILESDIR}"/ekey-egd-linux.init.2 ekey-egd-linux
136
137 dodoc doc/* AUTHORS ChangeLog THANKS
138
139 use minimal && return
140 # from here on, install everything that is not part of the minimal
141 # support.
142
143 emake -C host \
144 DESTDIR="${D}" \
145 MANZCMD=cat MANZEXT= \
146 install-ekeyd
147
148 # We move the daemons around to avoid polluting the available
149 # commands.
150 dodir /usr/libexec
151 mv "${D}"/usr/sbin/ekey*d "${D}"/usr/libexec
152
153 systemd_dounit "${FILESDIR}/ekeyd.service"
154
155 newinitd "${FILESDIR}"/${PN}.init.2 ${PN}
156
157 if use kernel_linux; then
158 local rules="${FILESDIR}/90-ekeyd.rules"
159 udev_newrules ${rules} 90-${PN}.rules
160 fi
161
162 if use munin; then
163 exeinto /usr/libexec/munin/plugins
164 doexe munin/ekeyd_stat_
165
166 insinto /etc/munin/plugin-conf.d
167 newins munin/plugin-conf.d_ekeyd ekeyd
168 fi
169 }
170
171 pkg_postinst() {
172 elog "${CATEGORY}/${PN} now install also the EGD client service ekey-egd-linux."
173 elog "To use this service, you need enable EGDTCPSocket for the ekeyd service"
174 elog "managing the key(s)."
175 elog ""
176 elog "The daemon will send more entropy to the kernel once the available pool"
177 elog "falls below the value set in the kernel.random.write_wakeup_threshold"
178 elog "sysctl entry."
179 elog ""
180 ewarn "Since version 1.1.4-r1, ekey-egd-linux will *not* set the watermark for"
181 ewarn "you, instead you'll have to configure the sysctl in /etc/sysctl.conf"
182
183 use minimal && return
184 # from here on, document everything that is not part of the minimal
185 # support.
186
187 elog ""
188 elog "To make use of your EntropyKey, make sure to execute ekey-rekey"
189 elog "the first time, and then start the ekeyd service."
190 elog ""
191 elog "By default ekeyd will feed the entropy directly to the kernel's pool;"
192 elog "if your system has jumps in load average, you might prefer using the"
193 elog "EGD compatibility mode, by enabling EGDTCPSocket for ekeyd and then"
194 elog "starting the ekey-egd-linux service."
195 elog ""
196 elog "The same applies if you intend to provide entropy for multiple hosts"
197 elog "over the network. If you want to have the ekey-egd-linux service on"
198 elog "other hosts, you can enable the 'minimal' USE flag."
199 elog ""
200 elog "The service supports multiplexing if you wish to use multiple"
201 elog "keys, just symlink /etc/init.d/ekeyd → /etc/init.d/ekeyd.identifier"
202 elog "and it'll be looking for /etc/entropykey/identifier.conf"
203 elog ""
204
205 if use kernel_linux; then
206 elog "Some versions of Linux have a faulty CDC ACM driver that stops"
207 elog "EntropyKey from working properly; please check the compatibility"
208 elog "table at http://www.entropykey.co.uk/download/"
209 else
210 elog "Make sure your operating system supports the CDC ACM driver"
211 elog "or otherwise you won't be able to use the EntropyKey."
212 fi
213 elog ""
214 elog "If you're unsure about the working state of the CDC ACM driver"
215 elog "enable the usb USE flag and use the userland USB daemon"
216 }