diff options
author | Brandon Low <lostlogic@gentoo.org> | 2002-11-14 02:09:14 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2002-11-14 02:09:14 +0000 |
commit | 7b182eca1ca9c250abd6729c7d2ad173107e6b14 (patch) | |
tree | 41170855fa3dd1e8a6660ab4279c25e97cec0fad /app-crypt/bestcrypt | |
parent | added a new testing revision with support for gtk2 (diff) | |
download | historical-7b182eca1ca9c250abd6729c7d2ad173107e6b14.tar.gz historical-7b182eca1ca9c250abd6729c7d2ad173107e6b14.tar.bz2 historical-7b182eca1ca9c250abd6729c7d2ad173107e6b14.zip |
new package, pay, see changelog and license for more info
Diffstat (limited to 'app-crypt/bestcrypt')
-rw-r--r-- | app-crypt/bestcrypt/ChangeLog | 11 | ||||
-rw-r--r-- | app-crypt/bestcrypt/bestcrypt-1.2-r2.ebuild | 59 | ||||
-rw-r--r-- | app-crypt/bestcrypt/files/bcrypt | 90 | ||||
-rw-r--r-- | app-crypt/bestcrypt/files/digest-bestcrypt-1.2-r2 | 1 |
4 files changed, 161 insertions, 0 deletions
diff --git a/app-crypt/bestcrypt/ChangeLog b/app-crypt/bestcrypt/ChangeLog new file mode 100644 index 000000000000..88b2e66198f8 --- /dev/null +++ b/app-crypt/bestcrypt/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-crypt/bestcrypt +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/ChangeLog,v 1.1 2002/11/14 02:09:14 lostlogic Exp $ + +*bestcrypt-1.2-r2 (13 Nov 2002) + + 13 Nov 2002; Brandon Low <lostlogic@gentoo.org> ; * : + + Added new package. This is a PAY LICENSE encryption package from + Jetico, Inc. Please read and understand the license before using + this software. 30 Day Demo begins when you download and merge. diff --git a/app-crypt/bestcrypt/bestcrypt-1.2-r2.ebuild b/app-crypt/bestcrypt/bestcrypt-1.2-r2.ebuild new file mode 100644 index 000000000000..ec1f93de2dc0 --- /dev/null +++ b/app-crypt/bestcrypt/bestcrypt-1.2-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/bestcrypt-1.2-r2.ebuild,v 1.1 2002/11/14 02:09:14 lostlogic Exp $ + +MY_PN="bcrypt" +MY_PV="`echo ${PVR}|sed -e s:-r:-:`" +KEYWORDS="~x86" +SRC_URI="http://www.jetico.com/linux/BestCrypt-${MY_PV}.tar.gz" +HOMEPAGE="http://www.jetico.com" +DESCRIPTION="Transparent filesystem encryption" +S=${WORKDIR}/${MY_PN} +LICENSE="bestcrypt" +SLOT="0" +DEPEND="virtual/linux-sources" + +src_unpack() { + unpack ${A} + for file in `find . -type f -iname Makefile*`;do + mv ${file} ${file}.orig + sed -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}.orig > ${file} + + done +} + +src_compile() { + emake +} + +src_install() { + exeinto /etc/rc.d/init.d + doexe ${FILESDIR}/bcrypt + dodir /usr/bin \ + /etc/init.d \ + /etc/rc.d/rc0.d \ + /etc/rc.d/rc1.d \ + /etc/rc.d/rc2.d \ + /etc/rc.d/rc3.d \ + /etc/rc.d/rc4.d \ + /etc/rc.d/rc5.d \ + /etc/rc.d/rc6.d \ + /etc/rc0.d \ + /etc/rc1.d \ + /etc/rc2.d \ + /etc/rc3.d \ + /etc/rc4.d \ + /etc/rc5.d \ + /etc/rc6.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 + doexe ${FILESDIR}/bcrypt + rm -rf ${D}/etc/rc*.d +} diff --git a/app-crypt/bestcrypt/files/bcrypt b/app-crypt/bestcrypt/files/bcrypt new file mode 100644 index 000000000000..f8e0f90f2ca9 --- /dev/null +++ b/app-crypt/bestcrypt/files/bcrypt @@ -0,0 +1,90 @@ +#!/sbin/runscript +# +# bestcrypt Encrypted File Systems. +# +# Version: 1.2 +# +# Revision: $Id: bcrypt,v 1.1 2002/11/14 02:09:14 lostlogic Exp $ +# +# Author: Jetico Inc. (support@jetico.com) +# + +# 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 + insmod bc -qs || status=1 + insmod bc_blowfish -qs || status=1 + insmod bc_des -qs || status=1 + insmod bc_gost -qs || status=1 + insmod bc_twofish -qs || status=1 + insmod bc_bf448 -qs || status=1 + insmod bc_bf128 -qs || status=1 + insmod bc_3des -qs || status=1 + insmod bc_idea -qs || status=1 + insmod bc_rijn -qs || status=1 + insmod bc_cast -qs || status=1 + eend ${status} +} + +stop() { + ebegin "Unmounting encrypted filesystems" + grep BestCrypt /etc/mtab |awk '{print $2}'|xargs -r -n 1 bctool umount + 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.2-r2 b/app-crypt/bestcrypt/files/digest-bestcrypt-1.2-r2 new file mode 100644 index 000000000000..711c7e97101f --- /dev/null +++ b/app-crypt/bestcrypt/files/digest-bestcrypt-1.2-r2 @@ -0,0 +1 @@ +MD5 2314dac51bd902455754afa7fc1cc37a BestCrypt-1.2-2.tar.gz 160143 |