diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2012-12-15 03:06:38 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2012-12-15 03:06:38 +0000 |
commit | 4011035ef8e70c133b68e450f56a7bcf54be7226 (patch) | |
tree | 1fbe8249199ab471fdc4c183f371e6a9f74d9a05 /app-crypt/bestcrypt | |
parent | Refactor mask status of packages (diff) | |
download | gentoo-2-4011035ef8e70c133b68e450f56a7bcf54be7226.tar.gz gentoo-2-4011035ef8e70c133b68e450f56a7bcf54be7226.tar.bz2 gentoo-2-4011035ef8e70c133b68e450f56a7bcf54be7226.zip |
Version bump
(Portage version: 2.2.0_alpha148/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'app-crypt/bestcrypt')
-rw-r--r-- | app-crypt/bestcrypt/ChangeLog | 8 | ||||
-rw-r--r-- | app-crypt/bestcrypt/bestcrypt-2.0.0.ebuild | 71 | ||||
-rw-r--r-- | app-crypt/bestcrypt/files/bestcrypt-2.0.0-build.patch | 59 |
3 files changed, 137 insertions, 1 deletions
diff --git a/app-crypt/bestcrypt/ChangeLog b/app-crypt/bestcrypt/ChangeLog index 37a73d53b3c2..449aead90904 100644 --- a/app-crypt/bestcrypt/ChangeLog +++ b/app-crypt/bestcrypt/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-crypt/bestcrypt # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/ChangeLog,v 1.71 2012/09/18 04:42:53 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/ChangeLog,v 1.72 2012/12/15 03:06:38 alonbl Exp $ + +*bestcrypt-2.0.0 (15 Dec 2012) + + 15 Dec 2012; <alonbl@gentoo.org> +bestcrypt-2.0.0.ebuild, + +files/bestcrypt-2.0.0-build.patch: + Version bump 18 Sep 2012; Tim Harder <radhermit@gentoo.org> -bestcrypt-1.6_p16.ebuild: Remove old. diff --git a/app-crypt/bestcrypt/bestcrypt-2.0.0.ebuild b/app-crypt/bestcrypt/bestcrypt-2.0.0.ebuild new file mode 100644 index 000000000000..b7706b46d01c --- /dev/null +++ b/app-crypt/bestcrypt/bestcrypt-2.0.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/bestcrypt-2.0.0.ebuild,v 1.1 2012/12/15 03:06:38 alonbl Exp $ + +EAPI="4" + +inherit eutils linux-mod toolchain-funcs versionator + +MY_PN="bcrypt" +MY_PV="$(replace_version_separator 2 -)" +DESCRIPTION="commercially licensed transparent filesystem encryption" +HOMEPAGE="http://www.jetico.com/" +SRC_URI="http://www.jetico.com/linux/BestCrypt-${MY_PV}.tar.gz" + +LICENSE="bestcrypt" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~x86" + +DEPEND="virtual/linux-sources" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +pkg_setup() { + linux-mod_pkg_setup + + MODULE_NAMES="bestcrypt(block::kernel/kmod) + bc_3des(crypto::kernel/kmod/crypto/algs/3des) + bc_bf128(crypto::kernel/kmod/crypto/algs/bf128) + bc_bf448(crypto::kernel/kmod/crypto/algs/bf448) + bc_blowfish(crypto::kernel/kmod/crypto/algs/blowfish) + bc_cast(crypto::kernel/kmod/crypto/algs/cast) + bc_des(crypto::kernel/kmod/crypto/algs/des) + bc_gost(crypto::kernel/kmod/crypto/algs/gost) + bc_idea(crypto::kernel/kmod/crypto/algs/idea) + bc_rijn(crypto::kernel/kmod/crypto/algs/rijn)" + BUILD_TARGETS="module" + BUILD_PARAMS=" \ + KERNEL_DIR=\"${KV_DIR}\"" +} + +src_prepare() { + epatch "${FILESDIR}/${P}-build.patch" +} + +src_compile() { + MAKEOPTS="-j1" linux-mod_src_compile + MAKEOPTS="-j1" emake \ + CFLAGS="${CXXFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + linux-mod_src_install + + emake install PREFIX="${ED}" install + + newinitd "${FILESDIR}/bcrypt3" bcrypt + sed -e '/\(bc_rc6\|bc_serpent\|bc_twofish\)/d' -i "${D}etc/init.d/bcrypt" + dodoc HIDDEN_PART README +} + +pkg_postinst() { + ewarn + ewarn "The BestCrypt drivers are not free - Please purchace a license from " + ewarn "http://www.jetico.com/" + ewarn + + linux-mod_pkg_postinst +} diff --git a/app-crypt/bestcrypt/files/bestcrypt-2.0.0-build.patch b/app-crypt/bestcrypt/files/bestcrypt-2.0.0-build.patch new file mode 100644 index 000000000000..876f30ba005d --- /dev/null +++ b/app-crypt/bestcrypt/files/bestcrypt-2.0.0-build.patch @@ -0,0 +1,59 @@ +diff --git a/Makefile b/Makefile +index 63baafb..995d48e 100644 +--- a/Makefile ++++ b/Makefile +@@ -56,7 +56,8 @@ KGSHA_LIB = $(KGSHA_BUILD_DIR)/lib$(KGSHA_LIB_NAME).a + KGGHOST_LIB = $(KGGHOST_BUILD_DIR)/lib$(KGGHOST_LIB_NAME).a + SPACEMAP_LIB = $(SPACEMAP_BUILD_DIR)/lib$(SPACEMAP_LIB_NAME).a + +-BC_EXTRA_CFLAGS= -D_LARGE_FILES -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ++BC_EXTRA_CFLAGS= $(CFLAGS) -D_LARGE_FILES -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ++BC_EXTRA_LDFLAGS = $(LDFLAGS) + + # + # commands +@@ -86,7 +87,7 @@ BCTOOL_OBJS = container/linux/file.o \ + src/bctool-rawlink.o + + BCTOOL_CFLAGS = $(BC_EXTRA_CFLAGS) -DBC_LINUX -Wall -I. -Icertificate/ +-BCTOOL_LDFLAGS = -L$(TARGET_DIR) -l$(KERN_LIB_NAME) -l$(KGSHA_LIB_NAME) \ ++BCTOOL_LDFLAGS = $(BC_EXTRA_LDFLAGS) -L$(TARGET_DIR) -l$(KERN_LIB_NAME) -l$(KGSHA_LIB_NAME) \ + -l$(KGGHOST_LIB_NAME) -l$(CERT_LIB_NAME) -l$(SPACEMAP_LIB_NAME) \ + -ludev -lpthread -l$(FS_LIB_NAME) + +@@ -101,7 +102,7 @@ $(shell mkdir -p $(TARGET_DIR)/kernel) + # + + # default target builds console tool with modules +-all: Makefile helpers module bctool-app ++all: Makefile helpers bctool-app + true + + # GUI executable with helpers and console tool +@@ -216,7 +217,7 @@ module-clean: force-look + # + + # install for default target +-install: module-install bctool-app-install helpers-install ++install: bctool-app-install helpers-install + true + + # uninstall for default target +@@ -224,6 +225,7 @@ uninstall: before-uninstall module-uninstall bctool-app-uninstall helpers-uninst + true + + helpers-install: ++ install -o root -m 755 -d $(PREFIX)/sbin + install -o root -m 4755 -s $(TARGET_DIR)/bcmount_helper $(PREFIX)/sbin + install -o root -m 4755 -s $(TARGET_DIR)/bcumount_helper $(PREFIX)/sbin + install -o root -m 4755 -s $(TARGET_DIR)/bcrrpart_helper $(PREFIX)/sbin +@@ -247,7 +249,9 @@ before-uninstall: force-look + + # install for main executable only + bctool-app-install: force-look ++ install -o root -m 755 -d $(PREFIX)/usr/bin + install -o root -m 0755 -s build/bctool $(PREFIX)/usr/bin/ ++ install -o root -m 755 -d $(PREFIX)/$(MAN_PATH)/man8 + install -m 644 bctool.8 $(PREFIX)/$(MAN_PATH)/man8/ + + # uninstall for main executable only |