1 |
flameeyes 09/09/28 18:29:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ekeyd-1.0.5-r1.ebuild |
5 |
Removed: ekeyd-1.0.5.ebuild |
6 |
Log: |
7 |
Bump already, add init script for the userland USB daemon, and move the two daemon executables in /usr/libexec. |
8 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 app-crypt/ekeyd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- ChangeLog 28 Sep 2009 10:59:06 -0000 1.1 |
24 |
+++ ChangeLog 28 Sep 2009 18:29:35 -0000 1.2 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for app-crypt/ekeyd |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.1 2009/09/28 10:59:06 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.2 2009/09/28 18:29:35 flameeyes Exp $ |
30 |
+ |
31 |
+*ekeyd-1.0.5-r1 (28 Sep 2009) |
32 |
+ |
33 |
+ 28 Sep 2009; Diego E. Pettenò <flameeyes@g.o> -ekeyd-1.0.5.ebuild, |
34 |
+ +ekeyd-1.0.5-r1.ebuild, +files/ekey-ulusbd.conf, +files/ekey-ulusbd.init, |
35 |
+ files/ekeyd.init: |
36 |
+ Bump already, add init script for the userland USB daemon, and move the |
37 |
+ two daemon executables in /usr/libexec. |
38 |
|
39 |
*ekeyd-1.0.5 (28 Sep 2009) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 app-crypt/ekeyd/ekeyd-1.0.5-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.5-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.5-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: ekeyd-1.0.5-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.5-r1.ebuild,v 1.1 2009/09/28 18:29:35 flameeyes Exp $ |
54 |
|
55 |
EAPI=2 |
56 |
|
57 |
inherit multilib |
58 |
|
59 |
DESCRIPTION="Entropy Key userspace daemon" |
60 |
HOMEPAGE="http://www.entropykey.co.uk/" |
61 |
SRC_URI="http://www.entropykey.co.uk/res/download/${P}.tar.gz" |
62 |
|
63 |
LICENSE="as-is" # yes, truly |
64 |
|
65 |
SLOT="0" |
66 |
|
67 |
KEYWORDS="~amd64 ~x86" |
68 |
|
69 |
IUSE="usb kernel_linux" |
70 |
|
71 |
RDEPEND="dev-lang/lua |
72 |
usb? ( dev-libs/libusb:0 )" |
73 |
DEPEND="${RDEPEND}" |
74 |
RDEPEND="${RDEPEND} |
75 |
dev-libs/luasocket |
76 |
kernel_linux? ( sys-fs/udev )" |
77 |
|
78 |
src_prepare() { |
79 |
# - avoid using -Werror; |
80 |
# - don't gzip the man pages, this will also stop it from |
81 |
# installing them, so we'll do it by hand. |
82 |
sed -i \ |
83 |
-e 's:-Werror::' \ |
84 |
-e '/gzip/d' \ |
85 |
daemon/Makefile || die |
86 |
} |
87 |
|
88 |
src_compile() { |
89 |
local osname |
90 |
|
91 |
# Override automatic detection: upstream provides this with uname, |
92 |
# we don't like using uname. |
93 |
case ${CHOST} in |
94 |
*-linux-*) |
95 |
osname=linux;; |
96 |
*-freebsd*) |
97 |
osname=freebsd;; |
98 |
*-kfrebsd-gnu) |
99 |
osname=gnukfreebsd;; |
100 |
*-openbsd*) |
101 |
osname=openbsd;; |
102 |
*) |
103 |
die "Unsupported operating system!" |
104 |
;; |
105 |
esac |
106 |
|
107 |
# We don't slot LUA so we don't really need to have the variables |
108 |
# set at all. |
109 |
emake -C daemon \ |
110 |
LUA_V= LUA_INC= \ |
111 |
OSNAME=${osname} \ |
112 |
OPT="${CFLAGS}" \ |
113 |
BUILD_ULUSBD=$(use usb && echo yes || echo no) \ |
114 |
|| die "emake failed" |
115 |
} |
116 |
|
117 |
src_install() { |
118 |
emake -C daemon \ |
119 |
DESTDIR="${D}" \ |
120 |
BUILD_ULUSBD=$(use usb && echo yes || echo no) \ |
121 |
install || die "emake install failed" |
122 |
|
123 |
# We move the daemons around to avoid polluting the available |
124 |
# commands. |
125 |
dodir /usr/libexec |
126 |
mv "${D}"/usr/sbin/ekey*d "${D}"/usr/libexec |
127 |
|
128 |
keepdir /etc/ekeyd |
129 |
|
130 |
# Install them manually because we don't want them gzipped |
131 |
doman daemon/{ekeyd,ekey-setkey,ekey-rekey,ekeydctl}.8 \ |
132 |
daemon/ekeyd.conf.5 || die |
133 |
|
134 |
newinitd "${FILESDIR}"/${PN}.init ${PN} || die |
135 |
|
136 |
if use usb; then |
137 |
newinitd "${FILESDIR}"/ekey-ulusbd.init ekey-ulusbd || die |
138 |
newconfd "${FILESDIR}"/ekey-ulusbd.conf ekey-ulusbd || die |
139 |
doman daemon/ekey-ulusbd.8 || die |
140 |
fi |
141 |
|
142 |
dodoc daemon/README* AUTHORS WARNING || die |
143 |
|
144 |
if use kernel_linux; then |
145 |
insinto /etc/udev/rules.d |
146 |
newins doc/60-UDEKEY01.rules 70-${PN}.rules || die |
147 |
|
148 |
exeinto /$(get_libdir)/udev |
149 |
doexe doc/ekeyd-udev || die |
150 |
fi |
151 |
} |
152 |
|
153 |
pkg_postinst() { |
154 |
elog "To make use of your entropykey, make sure to execute ekey-rekey" |
155 |
elog "the first time, and then start the ekeyd service." |
156 |
elog "" |
157 |
elog "The service supports multiplexing if you wish to use multiple" |
158 |
elog "keys, just symlink /etc/init.d/ekeyd → /etc/init.d/ekeyd.identifier" |
159 |
elog "and it'll be looking for /etc/init.d/identifier.conf" |
160 |
|
161 |
if use usb; then |
162 |
elog "" |
163 |
elog "If you don't want (or can't) use the CDC ACM driver in your" |
164 |
elog "kernel, you may use the Userland USB Daemon to access the" |
165 |
elog "EntropyKey." |
166 |
elog "" |
167 |
elog "To do so, make sure to start the ekey-ulusbd service, after" |
168 |
elog "having configured /etc/conf.d/ekey-ulusbd." |
169 |
elog "This service is also multiplexed so you can run it for any" |
170 |
elog "number of keys." |
171 |
fi |
172 |
} |