Subversion Repositories vgwhois

Rev

Rev 6 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 11
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
#
3
#
4
#  VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois)
4
#  VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois)
5
#  Installer / Uninstaller
5
#  Installer / Uninstaller
6
#
6
#
7
#  (c) 2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
7
#  (c) 2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
8
#
8
#
9
#  License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
9
#  License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
Line 20... Line 20...
20
fi
20
fi
21
 
21
 
22
# --- STEP 1: Install required packages
22
# --- STEP 1: Install required packages
23
 
23
 
24
# Required for the program itself:
24
# Required for the program itself:
25
#  - perl (used by gwhois main program. used by 6to4 and Teredo subprogram) 
25
#  - perl (used by vgwhois main program. used by 6to4 and Teredo subprogram) 
26
#  - libwww-perl (cpan LWP::Simple; used by gwhois main program) 
26
#  - libwww-perl (cpan LWP::Simple; used by vgwhois main program) 
27
#  - libnet-libidn-perl (cpan Net::LibIDN; used by gwhois main program) 
27
#  - libnet-libidn-perl (cpan Net::LibIDN; used by vgwhois main program) 
28
#  - (commented out) libencode-detect-perl (cpan Encode::Detect; used by gwhois main program)
28
#  - (commented out) libencode-detect-perl (cpan Encode::Detect; used by vgwhois main program)
29
#  - curl (used by some parts of the gwhois main program. used by pattern generator and subprograms) 
29
#  - curl (used by some parts of the vgwhois main program. used by pattern generator and subprograms) 
30
#  - lynx-cur (used by some parts of the gwhois main program) 
30
#  - lynx-cur (used by some parts of the vgwhois main program)
31
#  - libnet-ip-perl (cpan Net::IP; used for IPv6 interpretation by Teredo subprogram and gwhois main program) 
31
#  - libnet-ip-perl (cpan Net::IP; used for IPv6 interpretation by Teredo subprogram and vgwhois main program)
32
#  - libnet-dns-perl (cpan Net::DNS; used by Teredo subprogram) 
32
#  - libnet-dns-perl (cpan Net::DNS; used by Teredo subprogram)
33
#  - libmath-bigint-gmp-perl (cpan Math::BigInt; used for IPv6 masking by gwhois main program) 
33
#  - libmath-bigint-gmp-perl (cpan Math::BigInt; used for IPv6 masking by vgwhois main program)
34
#  - php7.0-cli (used by subprograms and pattern-generator) 
34
#  - php7.0-cli (used by subprograms and pattern-generator)
35
#
35
#
36
# Required for the maintenance tools
36
# Required for the maintenance tools
37
#  - php7.0-gmp (used by IPv6 pattern generator) 
37
#  - php7.0-gmp (used by IPv6 pattern generator)
38
#  - netcat (used by the whois-ping maintainance program)
38
#  - netcat (used by the whois-ping maintainance program)
Line 44... Line 44...
44
apt-get update
44
apt-get update
45
apt-get install perl libwww-perl libnet-libidn-perl curl lynx-cur libnet-ip-perl libnet-dns-perl libmath-bigint-gmp-perl php7.0-cli php7.0-gmp netcat php7.0-sqlite3
45
apt-get install perl libwww-perl libnet-libidn-perl curl lynx-cur libnet-ip-perl libnet-dns-perl libmath-bigint-gmp-perl php7.0-cli php7.0-gmp netcat php7.0-sqlite3
46
 
46
 
47
# --- STEP 2: "Install" symlinks
47
# --- STEP 2: "Install" symlinks
48
 
48
 
49
if [ -L /usr/bin/gwhois ]; then
49
if [ -L /usr/bin/vgwhois ]; then
50
        rm /usr/bin/gwhois
50
        rm /usr/bin/vgwhois
51
fi
51
fi
52
ln -s "$REAL_DIR"/main/gwhois /usr/bin/gwhois
52
ln -s "$REAL_DIR"/main/vgwhois /usr/bin/vgwhois
53
echo "Symlink /usr/bin/gwhois created"
53
echo "Symlink /usr/bin/vgwhois created"
54
 
54
 
55
# ---
55
# ---
56
 
56
 
57
if [ -L /usr/sbin/gwhois-pattern-update ]; then
57
if [ -L /usr/sbin/vgwhois-pattern-update ]; then
58
        rm /usr/sbin/gwhois-pattern-update
58
        rm /usr/sbin/vgwhois-pattern-update
59
fi
59
fi
60
ln -s "$REAL_DIR"/maintenance/pattern-generator/gwhois-pattern-update /usr/sbin/gwhois-pattern-update
60
ln -s "$REAL_DIR"/maintenance/pattern-generator/vgwhois-pattern-update /usr/sbin/vgwhois-pattern-update
61
echo "Symlink /usr/sbin/gwhois-pattern-update created"
61
echo "Symlink /usr/sbin/vgwhois-pattern-update created"
62
 
62
 
63
# ---
63
# ---
64
 
64
 
65
if [ -L /usr/sbin/gwhois-qa-check ]; then
65
if [ -L /usr/sbin/vgwhois-qa-check ]; then
66
        rm /usr/sbin/gwhois-qa-check
66
        rm /usr/sbin/vgwhois-qa-check
67
fi
67
fi
68
ln -s "$REAL_DIR"/maintenance/qa-monitor/run /usr/sbin/gwhois-qa-check
68
ln -s "$REAL_DIR"/maintenance/qa-monitor/run /usr/sbin/vgwhois-qa-check
69
echo "Symlink /usr/sbin/gwhois-qa-check created"
69
echo "Symlink /usr/sbin/vgwhois-qa-check created"
70
 
70
 
71
# ---
71
# ---
72
 
72
 
73
if [ -L /usr/sbin/gwhois-update ]; then
73
if [ -L /usr/sbin/vgwhois-update ]; then
74
        rm /usr/sbin/gwhois-update
74
        rm /usr/sbin/vgwhois-update
75
fi
75
fi
76
ln -s "$REAL_DIR"/update.sh /usr/sbin/gwhois-update
76
ln -s "$REAL_DIR"/update.sh /usr/sbin/vgwhois-update
77
echo "Symlink /usr/sbin/gwhois-update created"
77
echo "Symlink /usr/sbin/vgwhois-update created"
78
 
78
 
79
# ---
79
# ---
80
 
80
 
81
if [ -L /usr/share/man/man1/gwhois.1 ]; then
81
if [ -L /usr/share/man/man1/vgwhois.1 ]; then
82
        rm /usr/share/man/man1/gwhois.1
82
        rm /usr/share/man/man1/vgwhois.1
83
fi
83
fi
84
ln -s "$REAL_DIR"/man/man1/gwhois.1 /usr/share/man/man1/gwhois.1
84
ln -s "$REAL_DIR"/man/man1/vgwhois.1 /usr/share/man/man1/vgwhois.1
85
echo "Symlink /usr/share/man/man1/gwhois.1 created"
85
echo "Symlink /usr/share/man/man1/vgwhois.1 created"
86
 
86