1 |
flameeyes 09/09/28 10:59:07 |
2 |
|
3 |
Added: metadata.xml ChangeLog ekeyd-1.0.5.ebuild |
4 |
Log: |
5 |
Initial import of the EntropyKey daemon; this is still a work-in-progress ebuild, as it lacks an init script for the USB userland driver, and checks for Linux kernel options for CDC modem support. |
6 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-crypt/ekeyd/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/metadata.xml?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/metadata.xml?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: metadata.xml |
15 |
=================================================================== |
16 |
<?xml version="1.0" encoding="UTF-8"?> |
17 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 |
<pkgmetadata> |
19 |
<herd>no-herd</herd> |
20 |
<maintainer> |
21 |
<email>flameeyes@g.o</email> |
22 |
</maintainer> |
23 |
<use> |
24 |
<flag name='usb'> |
25 |
Build the libusb-based userland daemon for accessing the |
26 |
entropykey (alternative to the CDC USB driver). |
27 |
</flag> |
28 |
</use> |
29 |
</pkgmetadata> |
30 |
|
31 |
|
32 |
|
33 |
1.1 app-crypt/ekeyd/ChangeLog |
34 |
|
35 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.1&view=markup |
36 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ChangeLog?rev=1.1&content-type=text/plain |
37 |
|
38 |
Index: ChangeLog |
39 |
=================================================================== |
40 |
# ChangeLog for app-crypt/ekeyd |
41 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
42 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ChangeLog,v 1.1 2009/09/28 10:59:06 flameeyes Exp $ |
43 |
|
44 |
*ekeyd-1.0.5 (28 Sep 2009) |
45 |
|
46 |
28 Sep 2009; Diego E. Pettenò <flameeyes@g.o> +ekeyd-1.0.5.ebuild, |
47 |
+files/ekeyd.init, +metadata.xml: |
48 |
Initial import of the EntropyKey daemon; this is still a work-in-progress |
49 |
ebuild, as it lacks an init script for the USB userland driver, and checks |
50 |
for Linux kernel options for CDC modem support. |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
1.1 app-crypt/ekeyd/ekeyd-1.0.5.ebuild |
56 |
|
57 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.5.ebuild?rev=1.1&view=markup |
58 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.5.ebuild?rev=1.1&content-type=text/plain |
59 |
|
60 |
Index: ekeyd-1.0.5.ebuild |
61 |
=================================================================== |
62 |
# Copyright 1999-2009 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/ekeyd-1.0.5.ebuild,v 1.1 2009/09/28 10:59:06 flameeyes Exp $ |
65 |
|
66 |
EAPI=2 |
67 |
|
68 |
inherit multilib |
69 |
|
70 |
DESCRIPTION="Entropy Key userspace daemon" |
71 |
HOMEPAGE="http://www.entropykey.co.uk/" |
72 |
SRC_URI="http://www.entropykey.co.uk/res/download/${P}.tar.gz" |
73 |
|
74 |
LICENSE="as-is" # yes, truly |
75 |
|
76 |
SLOT="0" |
77 |
|
78 |
KEYWORDS="~amd64" |
79 |
|
80 |
IUSE="usb kernel_linux" |
81 |
|
82 |
RDEPEND="dev-lang/lua |
83 |
usb? ( dev-libs/libusb:0 )" |
84 |
DEPEND="${RDEPEND}" |
85 |
RDEPEND="${RDEPEND} |
86 |
dev-libs/luasocket |
87 |
kernel_linux? ( sys-fs/udev )" |
88 |
|
89 |
src_prepare() { |
90 |
# - avoid using -Werror; |
91 |
# - don't gzip the man pages, this will also stop it from |
92 |
# installing them, so we'll do it by hand. |
93 |
sed -i \ |
94 |
-e 's:-Werror::' \ |
95 |
-e '/gzip/d' \ |
96 |
daemon/Makefile || 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 |
install || die "emake install failed" |
132 |
|
133 |
# Install them manually because we don't want them gzipped |
134 |
doman daemon/{ekeyd,ekey-setkey,ekey-rekey,ekeydctl}.8 \ |
135 |
daemon/ekeyd.conf.5 || die |
136 |
|
137 |
if use usb; then |
138 |
doman daemon/ekey-ulusbd.8 || die |
139 |
fi |
140 |
|
141 |
dodoc daemon/README* AUTHORS WARNING || die |
142 |
|
143 |
if use kernel_linux; then |
144 |
insinto /etc/udev/rules.d |
145 |
newins doc/60-UDEKEY01.rules 70-${PN}.rules || die |
146 |
|
147 |
exeinto /$(get_libdir)/udev |
148 |
doexe doc/ekeyd-udev || die |
149 |
fi |
150 |
|
151 |
keepdir /etc/ekeyd |
152 |
|
153 |
newinitd "${FILESDIR}"/${PN}.init ${PN} || die |
154 |
} |
155 |
|
156 |
pkg_postinst() { |
157 |
elog "To make use of your entropykey, make sure to execute ekey-rekey" |
158 |
elog "the first time, and then start the ekeyd service." |
159 |
elog "" |
160 |
elog "The service supports multiplexing if you wish to use multiple" |
161 |
elog "keys, just symlink /etc/init.d/ekeyd → /etc/init.d/ekeyd.identifier" |
162 |
elog "and it'll be looking for /etc/init.d/identifier.conf" |
163 |
|
164 |
if use usb; then |
165 |
elog "" |
166 |
elog "TODO TODO TODO TODO TODO" |
167 |
elog "" |
168 |
elog "Please note that while the userland USB daemon is being built" |
169 |
elog "there currently is no init script to start it; this will be fixed" |
170 |
elog "as soon as possible." |
171 |
elog "" |
172 |
elog "TODO TODO TODO TODO TODO" |
173 |
fi |
174 |
} |