1,7 → 1,7 |
#!/bin/bash |
|
# |
# VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois) |
# VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois) |
# Installer / Uninstaller |
# |
# (c) 2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
22,15 → 22,15 |
# --- STEP 1: Install required packages |
|
# Required for the program itself: |
# - perl (used by gwhois main program. used by 6to4 and Teredo subprogram) |
# - libwww-perl (cpan LWP::Simple; used by gwhois main program) |
# - libnet-libidn-perl (cpan Net::LibIDN; used by gwhois main program) |
# - (commented out) libencode-detect-perl (cpan Encode::Detect; used by gwhois main program) |
# - curl (used by some parts of the gwhois main program. used by pattern generator and subprograms) |
# - lynx-cur (used by some parts of the gwhois main program) |
# - libnet-ip-perl (cpan Net::IP; used for IPv6 interpretation by Teredo subprogram and gwhois main program) |
# - perl (used by vgwhois main program. used by 6to4 and Teredo subprogram) |
# - libwww-perl (cpan LWP::Simple; used by vgwhois main program) |
# - libnet-libidn-perl (cpan Net::LibIDN; used by vgwhois main program) |
# - (commented out) libencode-detect-perl (cpan Encode::Detect; used by vgwhois main program) |
# - curl (used by some parts of the vgwhois main program. used by pattern generator and subprograms) |
# - lynx-cur (used by some parts of the vgwhois main program) |
# - libnet-ip-perl (cpan Net::IP; used for IPv6 interpretation by Teredo subprogram and vgwhois main program) |
# - libnet-dns-perl (cpan Net::DNS; used by Teredo subprogram) |
# - libmath-bigint-gmp-perl (cpan Math::BigInt; used for IPv6 masking by gwhois main program) |
# - libmath-bigint-gmp-perl (cpan Math::BigInt; used for IPv6 masking by vgwhois main program) |
# - php7.0-cli (used by subprograms and pattern-generator) |
# |
# Required for the maintenance tools |
46,41 → 46,41 |
|
# --- STEP 2: "Install" symlinks |
|
if [ -L /usr/bin/gwhois ]; then |
rm /usr/bin/gwhois |
if [ -L /usr/bin/vgwhois ]; then |
rm /usr/bin/vgwhois |
fi |
ln -s "$REAL_DIR"/main/gwhois /usr/bin/gwhois |
echo "Symlink /usr/bin/gwhois created" |
ln -s "$REAL_DIR"/main/vgwhois /usr/bin/vgwhois |
echo "Symlink /usr/bin/vgwhois created" |
|
# --- |
|
if [ -L /usr/sbin/gwhois-pattern-update ]; then |
rm /usr/sbin/gwhois-pattern-update |
if [ -L /usr/sbin/vgwhois-pattern-update ]; then |
rm /usr/sbin/vgwhois-pattern-update |
fi |
ln -s "$REAL_DIR"/maintenance/pattern-generator/gwhois-pattern-update /usr/sbin/gwhois-pattern-update |
echo "Symlink /usr/sbin/gwhois-pattern-update created" |
ln -s "$REAL_DIR"/maintenance/pattern-generator/vgwhois-pattern-update /usr/sbin/vgwhois-pattern-update |
echo "Symlink /usr/sbin/vgwhois-pattern-update created" |
|
# --- |
|
if [ -L /usr/sbin/gwhois-qa-check ]; then |
rm /usr/sbin/gwhois-qa-check |
if [ -L /usr/sbin/vgwhois-qa-check ]; then |
rm /usr/sbin/vgwhois-qa-check |
fi |
ln -s "$REAL_DIR"/maintenance/qa-monitor/run /usr/sbin/gwhois-qa-check |
echo "Symlink /usr/sbin/gwhois-qa-check created" |
ln -s "$REAL_DIR"/maintenance/qa-monitor/run /usr/sbin/vgwhois-qa-check |
echo "Symlink /usr/sbin/vgwhois-qa-check created" |
|
# --- |
|
if [ -L /usr/sbin/gwhois-update ]; then |
rm /usr/sbin/gwhois-update |
if [ -L /usr/sbin/vgwhois-update ]; then |
rm /usr/sbin/vgwhois-update |
fi |
ln -s "$REAL_DIR"/update.sh /usr/sbin/gwhois-update |
echo "Symlink /usr/sbin/gwhois-update created" |
ln -s "$REAL_DIR"/update.sh /usr/sbin/vgwhois-update |
echo "Symlink /usr/sbin/vgwhois-update created" |
|
# --- |
|
if [ -L /usr/share/man/man1/gwhois.1 ]; then |
rm /usr/share/man/man1/gwhois.1 |
if [ -L /usr/share/man/man1/vgwhois.1 ]; then |
rm /usr/share/man/man1/vgwhois.1 |
fi |
ln -s "$REAL_DIR"/man/man1/gwhois.1 /usr/share/man/man1/gwhois.1 |
echo "Symlink /usr/share/man/man1/gwhois.1 created" |
ln -s "$REAL_DIR"/man/man1/vgwhois.1 /usr/share/man/man1/vgwhois.1 |
echo "Symlink /usr/share/man/man1/vgwhois.1 created" |
|