Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/bestcrypt: bestcrypt-1.6_p14.ebuild
Date: Sat, 10 Nov 2007 11:03:20
Message-Id: E1Iqo7O-0005Ub-JK@stork.gentoo.org
1 alonbl 07/11/10 11:03:14
2
3 Added: bestcrypt-1.6_p14.ebuild
4 Log:
5 Version bump
6 (Portage version: 2.1.3.19)
7
8 Revision Changes Path
9 1.1 app-crypt/bestcrypt/bestcrypt-1.6_p14.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/bestcrypt/bestcrypt-1.6_p14.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/bestcrypt/bestcrypt-1.6_p14.ebuild?rev=1.1&content-type=text/plain
13
14 Index: bestcrypt-1.6_p14.ebuild
15 ===================================================================
16 # Copyright 1999-2007 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/bestcrypt-1.6_p14.ebuild,v 1.1 2007/11/10 11:03:14 alonbl Exp $
19
20 inherit flag-o-matic eutils linux-mod toolchain-funcs multilib
21
22 MY_PN="bcrypt"
23 MY_PV="${PV/_p/-}"
24 DESCRIPTION="commercially licensed transparent filesystem encryption"
25 HOMEPAGE="http://www.jetico.com/"
26 SRC_URI="http://www.jetico.com/linux/BestCrypt-${MY_PV}.tar.gz
27 !x86? ( mirror://gentoo/bcrypt-rc6-serpent-c.diff.gz )
28 x86? ( http://www.carceri.dk/files/bcrypt-rc6-serpent.diff.gz )"
29
30 LICENSE="bestcrypt"
31 SLOT="0"
32 IUSE=""
33 KEYWORDS="~amd64 ~x86"
34
35 DEPEND="virtual/linux-sources"
36
37 S="${WORKDIR}/${MY_PN}-${MY_PV}"
38
39 pkg_setup() {
40 linux-mod_pkg_setup
41
42 MODULE_NAMES="bc(block:${S}/mod)
43 bc_3des(block:${S}/mod:mod/3des)
44 bc_bf128(block:${S}/mod:mod/bf128)
45 bc_bf448(block:${S}/mod:mod/bf448)
46 bc_blowfish(block:${S}/mod:mod/blowfish)
47 bc_cast(block:${S}/mod:mod/cast)
48 bc_des(block:${S}/mod:mod/des)
49 bc_gost(block:${S}/mod:mod/gost)
50 bc_idea(block:${S}/mod:mod/idea)
51 bc_rc6(block:${S}/mod:mod/rc6)
52 bc_rijn(block:${S}/mod:mod/rijn)
53 bc_serpent(block:${S}/mod:mod/serpent)
54 bc_twofish(block:${S}/mod:mod/twofish)"
55 BUILD_TARGETS="all"
56 BUILD_PARAMS="
57 CPP=\"$(tc-getCXX)\"
58 KERNEL_DIR=\"${KV_DIR}\"
59 VER=${KV_MAJOR}.${KV_MINOR}
60 KEXT=${KV_OBJ}"
61 }
62
63 src_unpack() {
64 unpack ${A}
65 cd "${S}"
66
67 epatch "${FILESDIR}/${P}-module.patch"
68
69 if use x86;
70 then
71 epatch "${WORKDIR}/bcrypt-rc6-serpent.diff"
72 else
73 epatch "${WORKDIR}/bcrypt-rc6-serpent-c.diff"
74 fi
75 }
76
77 src_compile() {
78 linux-mod_src_compile
79
80 filter-flags -fforce-addr
81
82 emake -C kgsha CPP="$(tc-getCXX)" EXTRA_CXXFLAGS="${CXXFLAGS}" || die "library compile failed"
83 emake -C kgsha256 CPP="$(tc-getCXX)" EXTRA_CXXFLAGS="${CXXFLAGS}" || die "library compile failed"
84 emake -C src CC="$(tc-getCC)" EXTRA_CFLAGS="${CFLAGS} -I../kgsha256" || die "bctool compile failed"
85 }
86
87 src_install() {
88 linux-mod_src_install
89
90 dobin bin/bctool
91 dolib.so lib/libkgsha{,256}.so
92 insinto /usr/bin
93 doman man/bctool.8
94 for link in bcumount bcformat bcfsck bcnew bcpasswd bcinfo \
95 bclink bcunlink bcmake_hidden bcreencrypt; do
96 dosym bctool "/usr/bin/${link}"
97 done
98
99 insinto /etc
100 newins etc/bc.conf bc.conf
101 newinitd "${FILESDIR}"/bcrypt3 bcrypt
102 dodoc README HIDDEN_PART
103 }
104
105 pkg_postinst() {
106 elog "If you are using the serpent or rc6 encryption modules and have any problems,"
107 elog "please submit bugs to http://bugs.gentoo.org because these modules are not part"
108 elog "of the standard distribution of BestCrypt for Linux released by Jetico."
109 elog "For more information on these additional modules:"
110 elog "visit http://www.carceri.dk/index.php?redirect=other_bestcrypt"
111
112 ewarn
113 ewarn "The BestCrypt drivers are not free - Please purchace a license from "
114 ewarn "http://www.jetico.com/"
115 ewarn
116
117 linux-mod_pkg_postinst
118 }
119
120
121
122 --
123 gentoo-commits@g.o mailing list