From 84f056169bddc92b3b85a3924782b1b1e66a4a0d Mon Sep 17 00:00:00 2001 From: lars Date: Wed, 30 Nov 2005 01:10:32 +0000 Subject: [PATCH] debianisation finished --- COPYRIGHT | 1 + DEBIAN/conffiles | 8 +++ {cbox-tree.d/DEBIAN => DEBIAN}/control | 8 +-- .../share/doc/cryptobox/LICENSE => LICENSE | 0 {cbox-tree.d => add-ons-tree.d}/etc/issue | 0 .../{cb-finish-boot => cb-finish-boot.sh} | 0 cbox-tree.d/etc/rc3.d/S99cb-finish-boot | 2 +- cbox-tree.d/mnt/cb-etc/.placeholder | 1 + cbox-tree.d/mnt/crypto/.placeholder | 1 + cbox-tree.d/mnt/crypto/info.txt | 1 - .../usr/share/doc/cryptobox/README.Debian | 15 +++++ cbox-tree.d/usr/share/doc/cryptobox/changelog | 27 --------- .../share/doc/cryptobox/changelog.Debian.gz | Bin 0 -> 156 bytes .../usr/share/doc/cryptobox/changelog.gz | Bin 0 -> 465 bytes cbox-tree.d/usr/share/doc/cryptobox/copyright | 4 +- scripts/common.sh.inc | 1 + scripts/debian | 53 ++++++++++++++++++ 17 files changed, 84 insertions(+), 38 deletions(-) create mode 120000 COPYRIGHT create mode 100644 DEBIAN/conffiles rename {cbox-tree.d/DEBIAN => DEBIAN}/control (70%) rename cbox-tree.d/usr/share/doc/cryptobox/LICENSE => LICENSE (100%) rename {cbox-tree.d => add-ons-tree.d}/etc/issue (100%) rename cbox-tree.d/etc/init.d/{cb-finish-boot => cb-finish-boot.sh} (100%) create mode 100644 cbox-tree.d/mnt/cb-etc/.placeholder create mode 100644 cbox-tree.d/mnt/crypto/.placeholder delete mode 100644 cbox-tree.d/mnt/crypto/info.txt create mode 100644 cbox-tree.d/usr/share/doc/cryptobox/README.Debian delete mode 100644 cbox-tree.d/usr/share/doc/cryptobox/changelog create mode 100644 cbox-tree.d/usr/share/doc/cryptobox/changelog.Debian.gz create mode 100644 cbox-tree.d/usr/share/doc/cryptobox/changelog.gz create mode 100644 scripts/debian 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 0000000000000000000000000000000000000000..938ac74d85ff8cb9d29002d2ebc2694bc4ca7185 GIT binary patch literal 156 zcmV;N0Av3jiwFov_KZUU17m1mZf9j|Z)Yw|QD+M;*K~o)|gto1pp6aG+nuh|uKw@H0 z;eClrF)gJ{X9nXq5^C_nRVt(VG!EwN2&gsGn$~)fAbOC{C<0dKGK|x*_z+?6K?wS< zl3)YqGz=!tMIKN(_!)FCD;34-hr+IEv&N?Gy1yEQk~E-bG0`ZrS%zqYIFWqh46R{| zxx*5?BIaDBX~1M7D6>oyKuzdI+SJ}4ajAM$3ev1cp0Im(yn)-Hg-c&idz?p(0dxRgxr8nrR$EuZA&d$b3 z2P;Ywj$&>WmX(A)@~0{7GivUyXB0TXl6q?t1hRxo+j+9~9h7&28B@UC608Q{LcNSG zQW#KexNpxVAh&Hhb7aiE)N;mUp^z~roO^`zP&HM1kL4ksU3qA?8zQ`NaU6W7-k^h* zpTFuIbEr0e_9|sV`@a5I +# +# 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 +