1 |
flameeyes 09/09/29 20:29:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ekeyd-1.0.6.ebuild |
5 |
Removed: ekeyd-1.0.5-r2.ebuild |
6 |
Log: |
7 |
Version bump. |
8 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 app-crypt/ekeyd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- ChangeLog 29 Sep 2009 12:03:20 -0000 1.3 |
24 |
+++ ChangeLog 29 Sep 2009 20:29:02 -0000 1.4 |
25 |
@@ -1,6 +1,12 @@ |
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.3 2009/09/29 12:03:20 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.4 2009/09/29 20:29:02 flameeyes Exp $ |
30 |
+ |
31 |
+*ekeyd-1.0.6 (29 Sep 2009) |
32 |
+ |
33 |
+ 29 Sep 2009; Diego E. Pettenò <flameeyes@g.o> |
34 |
+ -ekeyd-1.0.5-r2.ebuild, +ekeyd-1.0.6.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
*ekeyd-1.0.5-r2 (29 Sep 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-crypt/ekeyd/ekeyd-1.0.6.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.6.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.6.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ekeyd-1.0.6.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.6.ebuild,v 1.1 2009/09/29 20:29:02 flameeyes Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
|
55 |
inherit multilib linux-info |
56 |
|
57 |
DESCRIPTION="Entropy Key userspace daemon" |
58 |
HOMEPAGE="http://www.entropykey.co.uk/" |
59 |
SRC_URI="http://www.entropykey.co.uk/res/download/${P}.tar.gz" |
60 |
|
61 |
LICENSE="as-is" # yes, truly |
62 |
|
63 |
SLOT="0" |
64 |
|
65 |
KEYWORDS="~amd64 ~x86" |
66 |
|
67 |
IUSE="usb kernel_linux" |
68 |
|
69 |
RDEPEND="dev-lang/lua |
70 |
usb? ( dev-libs/libusb:0 )" |
71 |
DEPEND="${RDEPEND}" |
72 |
RDEPEND="${RDEPEND} |
73 |
dev-libs/luasocket |
74 |
kernel_linux? ( sys-fs/udev ) |
75 |
usb? ( !kernel_linux? ( sys-apps/usbutils ) )" |
76 |
|
77 |
CONFIG_CHECK="USB_ACM" |
78 |
|
79 |
pkg_setup() { |
80 |
if use kernel_linux && ! use usb && linux_config_exists; then |
81 |
check_extra_config |
82 |
fi |
83 |
} |
84 |
|
85 |
src_prepare() { |
86 |
# - avoid using -Werror; |
87 |
# - don't gzip the man pages, this will also stop it from |
88 |
# installing them, so we'll do it by hand. |
89 |
sed -i \ |
90 |
-e 's:-Werror::' \ |
91 |
-e '/gzip/d' \ |
92 |
daemon/Makefile || die |
93 |
|
94 |
# We moved the binaries around |
95 |
sed -i -e 's:$BINPATH/ekey-ulusbd:/usr/libexec/ekey-ulusbd:' \ |
96 |
doc/ekeyd-udev || die |
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 daemon \ |
121 |
LUA_V= LUA_INC= \ |
122 |
OSNAME=${osname} \ |
123 |
OPT="${CFLAGS}" \ |
124 |
BUILD_ULUSBD=$(use usb && echo yes || echo no) \ |
125 |
|| die "emake failed" |
126 |
} |
127 |
|
128 |
src_install() { |
129 |
emake -C daemon \ |
130 |
DESTDIR="${D}" \ |
131 |
BUILD_ULUSBD=$(use usb && echo yes || echo no) \ |
132 |
install || die "emake install failed" |
133 |
|
134 |
# We move the daemons around to avoid polluting the available |
135 |
# commands. |
136 |
dodir /usr/libexec |
137 |
mv "${D}"/usr/sbin/ekey*d "${D}"/usr/libexec |
138 |
|
139 |
keepdir /etc/ekeyd |
140 |
|
141 |
# Install them manually because we don't want them gzipped |
142 |
doman daemon/{ekeyd,ekey-setkey,ekey-rekey,ekeydctl}.8 \ |
143 |
daemon/ekeyd.conf.5 || die |
144 |
|
145 |
newinitd "${FILESDIR}"/${PN}.init ${PN} || die |
146 |
|
147 |
if use usb; then |
148 |
if ! use kernel_linux; then |
149 |
newinitd "${FILESDIR}"/ekey-ulusbd.init ekey-ulusbd || die |
150 |
newconfd "${FILESDIR}"/ekey-ulusbd.conf ekey-ulusbd || die |
151 |
fi |
152 |
doman daemon/ekey-ulusbd.8 || die |
153 |
fi |
154 |
|
155 |
dodoc daemon/README* AUTHORS WARNING || die |
156 |
|
157 |
if use kernel_linux; then |
158 |
insinto /etc/udev/rules.d |
159 |
if use usb; then |
160 |
newins doc/60-UDEKEY01-UDS.rules 70-ekey-ulusbd.rules || die |
161 |
else |
162 |
newins doc/60-UDEKEY01.rules 70-${PN}.rules || die |
163 |
fi |
164 |
|
165 |
exeinto /$(get_libdir)/udev |
166 |
doexe doc/ekeyd-udev || die |
167 |
fi |
168 |
} |
169 |
|
170 |
pkg_postinst() { |
171 |
elog "To make use of your entropykey, make sure to execute ekey-rekey" |
172 |
elog "the first time, and then start the ekeyd service." |
173 |
elog "" |
174 |
elog "The service supports multiplexing if you wish to use multiple" |
175 |
elog "keys, just symlink /etc/init.d/ekeyd → /etc/init.d/ekeyd.identifier" |
176 |
elog "and it'll be looking for /etc/init.d/identifier.conf" |
177 |
elog "" |
178 |
|
179 |
if use usb; then |
180 |
if use kernel_linux; then |
181 |
elog "You're going to use the userland USB daemon, the udev rules" |
182 |
elog "will be used accordingly. If you want to use the CDC driver" |
183 |
elog "please disable the usb USE flag." |
184 |
else |
185 |
elog "You're going to use the userland USB daemon, since your OS" |
186 |
elog "does not support udev, you should start the ekey-ulusbd" |
187 |
elog "service before ekeyd." |
188 |
fi |
189 |
else |
190 |
if use kernel_linux; then |
191 |
elog "Some versions of Linux have a faulty CDC ACM driver that stops" |
192 |
elog "EntropyKey from working properly; please check the compatibility" |
193 |
elog "table at http://www.entropykey.co.uk/download/" |
194 |
else |
195 |
elog "Make sure your operating system supports the CDC ACM driver" |
196 |
elog "or otherwise you won't be able to use the EntropyKey." |
197 |
fi |
198 |
elog "" |
199 |
elog "If you're unsure about the working state of the CDC ACM driver" |
200 |
elog "enable the usb USE flag and use the userland USB daemon" |
201 |
fi |
202 |
} |