~ubuntu-branches/debian/jessie/arb/jessie

« back to all changes in this revision

Viewing changes to .pc/tmpfile_CVE-2008-5378.patch/SH/arb_panic

  • Committer: Package Import Robot
  • Author(s): Elmar Pruesse, Andreas Tille, Elmar Pruesse
  • Date: 2014-09-02 15:15:06 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140902151506-jihq58b3iz342wif
Tags: 6.0.2-1
[ Andreas Tille ]
* New upstream version
  Closes: #741890
* debian/upstream -> debian/upstream/metadata
* debian/control:
   - Build-Depends: added libglib2.0-dev
   - Depends: added mafft, mrbayes
* debian/rules
   - Add explicite --remove-section=.comment option to manual strip call
* cme fix dpkg-control
* arb-common.dirs: Do not create unneeded lintian dir
* Add turkish debconf translation (thanks for the patch to Mert Dirik
  <mertdirik@gmail.com>)
  Closes: #757497

[ Elmar Pruesse ]
* patches removed:
   - 10_config.makefiles.patch,
     80_no_GL.patch
       removed in favor of creating file from config.makefile.template via 
       sed in debian/control
   - 20_Makefile_main.patch
       merged upstream
   - 21_Makefiles.patch
       no longer needed
   - 30_tmpfile_CVE-2008-5378.patch: 
       merged upstream
   - 50_fix_gcc-4.8.patch:
       merged upstream
   - 40_add_libGLU.patch:
       libGLU not needed for arb_ntree)
   - 60_use_debian_packaged_raxml.patch:
       merged upstream
   - 70_hardening.patch
       merged upstream
   - 72_add_math_lib_to_linker.patch
       does not appear to be needed
* patches added:
   - 10_upstream_r12793__show_db_load_progress:
       backported patch showing progress while ARB is loading a database
       (needed as indicator/splash screen while ARB is launching)
   - 20_upstream_r12794__socket_permissions:
       backported security fix
   - 30_upstream_r12814__desktop_keywords:
       backported add keywords to desktop (fixes lintian warning)
   - 40_upstream_r12815__lintian_spelling:
       backported fix for lintian reported spelling errors
   - 50_private_nameservers
       change configuration to put nameservers into users home dirs
       (avoids need for shared writeable directory)
   - 60_use_debian_phyml
       use phyml from debian package for both interfaces in ARB
* debian/rules:
   - create config.makefile from override_dh_configure target
   - use "make tarfile" in override_dh_install
   - remove extra cleaning not needed for ARB 6
   - use "dh_install --list-missing" to avoid missing files
   - added override_dh_fixperms target
* debian/control:
   - added libarb-dev package
   - Depends: added phyml, xdg-utils
   - Suggests: removed phyml
   - fix lintian duplicate-short-description (new descriptions)
* debian/*.install:
   - "unrolled" confusing globbing to select files
   - pick files from debian/tmp
   - moved all config files to /etc/arb
* debian/arb-common.templates: updated
* scripts:
   - removed arb-add-pt-server
   - launch-wrapper: 
     - only add demo.arb to newly created $ARBUSERDATA
     - pass commandline arguments through bin/arb wrapper
   - preinst: removing old PT server index files on upgrade from 5.5*
   - postinst: set setgid on shared PT dir
* rewrote arb.1 manfile
* added file icon for ARB databases
* using upstream arb_tcp.dat

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
umask 066 # user read/write
4
 
 
5
 
seperator() {
6
 
    echo "*************************************** $*"
7
 
}
8
 
 
9
 
err () {
10
 
    seperator ERROR 1>&2
11
 
    echo "`basename $0`: $@" 1>&2
12
 
    exit 1
13
 
}
14
 
 
15
 
 
16
 
chooser="/tmp/arb_pids_${USER}_*"
17
 
 
18
 
seperator PANIC
19
 
echo "  This Module tries to save a running database"
20
 
echo "  There may be more than one database server (ARB_NT):"
21
 
echo "          --------------------------------"
22
 
 
23
 
for i in $chooser ; do
24
 
    /bin/echo "             - >" `ls $i` "<";
25
 
done
26
 
echo "          --------------------------------"
27
 
 
28
 
seperator
29
 
echo "Please choose one line and enter the rightmost number"
30
 
 
31
 
read ARB_PID
32
 
if [ ! -f /tmp/arb_pids_${USER}_${ARB_PID} ]; then
33
 
    err "Incorrect Choice"
34
 
fi
35
 
 
36
 
seperator
37
 
echo "Please enter full path (to save DB):"
38
 
read FILE
39
 
 
40
 
panicfile="/tmp/arb_panic_${USER}_${ARB_PID}"
41
 
rm -f $panicfile
42
 
echo "$FILE" >$panicfile
43
 
ok=false
44
 
for i in `cat /tmp/arb_pids_${USER}_${ARB_PID}`; do
45
 
    echo "[Sending SIGHUP to pid $i]"
46
 
    if kill -HUP $i 2>/dev/null; then
47
 
        ok=true
48
 
        echo "[Process $i accepted HUP]"
49
 
        break
50
 
    fi
51
 
done
52
 
 
53
 
if [ "$ok" = "false" ]; then
54
 
    err "Sorry could not find a running server"
55
 
fi
56
 
seperator
57
 
echo "Wait until database is saved (or press <ctrl-c> to abort)"
58
 
while [ -f $panicfile ]; do
59
 
    echo "[waiting]"
60
 
    sleep 1
61
 
    if [ -f $panicfile] ; then
62
 
        sleep 1
63
 
        if [ -f $panicfile] ; then
64
 
            sleep 1
65
 
            if [ -f $panicfile] ; then
66
 
                sleep 1
67
 
                if [ -f $panicfile] ; then
68
 
                    sleep 1        
69
 
                fi
70
 
            fi
71
 
        fi
72
 
    fi
73
 
done
74
 
 
75
 
seperator
76
 
echo "enter 'kill'    if you want to kill the server and its clients"
77
 
echo "enter 'killall' if you want to kill ALL servers and clients"
78
 
 
79
 
read ki
80
 
 
81
 
if [ "$ki" = "kill" ] ; then
82
 
    echo "[Sending SIGTERM to pid $i]"
83
 
    kill -TERM $i
84
 
fi
85
 
if [ "$ki" = "killall" ] ; then
86
 
    arb_clean
87
 
fi