1 |
gnupg includes an implementation of IDEA, for use in countries where it |
2 |
can be distributed under the GPL (all countries except AUSTRIA, FRANCE, |
3 |
GERMANY, ITALY, JAPAN, THE NETHERLANDS, SPAIN, SWEDEN, SWITZERLAND, THE |
4 |
UK AND THE US). |
5 |
|
6 |
Someone requested an idea USE flag in #28870, which is simple to |
7 |
implement..is it safe to add this flag, with a warning about countries |
8 |
where it is not permitted and using the nomirror RESTRICTion ? or should |
9 |
we just avoid this code, as only a few users who would be interested in |
10 |
would be permitted to use it? |
11 |
|
12 |
it is also possible to build it as a module, seperately from gnupg |
13 |
(although the developers reccomend building it statically if possible), |
14 |
is this more desirable? |
15 |
|
16 |
or, I could just mark this bug WONTFIX... |
17 |
|
18 |
http://www.gnupg.org/why-not-idea.html |
19 |
|
20 |
example patch to gnupg-1.2.3-r5.ebuild that would enable IDEA. |
21 |
|
22 |
--- gnupg-1.2.3-r5.ebuild 2003-12-03 22:22:01.000000000 +0000 |
23 |
+++ gnupg-1.2.3-r6.ebuild 2003-12-03 22:39:32.000000000 +0000 |
24 |
@@ -6,11 +6,13 @@ |
25 |
|
26 |
DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement" |
27 |
HOMEPAGE="http://www.gnupg.org/" |
28 |
-SRC_URI="ftp://ftp.gnupg.org/gcrypt/gnupg/${P}.tar.bz2" |
29 |
+SRC_URI="ftp://ftp.gnupg.org/gcrypt/gnupg/${P}.tar.bz2 |
30 |
+ idea? ( ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz )" |
31 |
SLOT="0" |
32 |
-LICENSE="GPL-2" |
33 |
+LICENSE="GPL-2 IDEA" |
34 |
KEYWORDS="~x86 ~alpha ~sparc ~hppa ~ia64" |
35 |
-IUSE="X ldap nls static caps" |
36 |
+IUSE="X ldap nls static caps idea" |
37 |
+RETRICT="nomirror" |
38 |
|
39 |
RDEPEND="!static? ( ldap? ( net-nds/openldap ) |
40 |
caps? ( sys-libs/libcap ) |
41 |
@@ -46,6 +48,12 @@ |
42 |
# |
43 |
# http://www.s-quadra.com/advisories/Adv-20031203.txt |
44 |
cd ${S}; epatch ${FILESDIR}/${P}-hkp-format-string.diff |
45 |
+ |
46 |
+ # implement the IDEA algorithm, for distribution in countries |
47 |
+ # where the patent does not apply. |
48 |
+ if use idea; then |
49 |
+ mv ${WORKDIR}/idea.c ${S}/cipher/idea.c || ewarn "failed to insert IDEA module" |
50 |
+ fi |
51 |
} |
52 |
|
53 |
src_compile() { |
54 |
@@ -119,4 +127,11 @@ |
55 |
einfo "This is needed in order to have a secure place to store your" |
56 |
einfo "passphrases, etc. at runtime but may make some sysadmins nervous." |
57 |
fi |
58 |
+ echo |
59 |
+ if use idea; then |
60 |
+ einfo "you have compiled gnupg with support for the IDEA algorithm, this code" |
61 |
+ einfo "is distributed under the GPL in countries where it is permitted to do so" |
62 |
+ einfo "by law." |
63 |
+ einfo "Please read http://www.gnupg.org/why-not-idea.html for more information" |
64 |
+ fi |
65 |
} |
66 |
|
67 |
-- |
68 |
------------------------------------- |
69 |
taviso@××××××××××××.org | finger me for my gpg key. |
70 |
------------------------------------------------------- |
71 |
|
72 |
-- |
73 |
gentoo-dev@g.o mailing list |