Skip to content
Snippets Groups Projects
Commit ca12e561 authored by micah's avatar micah :speech_balloon:
Browse files

made mktemp a requirement for building backupninja, added autotools variables...

made mktemp a requirement for building backupninja, added autotools variables to substitute the proper binary location and removed bad fall-back when mktemp was not there
parent fd6796ad
Branches
Tags
No related merge requests found
...@@ -7,6 +7,9 @@ version 0.9.6 -- unreleased ...@@ -7,6 +7,9 @@ version 0.9.6 -- unreleased
lib changes lib changes
vserver: vserver:
. added vservers_running function . added vservers_running function
tools
. mktemp is now required to run backupninja, removed less secure
fall-back if mktemp did not exist on the system
handler changes handler changes
dup: dup:
. General cleanup . General cleanup
......
...@@ -36,6 +36,11 @@ if test x$MD5SUM = "xno"; then ...@@ -36,6 +36,11 @@ if test x$MD5SUM = "xno"; then
AC_MSG_ERROR([md5sum is required]) AC_MSG_ERROR([md5sum is required])
fi fi
AC_PATH_PROGS(MKTEMP, mktemp, "no")
if test x$MKTEMPT = "xno"; then
AC_MSG_ERROR([mktemp is required])
fi
AC_CHECK_PROG(ac_cv_have_rpm, rpm, "yes", "no") AC_CHECK_PROG(ac_cv_have_rpm, rpm, "yes", "no")
if test "x$ac_cv_have_rpm" = "xyes"; then if test "x$ac_cv_have_rpm" = "xyes"; then
rpm --define '_topdir /tmp' > /dev/null 2>&1 rpm --define '_topdir /tmp' > /dev/null 2>&1
......
...@@ -35,11 +35,13 @@ keepweekly = 3 ...@@ -35,11 +35,13 @@ keepweekly = 3
keepmonthly = 1 keepmonthly = 1
# directory which contains all the maildirs # directory which contains all the maildirs
# this directory is expected to have subdirectories lettered a-z and
# in each letter subdirectory are the users Maildirs which start with
# those letters
srcdir = /maildir/riseup.net srcdir = /maildir/riseup.net
# the srcdir is expected to contain the following subdirectories. Each
# of these will contain the user's Maildirs which start with these
# letters
srcsubdirs = 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z
# put the backups under this directory # put the backups under this directory
destdir = /crypta/maildir/riseup.net destdir = /crypta/maildir/riseup.net
desthost = kakapo-pn desthost = kakapo-pn
......
...@@ -48,7 +48,7 @@ gaugeBox() { ...@@ -48,7 +48,7 @@ gaugeBox() {
} }
inputBox() { inputBox() {
local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
REPLY= REPLY=
$DIALOG --backtitle "$BACKTITLE" --title "$1" \ $DIALOG --backtitle "$BACKTITLE" --title "$1" \
...@@ -80,7 +80,7 @@ _genericListBox() { ...@@ -80,7 +80,7 @@ _genericListBox() {
local title=$1 local title=$1
local text=$2 local text=$2
shift 2 shift 2
local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
REPLY= REPLY=
$DIALOG $HELP $_DEFAULT --backtitle "$BACKTITLE" --title "$title" \ $DIALOG $HELP $_DEFAULT --backtitle "$BACKTITLE" --title "$title" \
...@@ -133,7 +133,7 @@ textBox() { ...@@ -133,7 +133,7 @@ textBox() {
} }
passwordBox() { passwordBox() {
local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
REPLY= REPLY=
$DIALOG --backtitle "$BACKTITLE" --title "$1" \ $DIALOG --backtitle "$BACKTITLE" --title "$1" \
...@@ -175,7 +175,7 @@ listItem() { ...@@ -175,7 +175,7 @@ listItem() {
## ##
listDisplay() { listDisplay() {
boxtype=$1 boxtype=$1
local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
local label local label
...@@ -221,7 +221,7 @@ formItem() { ...@@ -221,7 +221,7 @@ formItem() {
} }
formDisplay() { formDisplay() {
local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 local temp=$(@MKTEMP@ -t backupninja.XXXXXX) || exit 1
max_length=0 max_length=0
for ((i=0; i < ${#_form_labels[@]} ; i++)); do for ((i=0; i < ${#_form_labels[@]} ; i++)); do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment