diff options
author | Brandon Low <lostlogic@gentoo.org> | 2004-01-18 18:52:09 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2004-01-18 18:52:09 +0000 |
commit | 7f0a88bb47d7e5174c6898b5265af867c7267655 (patch) | |
tree | f9ef69aa9672f68e06dd8475f6d7e18e214ab1e7 /app-crypt/bestcrypt | |
parent | Version bumped. (diff) | |
download | gentoo-2-7f0a88bb47d7e5174c6898b5265af867c7267655.tar.gz gentoo-2-7f0a88bb47d7e5174c6898b5265af867c7267655.tar.bz2 gentoo-2-7f0a88bb47d7e5174c6898b5265af867c7267655.zip |
Bump to the latest from jetico, modify the init script to work with module-init-tools and therefore with kernel-2.6, documentation seems to have been dropped from the package so remove it's installation from the ebuild
Diffstat (limited to 'app-crypt/bestcrypt')
-rw-r--r-- | app-crypt/bestcrypt/ChangeLog | 12 | ||||
-rw-r--r-- | app-crypt/bestcrypt/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/bestcrypt/bestcrypt-1.5_p1.ebuild | 61 | ||||
-rw-r--r-- | app-crypt/bestcrypt/files/bcrypt2 | 99 | ||||
-rw-r--r-- | app-crypt/bestcrypt/files/digest-bestcrypt-1.5_p1 | 1 |
5 files changed, 173 insertions, 2 deletions
diff --git a/app-crypt/bestcrypt/ChangeLog b/app-crypt/bestcrypt/ChangeLog index ea78bb13627b..45d88956dc57 100644 --- a/app-crypt/bestcrypt/ChangeLog +++ b/app-crypt/bestcrypt/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-crypt/bestcrypt -# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/ChangeLog,v 1.9 2003/12/12 22:31:20 aliz Exp $ +# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/ChangeLog,v 1.10 2004/01/18 18:52:09 lostlogic Exp $ + +*bestcrypt-1.5_p1 (18 Jan 2004) + + 18 Jan 2004; Brandon Low <lostlogic@gentoo.org> bestcrypt-1.5_p1.ebuild, + files/bcrypt2: + Bump to the latest from jetico, modify the init script to work with + module-init-tools and therefore with kernel-2.6, documentation seems to have + been dropped from the package so remove it's installation from the ebuild 12 Dec 2003; Daniel Ahlberg <aliz@gentoo.org> bestcrypt-1.4_p2.ebuild, bestcrupt-1.2_p6.ebuild: diff --git a/app-crypt/bestcrypt/Manifest b/app-crypt/bestcrypt/Manifest index c6accdec23e7..3c7138b05313 100644 --- a/app-crypt/bestcrypt/Manifest +++ b/app-crypt/bestcrypt/Manifest @@ -1,6 +1,8 @@ MD5 14ec59afa4e0264b16971b2a4514443f bestcrypt-1.2_p6.ebuild 1514 MD5 4ab344212c395b270605efa1994df6ee bestcrypt-1.4_p2.ebuild 1491 +MD5 4ab344212c395b270605efa1994df6ee bestcrypt-1.5_p1.ebuild 1491 MD5 5136be7ad97261b5bb60d2da5ee845f2 ChangeLog 1465 MD5 c5fbab81816aa1d6f319f8434d2db2b2 files/bcrypt 3113 MD5 b0b2c330ce5e18ccd0ad06aa6aff62a3 files/digest-bestcrypt-1.2_p6 67 MD5 9c378965942830e2966d15c1c0d0816b files/digest-bestcrypt-1.4_p2 67 +MD5 73a8ba802e25017bcceb177c6b8f4105 files/digest-bestcrypt-1.5_p1 67 diff --git a/app-crypt/bestcrypt/bestcrypt-1.5_p1.ebuild b/app-crypt/bestcrypt/bestcrypt-1.5_p1.ebuild new file mode 100644 index 000000000000..7fec513c0fe4 --- /dev/null +++ b/app-crypt/bestcrypt/bestcrypt-1.5_p1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/bestcrypt-1.5_p1.ebuild,v 1.1 2004/01/18 18:52:09 lostlogic Exp $ + +MY_PN="bcrypt" +DESCRIPTION="commercially licensed transparent filesystem encryption" +HOMEPAGE="http://www.jetico.com/" +SRC_URI="http://www.jetico.com/linux/BestCrypt-${PV/_p/-}.tar.gz" + +LICENSE="bestcrypt" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="virtual/linux-sources" + +S=${WORKDIR}/bcrypt + +filter-flags -fforce-addr + +pkg_setup() { + if [ -e /usr/src/linux/include/linux/modsetver.h ] && + [ ! -e /usr/src/linux/include/linux/modversions.h ]; then + einfo "Setting modsetver->modversions symlink" + ln -s /usr/src/linux/include/linux/modsetver.h \ + /usr/src/linux/include/linux/modversions.h + fi +} + +src_unpack() { + unpack ${A} + for file in `find . -type f -iname Makefile*`;do + sed -i -e "s:-O[0-9]:${CFLAGS}:" \ + -e 's%KVER =.*%KVER = $(shell readlink /usr/src/linux|sed -e "s:linux-\\([0-9]\\+\\.[0-9]\\+\\)\\..*:\\1:")%' \ + -e "s%uname -r%readlink /usr/src/linux|sed -e 's:linux-::'%" \ + ${file} + + done +} + +src_compile() { + emake -j1 || die +} + +src_install() { + exeinto /etc/rc.d/init.d + doexe ${FILESDIR}/bcrypt + dodir \ + /usr/bin \ + /etc/init.d \ + /etc/rc.d/rc{0,1,2,3,4,5,6}.d \ + /etc/rc{0,1,2,3,4,5,6}.d \ + /usr/share/man/man8 \ + /lib/modules/${KV}/kernel/drivers/block + einstall MAN_PATH="/usr/share/man" \ + root="${D}" \ + MOD_PATH=/lib/modules/${KV}/kernel/drivers/block + exeinto /etc/init.d + newexe ${FILESDIR}/bcrypt2 bcrypt + rm -rf ${D}/etc/rc*.d + dodoc README LICENSE +} diff --git a/app-crypt/bestcrypt/files/bcrypt2 b/app-crypt/bestcrypt/files/bcrypt2 new file mode 100644 index 000000000000..d4a38cdadf6e --- /dev/null +++ b/app-crypt/bestcrypt/files/bcrypt2 @@ -0,0 +1,99 @@ +#!/sbin/runscript +# +# bestcrypt Encrypted File Systems. +# +# Version: 1.2 +# +# Revision: $Id: bcrypt2,v 1.1 2004/01/18 18:52:09 lostlogic Exp $ +# +# Author: Jetico Inc. (support@jetico.com) +# +# Modified by Stefan Tittel (with thanks to steveb) to work around +# the "xargs: environment too large for exec"-error occuring in +# the gentoo 1.4 linux distribution. + +# chkconfig: 2345 85 98 +# description: BestCrypt init script + + +# Source function library. +#. /etc/rc.d/init.d/functions + +# See how we were called. + +KERNEL_VERSION=`uname -r|sed 's/\(.\..\).*/\1/'` + +start() { + ebegin "Initializing BestCrypt" + declare -i status=0 + rm -rf /dev/bcrypt?* 2>/dev/null + if [ $KERNEL_VERSION = "2.2" ]; then + mknod -m 666 /dev/bcrypt0 b 7 128 + mknod -m 666 /dev/bcrypt1 b 7 129 + mknod -m 666 /dev/bcrypt2 b 7 130 + mknod -m 666 /dev/bcrypt3 b 7 131 + mknod -m 666 /dev/bcrypt4 b 7 132 + mknod -m 666 /dev/bcrypt5 b 7 133 + mknod -m 666 /dev/bcrypt6 b 7 134 + mknod -m 666 /dev/bcrypt7 b 7 135 + mknod -m 666 /dev/bcrypt8 b 7 136 + mknod -m 666 /dev/bcrypt9 b 7 137 + mknod -m 666 /dev/bcrypt10 b 7 138 + mknod -m 666 /dev/bcrypt11 b 7 139 + mknod -m 666 /dev/bcrypt12 b 7 140 + mknod -m 666 /dev/bcrypt13 b 7 141 + mknod -m 666 /dev/bcrypt14 b 7 142 + mknod -m 666 /dev/bcrypt15 b 7 143 + else + if [ ! -c /dev/.devfsd ] + then + mknod -m 666 /dev/bcrypt0 b 188 0 + mknod -m 666 /dev/bcrypt1 b 188 1 + mknod -m 666 /dev/bcrypt2 b 188 2 + mknod -m 666 /dev/bcrypt3 b 188 3 + mknod -m 666 /dev/bcrypt4 b 188 4 + mknod -m 666 /dev/bcrypt5 b 188 5 + mknod -m 666 /dev/bcrypt6 b 188 6 + mknod -m 666 /dev/bcrypt7 b 188 7 + mknod -m 666 /dev/bcrypt8 b 188 8 + mknod -m 666 /dev/bcrypt9 b 188 9 + mknod -m 666 /dev/bcrypt10 b 188 10 + mknod -m 666 /dev/bcrypt11 b 188 11 + mknod -m 666 /dev/bcrypt12 b 188 12 + mknod -m 666 /dev/bcrypt13 b 188 13 + mknod -m 666 /dev/bcrypt14 b 188 14 + mknod -m 666 /dev/bcrypt15 b 188 15 + fi + fi + modprobe bc || status=1 + modprobe bc_blowfish || status=1 + modprobe bc_des || status=1 + modprobe bc_gost || status=1 + modprobe bc_twofish || status=1 + modprobe bc_bf448 || status=1 + modprobe bc_bf128 || status=1 + modprobe bc_3des || status=1 + modprobe bc_idea || status=1 + modprobe bc_rijn || status=1 + modprobe bc_cast || status=1 + eend ${status} +} + +stop() { + ebegin "Unmounting encrypted filesystems" + +# The original line causing the "xargs: environment too large for exec error". + # grep BestCrypt /etc/mtab |awk '{print $2}'|xargs -r -n 1 bctool umount + +# The line for which it work's fine now. + for i in $(grep BestCrypt /etc/mtab | awk '{print $2}') ; do bctool umount ${i} ; done + + eend $? + ebegin "Shutting down BestCrypt modules" + for i in `lsmod |egrep "^bc_.*" |awk '{print $1}' `; do + rmmod $i + done + rm -f /dev/bcrypt?* 2>/dev/null + rmmod bc + eend $? +} diff --git a/app-crypt/bestcrypt/files/digest-bestcrypt-1.5_p1 b/app-crypt/bestcrypt/files/digest-bestcrypt-1.5_p1 new file mode 100644 index 000000000000..754ffb599a27 --- /dev/null +++ b/app-crypt/bestcrypt/files/digest-bestcrypt-1.5_p1 @@ -0,0 +1 @@ +MD5 1e53732960b290e2ebdfd705b428d4fb BestCrypt-1.5-1.tar.gz 166553 |