init python rewrite
This commit is contained in:
parent
d0029c26c7
commit
e0ec6cb9a4
126 changed files with 15064 additions and 0 deletions
6
pythonrewrite/debian/README.Debian
Normal file
6
pythonrewrite/debian/README.Debian
Normal file
|
@ -0,0 +1,6 @@
|
|||
CryptoBox for Debian - installation notes
|
||||
|
||||
be aware of two things:
|
||||
1) you need cryptsetup with luks support (for now only in unstable)
|
||||
2) the debian perl-clearsilver package is broken (at least until April 02006)
|
||||
|
3
pythonrewrite/debian/changelog
Normal file
3
pythonrewrite/debian/changelog
Normal file
|
@ -0,0 +1,3 @@
|
|||
cryptobox (0.3.0-1) unstable; urgency=low
|
||||
* Initial release
|
||||
-- Lars Kruse <devel@sumpfralle.de> Wed, 10 May 2006 20:26:47 +0100
|
19
pythonrewrite/debian/control
Normal file
19
pythonrewrite/debian/control
Normal file
|
@ -0,0 +1,19 @@
|
|||
Source: cryptobox
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Lars Kruse <devel@sumpfralle.de>
|
||||
Build-Depends: debhelper (>>3.0.0), dpatch, gcc (>=2.95)
|
||||
Standards-Version: 3.6.2
|
||||
|
||||
Package: cryptobox
|
||||
Architecture: any
|
||||
Depends: bash (>=2.0), sed (>=4.0), coreutils, grep (>=2.0), perl, httpd-cgi, hashalot, libconfigfile-perl, cryptsetup (>=20050111), dmsetup, pmount, initscripts, e2fsprogs (>= 1.27), adduser
|
||||
Recommends: perl-clearsilver
|
||||
Suggests: cron, samba
|
||||
Description: Web interface for an 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
|
||||
via samba file shares.
|
||||
Even non-technical users are able to encrypt their private data with the
|
||||
CryptoBox.
|
||||
|
27
pythonrewrite/debian/copyright
Normal file
27
pythonrewrite/debian/copyright
Normal file
|
@ -0,0 +1,27 @@
|
|||
This package was debianized by Lars Kruse <devel@sumpfralle.de> on
|
||||
Wed, May 10 21:23:16 CEST 2006
|
||||
|
||||
It was downloaded from http://cryptobox.org/
|
||||
|
||||
Upstream Authors:
|
||||
sense.lab development <devel@systemausfall.org>
|
||||
|
||||
Copyright:
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the
|
||||
Free Software Foundation, Inc.,
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
On Debian GNU/Linux systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
|
12
pythonrewrite/debian/cryptobox.default
Normal file
12
pythonrewrite/debian/cryptobox.default
Normal file
|
@ -0,0 +1,12 @@
|
|||
# boot configuration file for the CryptoBox
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# the default setup of the cryptobox is complete inactivity
|
||||
|
||||
# set to "1" to turn off the cryptobox - otherwise "0"
|
||||
NO_START=1
|
||||
|
||||
# change the default configuration file if necessary
|
||||
#CONF_FILE=/etc/cryptobox/cryptobox.conf
|
||||
|
54
pythonrewrite/debian/cryptobox.init
Executable file
54
pythonrewrite/debian/cryptobox.init
Executable file
|
@ -0,0 +1,54 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# runlevel script of the cryptobox package
|
||||
#
|
||||
# Copyright (c) 02006, senselab
|
||||
#
|
||||
# see LICENSE file in this package for details
|
||||
#
|
||||
|
||||
# check if the cryptobox is installed
|
||||
[ -e "/usr/lib/cryptobox/cbox-manage.sh" ] || exit 0
|
||||
|
||||
# read the default setting file, if it exists
|
||||
[ -e /etc/default/cryptobox ] && source /etc/default/cryptobox
|
||||
|
||||
# startup switch defaults to zero (enabled)
|
||||
NO_START=${NO_START:-0}
|
||||
|
||||
#if [ "$NO_START" = "1" ]
|
||||
# then [ $# -eq 0 ] && exit 0
|
||||
# [ "$1" = "status" ] && exit 1
|
||||
# [ "$1" = "stop" ] && exit 0
|
||||
# echo "CryptoBox is disabled by default"
|
||||
# exit 0
|
||||
# fi
|
||||
|
||||
# set CONF_FILE to default value, if not configured in /etc/default/cryptobox
|
||||
CONF_FILE=${CONF_FILE:-/etc/cryptobox/cryptobox.conf}
|
||||
|
||||
# parse config file
|
||||
if [ -e "$CONF_FILE" ]
|
||||
then source "$CONF_FILE"
|
||||
else echo "[$(basename $0)] - configuration file ($CONF_FILE) not found!" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start )
|
||||
# nothing to be done
|
||||
;;
|
||||
stop )
|
||||
# unmount all active containers
|
||||
"/usr/lib/cryptobox/cbox-manage.sh" umount_all
|
||||
;;
|
||||
force-reload | restart )
|
||||
"$0" stop
|
||||
"$0" start
|
||||
;;
|
||||
* )
|
||||
echo "invalid action specified - try { start | stop | restart }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
4
pythonrewrite/debian/dirs
Normal file
4
pythonrewrite/debian/dirs
Normal file
|
@ -0,0 +1,4 @@
|
|||
etc/cryptobox
|
||||
etc/default
|
||||
etc/init.d
|
||||
usr/lib/cgi-bin
|
1
pythonrewrite/debian/links
Normal file
1
pythonrewrite/debian/links
Normal file
|
@ -0,0 +1 @@
|
|||
/usr/share/cryptobox/html /var/www/cryptobox-misc
|
0
pythonrewrite/debian/patches/00list
Normal file
0
pythonrewrite/debian/patches/00list
Normal file
43
pythonrewrite/debian/postinst
Executable file
43
pythonrewrite/debian/postinst
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh
|
||||
|
||||
# read the default setting file, if it exists
|
||||
[ -e /etc/default/cryptobox ] && . /etc/default/cryptobox
|
||||
|
||||
# set CONF_FILE to default value, if not configured in /etc/default/cryptobox
|
||||
CONF_FILE=${CONF_FILE:-/etc/cryptobox/cryptobox.conf}
|
||||
|
||||
# parse config file
|
||||
if test -e "$CONF_FILE"
|
||||
then . "$CONF_FILE"
|
||||
# create mount and config directories with appropriate permissions
|
||||
test ! -e "$LOG_FILE" && touch "$LOG_FILE" && chown "$CRYPTOBOX_USER" "$LOG_FILE"
|
||||
fi
|
||||
|
||||
if getent passwd "$CRYPTOBOX_USER" 2>/dev/null >/dev/null
|
||||
then # do nothing - the user already exists
|
||||
true
|
||||
else # create cryptobox user
|
||||
echo "Creating new user '$CRYPTOBOX_USER' ..."
|
||||
USER_HOME=/var/lib/cryptobox
|
||||
adduser --system --group --home "$USER_HOME" cryptobox
|
||||
# add the user to the group "plugdev" (necessary for pmount)
|
||||
adduser cryptobox plugdev
|
||||
cp -r "$CONFIG_DEFAULTS_DIR" "$USER_HOME/config"
|
||||
mkdir "$USER_HOME/mnt"
|
||||
chown -R ${CRYPTOBOX_USER}: "$USER_HOME"
|
||||
# only members of the cryptobox group may access the user directory
|
||||
chmod 750 "$USER_HOME"
|
||||
# no one may look into the config directory (protect init passwords)
|
||||
chmod 700 "$USER_HOME/config"
|
||||
fi
|
||||
|
||||
# set permissions for suid wrappers
|
||||
chown root:$CRYPTOBOX_USER "/usr/lib/cryptobox/cryptobox_root_wrapper"
|
||||
chmod 4750 "/usr/lib/cryptobox/cryptobox_root_wrapper"
|
||||
chown $CRYPTOBOX_USER: "/usr/lib/cgi-bin/cryptobox"
|
||||
chmod 6755 "/usr/lib/cgi-bin/cryptobox"
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
true
|
||||
|
12
pythonrewrite/debian/postrm
Executable file
12
pythonrewrite/debian/postrm
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test "$1" = "purge" && getent passwd cryptobox 2>/dev/null >/dev/null \
|
||||
&& test "$(cd ~cryptobox;pwd)" = /var/lib/cryptobox
|
||||
then echo "Removing user 'cryptobox' ..."
|
||||
userdel -r cryptobox
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
# return without error
|
||||
true
|
98
pythonrewrite/debian/rules
Executable file
98
pythonrewrite/debian/rules
Executable file
|
@ -0,0 +1,98 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This is the debhelper compatibility version to use.
|
||||
export DH_COMPAT=4
|
||||
|
||||
# necessary for dpatch
|
||||
.NOTPARALLEL:
|
||||
|
||||
DEB_BUILD_DIR=$(CURDIR)/debian/cryptobox
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp: patch
|
||||
dh_testdir
|
||||
@# PUT SOMETHING HERE
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
$(MAKE) build PREFIX=/usr
|
||||
touch build-stamp
|
||||
|
||||
clean: clean-patched unpatch
|
||||
|
||||
clean-patched:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
$(MAKE) clean
|
||||
rm -f build-stamp configure-stamp
|
||||
dh_clean
|
||||
|
||||
patch: patch-stamp
|
||||
patch-stamp:
|
||||
dpatch apply-all
|
||||
touch patch-stamp
|
||||
|
||||
unpatch:
|
||||
dpatch deapply-all
|
||||
rm -rf patch-stamp debian/patched
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
$(MAKE) install PREFIX=$(DEB_BUILD_DIR)/usr
|
||||
install -c -m 644 build_dir/etc/cryptobox.conf $(DEB_BUILD_DIR)/etc/cryptobox/
|
||||
install -c -m 644 build_dir/etc/distribution.conf $(DEB_BUILD_DIR)/etc/cryptobox/
|
||||
install -c -m 755 bin/cryptobox_cgi_wrapper $(DEB_BUILD_DIR)/usr/lib/cgi-bin/cryptobox
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
# dh_install
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_perl
|
||||
# dh_python
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure clean-patched patch patch-stamp unpatch
|
Loading…
Add table
Add a link
Reference in a new issue