Skip to content

Commit

Permalink
Install script overhaul. 😄
Browse files Browse the repository at this point in the history
Minor logging output fix.
Changed some Copyright dates.
Changed bug reporting endpoint to Github Repo Issue Tracker.
https://github.com/lennycartier/iptoip/issues
  • Loading branch information
NathanGibbs3 committed Feb 7, 2019
1 parent 9164135 commit f15c803
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 19 deletions.
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
iptoip

(c) 2001 Lenny Cartier ([email protected]) / https://github.com/lennycartier/iptoip
(c) 2013-2018 Nathan Gibbs <[email protected]>
(c) 2013-2019 Nathan Gibbs <[email protected]>
Licensed under the terms of the GNU GPL (see COPYING)

A tool designed to setup and maintain the IPVS table on Linux hosts.
Expand Down Expand Up @@ -33,6 +33,6 @@ On debien hosts, creating a symlink to iptoip in /etc/network/if-up.d can
accomplish this.

BUGS:
Report bugs or suggestions to <nathan@cmpublishers.com>
Please submit at: https://github.com/lennycartier/iptoip/issues

# revised 12/31/2018
# revised 2/7/2019
44 changes: 35 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
#! /bin/sh

# Names & locations.
Pkg="iptoip"
Isl="/usr/local"
Ism=$Isl/man
Iss=$Isl/share
Isd=$Iss/doc/$Pkg
Isp=$Iss/$Pkg

echo "Installing $Pkg"
# Install Code.
cp iptoip /usr/local/sbin
cp iptoip.init /etc/init.d/iptoip
cp $Pkg $Isl/sbin
cp $Pkg.init /etc/init.d/$Pkg
# Install Documentation.
cp iptoip.8 /usr/local/man/man8
cp iptoip.xml.5 /usr/local/man/man5
mkdir -p /usr/local/share/iptoip
cp iptoip.xml install.sh ipvsrate.sh /usr/local/share/iptoip
mkdir -p /usr/local/share/doc/iptoip
cp AUTHORS CHANGELOG COPYING LICENSE README README.md TODO /usr/local/share/doc/iptoip
cp $Pkg.8 $Ism/man8
cp $Pkg.xml.5 $Ism/man5
mkdir -p $Isd
cp AUTHORS CHANGELOG COPYING LICENSE README README.md TODO $Isd
# Misc Files
mkdir -p $Isp
cp $Pkg.xml install.sh ipvsrate.sh $Isp
echo "Install Complete."
echo "Setting up $Pkg service."
# Setup Runtime.
chkconfig -a iptoip
echo -n "Trying chkconfig: "
if which chkconfig; then
echo -n "Found: "
chkconfig -a $Pkg
echo "Success"
elif which update-rc.d; then
echo "Failed"
echo -n "Trying update-rc.d: "
update-rc.d $Pkg defaults
echo "Success"
else
echo "Unable to setup $Pkg service."
echo "Pleae submit issue at:"
echo "https://github.com/lennycartier/iptoip/issues"
fi
6 changes: 3 additions & 3 deletions iptoip
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# iptoip, v 0.3.2 ( devel )
#
# Copyright (C) 2001 Lenny Cartier ([email protected])
# Additional Code Mangling Copyright (C) 2013-2018 Nathan Gibbs <[email protected]>
# Additional Code Mangling Copyright (C) 2013-2019 Nathan Gibbs <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -38,7 +38,7 @@ my $i = 0;
my $host = hostname();
my ($Svcip, $error, $RET, $xmlconf);
my $help = 0;
my $ident = '[iptoip]';
my $ident = 'iptoip';
my $xmlarg = '';
# Flags
my $DEBUG = 0;
Expand All @@ -58,7 +58,7 @@ GetOptions(
$help && die <<END;
iptoip-0.3.2 (devel), Copyright (C) 2001 Lenny Cartier
(C) 2013-2018 Nathan Gibbs
(C) 2013-2019 Nathan Gibbs
iptoip comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to
redistribute it under the terms of the GNU GPL.
Expand Down
4 changes: 2 additions & 2 deletions iptoip.8
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ Lenny Cartier.
.br
Nathan Gibbs.
.SH "REPORTING BUGS"
Report bugs to <nathan@cmpublishers.com>.
Please submit at: https://github.com/lennycartier/iptoip/issues
.SH COPYRIGHT
Copyright \(co 2001 Lenny Cartier.
.br
Copyright \(co 2013-2018 Nathan Gibbs.
Copyright \(co 2013-2019 Nathan Gibbs.
.br
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE;
Expand Down
4 changes: 2 additions & 2 deletions iptoip.xml.5
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ Lenny Cartier.
.br
Nathan Gibbs.
.SH "REPORTING BUGS"
Report bugs to <nathan@cmpublishers.com>.
Please submit at: https://github.com/lennycartier/iptoip/issues
.SH COPYRIGHT
Copyright \(co 2001 Lenny Cartier.
.br
Copyright \(co 2013-2018 Nathan Gibbs.
Copyright \(co 2013-2019 Nathan Gibbs.
.br
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE;
Expand Down

0 comments on commit f15c803

Please sign in to comment.