added subversion's "Id" and "Revision" tags to most files
removed manual extraction of revision from cbox-build.sh
This commit is contained in:
parent
acea0fbc6b
commit
fcd86832f1
33 changed files with 59 additions and 22 deletions
1
cbox-tree.d/etc/cryptobox/revision
Normal file
1
cbox-tree.d/etc/cryptobox/revision
Normal file
|
@ -0,0 +1 @@
|
|||
$Revision$
|
1
cbox-tree.d/etc/issue
Normal file
1
cbox-tree.d/etc/issue
Normal file
|
@ -0,0 +1 @@
|
|||
CryptoBox r$Revision$
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# this script does EVERYTHING
|
||||
# all other scripts are only frontends :)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# a simple script to check, if there was no smb traffic for the specified
|
||||
# number of minutes - then it unmounts the crypto partition
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# FOR DEVELOPMENT ONLY!
|
||||
#
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# this script is part of the building process of the cryptobox
|
||||
# the "normal" action is necessary for every cryptobox (development & release)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# this script is part of the boot process of a developer's cryptobox
|
||||
#
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# set up the firewall of the cryptobox
|
||||
#
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# this script creates the stunnel certificate for https
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
$Id$
|
||||
|
||||
You may want to translate the CryptoBox into another language?
|
||||
Most welcome!
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
$Id$
|
||||
|
||||
Here are some minor fixes that have to be done. Thanks a lot for your
|
||||
help!
|
||||
|
||||
slovenian:
|
||||
|
||||
################################ slovenian ##################################
|
||||
|
||||
- SuccessMessage.InitRunning contains only the first sentence
|
||||
- SuccessMessage.ReBoot: add a hint for automatic redirection (3rd sentence)
|
||||
- EmptyCryptoPassword: change 'Text' accordingly to English string.
|
||||
|
@ -9,4 +13,4 @@ slovenian:
|
|||
Below are some smaller changes in English sentences. Someone may change it accordingly.
|
||||
- MountFailed: add 'Pleasy try again' to the end of the string.
|
||||
- UmountFailed: changed 'Also close all unclean programs' to 'Close all unclean programs'.
|
||||
- InitRunning: changed 'You may configure it now. You may activate the encrypted filesystem in a few minutes.' to 'You may configure it now and activate the encrypted filesystem in a few minutes.'
|
||||
- InitRunning: changed 'You may configure it now. You may activate the encrypted filesystem in a few minutes.' to 'You may configure it now and activate the encrypted filesystem in a few minutes.'
|
||||
|
|
|
@ -2,6 +2,8 @@ Lang {
|
|||
|
||||
Name = deutsch
|
||||
|
||||
Status = $Id$
|
||||
|
||||
Title {
|
||||
Top = Die CryptoBox
|
||||
Slogan = ... und 1984 war gestern!
|
||||
|
|
|
@ -2,6 +2,8 @@ Lang {
|
|||
|
||||
Name = english
|
||||
|
||||
Status = $Id$
|
||||
|
||||
Title {
|
||||
Top = The CryptoBox
|
||||
Slogan = Privacy for the rest of us.
|
||||
|
|
|
@ -2,6 +2,8 @@ Lang {
|
|||
|
||||
Name = slovenščina
|
||||
|
||||
Status = $Id$
|
||||
|
||||
Title {
|
||||
Top = The CryptoBox
|
||||
Slogan = Privatnost v vsako vas!
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<div id="config">
|
||||
<h1><?cs var:Lang.Title.Config ?></h1>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<div id="doc">
|
||||
|
||||
<?cs include:Settings.DocDir + '/' + Settings.DocLang + '/' + Data.Doc.Page + '.html' ?>
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<!-- what else would you expect here? -->
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<?cs call:error(Data.Error) ?>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<?cs if:Data.Redirect ?>
|
||||
<p class="warning"><a href="<?cs if:Data.Redirect.URL ?><?cs var:Data.Redirect.URL ?><?cs else ?><?cs call:getSelfURL('action=' + Data.Redirect.Action, '') ?><?cs /if ?>"><?cs var:Lang.Text.RedirectNote ?></a></p>
|
||||
<?cs /if ?>
|
||||
|
@ -23,5 +25,7 @@ Data.Status.IP=<?cs var:Data.Status.IP ?>
|
|||
Data.Status.Mounted=<?cs var:Data.Status.Mounted ?>
|
||||
CBOX-STATUS-end -->
|
||||
|
||||
<!-- $Revision$ -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<h1><?cs var:Lang.Title.Init ?></h1>
|
||||
|
||||
<div class="init">
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<?cs def:warning(warnname) ?><?cs
|
||||
each:item = Lang.WarningMessage ?><?cs
|
||||
if:(name(item) == warnname)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<?cs include:Settings.TemplateDir + '/macros.cs' ?>
|
||||
<?cs include:Settings.TemplateDir + '/header.cs' ?>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<h1><?cs var:Lang.Title.Mount ?></h1>
|
||||
|
||||
<div align="center">
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<!-- mounting possible? -->
|
||||
<?cs if:((Data.Status.Config == 1) && (Data.Status.InitRunning == 0)) ?>
|
||||
<?cs if:(Data.Status.Mounted == 1) ?>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<div id="log">
|
||||
|
||||
<h1><?cs var:Lang.Title.Log ?></h1>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<h1><?cs var:Lang.Title.ShutDown ?></h1>
|
||||
|
||||
<div align="center">
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<h1><?cs var:Lang.Title.Status ?></h1>
|
||||
<p><?cs if:(Data.Status.Mounted == 1) ?><?cs var:Lang.Text.CryptoIsActive ?>
|
||||
<?cs else ?><?cs var:Lang.Text.CryptoIsDown ?><?cs /if ?></p>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<h1><?cs var:Lang.Title.Umount ?></h1>
|
||||
|
||||
<div align="center">
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/perl
|
||||
# $Id$
|
||||
#
|
||||
# web interface of the CryptoBox
|
||||
#
|
||||
|
|
|
@ -214,8 +214,6 @@ arch = amd64
|
|||
|
||||
# /etc/modules =
|
||||
|
||||
/etc/issue = This is the CryptoBox!
|
||||
|
||||
/etc/profile = export TERM=vt100
|
||||
|
||||
######################################################################
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# managing our work at the cryptobox
|
||||
#
|
||||
|
@ -88,19 +89,9 @@ function configure_cb()
|
|||
|
||||
echo "Copying files to the box ..."
|
||||
[ -e "$TMP_DIR" ] && rm -rf "$TMP_DIR"
|
||||
cp -dr "$TEMPLATE_DIR/." "$TMP_DIR"
|
||||
rm -rf `find "$TMP_DIR" -type d -name ".svn"`
|
||||
cp -dr "$TMP_DIR/." "$IMAGE_DIR"
|
||||
rm -rf "$TMP_DIR"
|
||||
svn export --force "$TEMPLATE_DIR/." "$IMAGE_DIR"
|
||||
|
||||
echo "Configuring the cryptobox ..."
|
||||
# "harden" removes /etc/issue ...
|
||||
if [ -e "$IMAGE_DIR/etc/issue" ]
|
||||
then sed -i "s/^Version:/Revision:/" "$IMAGE_DIR/etc/issue"
|
||||
sed -i "s/^Revision:.*/Revision: $(fetch_revision)/" "$IMAGE_DIR/etc/issue"
|
||||
else echo "Revision: $(fetch_revision)" >"$IMAGE_DIR/etc/issue"
|
||||
fi
|
||||
fetch_revision >"$IMAGE_DIR/etc/cryptobox/revision"
|
||||
chroot "$IMAGE_DIR" "$CHROOT_START" /usr/lib/cryptobox/configure-cryptobox.sh normal
|
||||
|
||||
# source local configure scripts
|
||||
|
@ -115,13 +106,6 @@ function configure_cb()
|
|||
}
|
||||
|
||||
|
||||
function fetch_revision()
|
||||
{
|
||||
svn -R info 2>&1 | grep ^Revision| cut -f2 -d " " | sort | tail -1 \
|
||||
|| echo "unknown release"
|
||||
}
|
||||
|
||||
|
||||
function blanknburn_cdrw()
|
||||
{
|
||||
cdrecord -v dev=$CDWRITER blank=fast
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
# managing our work at the cryptobox
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue