diff --git a/COPYRIGHT b/COPYRIGHT new file mode 120000 index 0000000..86c9843 --- /dev/null +++ b/COPYRIGHT @@ -0,0 +1 @@ +cbox-tree.d/usr/share/doc/cryptobox/copyright \ No newline at end of file diff --git a/DEBIAN/conffiles b/DEBIAN/conffiles new file mode 100644 index 0000000..2d6a2af --- /dev/null +++ b/DEBIAN/conffiles @@ -0,0 +1,8 @@ +/etc/cron.d/cryptobox +/etc/cryptobox/cryptobox.conf +/etc/cryptobox/openssl.cnf +/etc/cryptobox/revision +/etc/init.d/cb-network.sh +/etc/init.d/cb-services.sh +/etc/init.d/cb-mount-config.sh +/etc/init.d/cb-finish-boot.sh diff --git a/cbox-tree.d/DEBIAN/control b/DEBIAN/control similarity index 70% rename from cbox-tree.d/DEBIAN/control rename to DEBIAN/control index fa1519c..3b4e6a5 100644 --- a/cbox-tree.d/DEBIAN/control +++ b/DEBIAN/control @@ -3,14 +3,8 @@ Version: 0.3.0-1 Section: base Priority: optional Architecture: all -Depends: bash, sed, coreutils, grep, perl, httpd, httpd-cgi, perl, iptables, sysutils, samba, stunnel, hashalot, libconfig-perl, cryptsetup-luks, dmsetup, cron +Depends: bash (>=2.0), sed (>=4.0), coreutils, grep (>=2.0), perl, httpd-cgi, iptables, sysutils, samba, stunnel, hashalot, libconfig-perl, cryptsetup-luks, dmsetup, cron Maintainer: Lars Kruse -Conffiles: - /etc/cron.d/cryptobox - /etc/cryptobox/cryptobox.conf - /etc/cryptobox/openssl.conf - /etc/cryptobox/revision - Description: Web interface for encrypting fileserver This bundle of scripts and cgis allow you to manage an encrypted harddisk via a web interface. The data is platform independently available diff --git a/cbox-tree.d/usr/share/doc/cryptobox/LICENSE b/LICENSE similarity index 100% rename from cbox-tree.d/usr/share/doc/cryptobox/LICENSE rename to LICENSE diff --git a/cbox-tree.d/etc/issue b/add-ons-tree.d/etc/issue similarity index 100% rename from cbox-tree.d/etc/issue rename to add-ons-tree.d/etc/issue diff --git a/cbox-tree.d/etc/init.d/cb-finish-boot b/cbox-tree.d/etc/init.d/cb-finish-boot.sh similarity index 100% rename from cbox-tree.d/etc/init.d/cb-finish-boot rename to cbox-tree.d/etc/init.d/cb-finish-boot.sh diff --git a/cbox-tree.d/etc/rc3.d/S99cb-finish-boot b/cbox-tree.d/etc/rc3.d/S99cb-finish-boot index b99b58a..0c65854 120000 --- a/cbox-tree.d/etc/rc3.d/S99cb-finish-boot +++ b/cbox-tree.d/etc/rc3.d/S99cb-finish-boot @@ -1 +1 @@ -../init.d/cb-finish-boot \ No newline at end of file +../init.d/cb-finish-boot.sh \ No newline at end of file diff --git a/cbox-tree.d/mnt/cb-etc/.placeholder b/cbox-tree.d/mnt/cb-etc/.placeholder new file mode 100644 index 0000000..9592d47 --- /dev/null +++ b/cbox-tree.d/mnt/cb-etc/.placeholder @@ -0,0 +1 @@ +do not remove this file diff --git a/cbox-tree.d/mnt/crypto/.placeholder b/cbox-tree.d/mnt/crypto/.placeholder new file mode 100644 index 0000000..9592d47 --- /dev/null +++ b/cbox-tree.d/mnt/crypto/.placeholder @@ -0,0 +1 @@ +do not remove this file diff --git a/cbox-tree.d/mnt/crypto/info.txt b/cbox-tree.d/mnt/crypto/info.txt deleted file mode 100644 index b5fc21b..0000000 --- a/cbox-tree.d/mnt/crypto/info.txt +++ /dev/null @@ -1 +0,0 @@ -Hallo diff --git a/cbox-tree.d/usr/share/doc/cryptobox/README.Debian b/cbox-tree.d/usr/share/doc/cryptobox/README.Debian new file mode 100644 index 0000000..94e6669 --- /dev/null +++ b/cbox-tree.d/usr/share/doc/cryptobox/README.Debian @@ -0,0 +1,15 @@ +CryptoBox for Debian + +1) additional dependencies +you need the following packages, which are not (yet) part of the main debian distribution: + * cryptsetup_luks - http://luks.endorphin.org/masses + * clearsilver (perl bindings) - http://www.clearsilver.net/downloads/ + +2) cgi-bin +If you do not use thttpd as your webserver, you should add the cgi-bin path to +your script directory. For apache this would be something like the following: +(file /etc/apache???/conf.d/cryptobox) +ScriptAlias /cryptobox /var/www/cgi-bin/cryptobox.pl + +-- Lars Kruse Wed, 30 Nov 2005 01:05:45 +0100 + diff --git a/cbox-tree.d/usr/share/doc/cryptobox/changelog b/cbox-tree.d/usr/share/doc/cryptobox/changelog deleted file mode 100644 index 89d3f09..0000000 --- a/cbox-tree.d/usr/share/doc/cryptobox/changelog +++ /dev/null @@ -1,27 +0,0 @@ -Version 0.3 - 11/??/02005 - * uses cryptsetup-luks instead of cryptsetup - * bugfix: add /dev/hdd to device scan - * support for usb, scsi and firewire cdrom drive - -Version 0.2.1 - 10/22/02005 - * fixed a critical bug in the initialisation process - * default cipher changed to "aes-cbc-essiv:sha256" (more secure) - * the boot menue (grub) is now protected - * support for usb and firewire harddisks - * new kernel: Linux 2.6.12.6 - * minor language improvements - -Version 0.2 - 10/04/02005 - * first public release - * fully configurable via web interface - * AES encryption via device-mapper - * Samba v3.0.14a-3 - * Linux 2.6.11 - * based on Debian GNU/Linux 3.1 - * documentation languages: - * English - * German - * interface languages: - * English - * German - * Slovenian diff --git a/cbox-tree.d/usr/share/doc/cryptobox/changelog.Debian.gz b/cbox-tree.d/usr/share/doc/cryptobox/changelog.Debian.gz new file mode 100644 index 0000000..938ac74 Binary files /dev/null and b/cbox-tree.d/usr/share/doc/cryptobox/changelog.Debian.gz differ diff --git a/cbox-tree.d/usr/share/doc/cryptobox/changelog.gz b/cbox-tree.d/usr/share/doc/cryptobox/changelog.gz new file mode 100644 index 0000000..b072e75 Binary files /dev/null and b/cbox-tree.d/usr/share/doc/cryptobox/changelog.gz differ diff --git a/cbox-tree.d/usr/share/doc/cryptobox/copyright b/cbox-tree.d/usr/share/doc/cryptobox/copyright index d829ec5..5441f59 100644 --- a/cbox-tree.d/usr/share/doc/cryptobox/copyright +++ b/cbox-tree.d/usr/share/doc/cryptobox/copyright @@ -12,7 +12,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License with your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with the Debian GNU/Linux hello source package as the file COPYING. If not, -write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. +write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +Boston, MA 02110-1301 USA $Id$ diff --git a/scripts/common.sh.inc b/scripts/common.sh.inc index 17fdcfc..e692752 100644 --- a/scripts/common.sh.inc +++ b/scripts/common.sh.inc @@ -26,6 +26,7 @@ function error_die() # the base directory of your local development files ROOT_DIR=$(dirname "$0")/.. +ROOT_DIR=$(cd "$ROOT_DIR"; pwd) # the template (default) configuration directory DEFAULTCONF_DIR="$ROOT_DIR/etc-defaults.d" diff --git a/scripts/debian b/scripts/debian new file mode 100644 index 0000000..519293f --- /dev/null +++ b/scripts/debian @@ -0,0 +1,53 @@ +#!/bin/sh +# +# Copyright (c) 02005 sense.lab +# +# License: This script is distributed under the terms of version 2 +# of the GNU GPL. See the LICENSE file included with the package. +# +# $Id: cbox-build.sh 336 2005-11-29 22:28:28Z lars $ +# +# build a debian package +# + +set -ue + +# include common functions and settings +source $(dirname $0)/common.sh.inc + +######### some settings ########### +DEB_BUILD_DIR=/tmp/cryptobox-debian-$$ +[ -e "$DEB_BUILD_DIR" ] && rm -rf "$DEB_BUILD_DIR" + +DEB_ROOT_DIR=$TEMPLATE_DIR +DEB_CONTROL_DIR=$ROOT_DIR/DEBIAN +DEB_PACKAGE_DIR=$ROOT_DIR/packages + +############# do it ############### + +ACTION=build +[ $# -gt 0 ] && ACTION=$1 && shift + +case "$ACTION" in + build ) + # check for uid=0 (necessary for building) + [ "$(id -u)" -ne 0 ] && echo "this script ($0) has to be called as root" >&2 && exit 1 + svn export "$DEB_ROOT_DIR" "$DEB_BUILD_DIR" + svn export "$DEB_CONTROL_DIR" "$DEB_BUILD_DIR/DEBIAN" + chown -R root. "$DEB_BUILD_DIR/usr/share/doc/" + dpkg-deb --build "$DEB_BUILD_DIR" "$DEB_PACKAGE_DIR" + rm -rf "$DEB_BUILD_DIR" + ;; + check ) + PACKAGE_FILE=$(find "$DEB_PACKAGE_DIR" -type f -name "cryptobox*" | grep "\.deb$" | sort -n | tail -1) + if [ -z "$PACKAGE_FILE" ] + then echo "no debian package found in $DEB_PACKAGE_DIR" + else lintian "$PACKAGE_FILE" + fi + ;; + * ) + echo "Syntax: $(basename $0) [ build | check help ]" + echo + ;; + esac +