network/inadyn: Updated for version 2.5.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
09ef9ebae6
commit
86d36a83fe
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
@ -24,4 +22,3 @@ preserve_perms() {
|
||||||
}
|
}
|
||||||
|
|
||||||
preserve_perms etc/rc.d/rc.inadyn.new
|
preserve_perms etc/rc.d/rc.inadyn.new
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=inadyn
|
PRGNAM=inadyn
|
||||||
VERSION=${VERSION:-2.3.1}
|
VERSION=${VERSION:-2.5}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -54,13 +54,13 @@ else
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e # Exit on most errors
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvJf $CWD/$PRGNAM-$VERSION.tar.xz
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
|
@ -69,6 +69,7 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -89,9 +90,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
|
||||||
|
mkdir -p $PKG/etc/rc.d
|
||||||
|
cat $CWD/rc.inadyn > $PKG/etc/rc.d/rc.inadyn.new
|
||||||
|
|
||||||
|
mkdir -p $PKG/var/cache/$PRGNAM
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a \
|
||||||
AUTHORS CONTRIBUTING.md \
|
AUTHORS CONTRIBUTING.md debian/ \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
@ -99,8 +105,5 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
mkdir -p $PKG/etc/rc.d
|
|
||||||
cat $CWD/rc.inadyn > $PKG/etc/rc.d/rc.inadyn.new
|
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="inadyn"
|
PRGNAM="inadyn"
|
||||||
VERSION="2.3.1"
|
VERSION="2.5"
|
||||||
HOMEPAGE="http://troglobit.com/projects/inadyn"
|
HOMEPAGE="http://troglobit.com/projects/inadyn"
|
||||||
DOWNLOAD="ftp://ftp.troglobit.com/inadyn/inadyn-2.3.1.tar.xz"
|
DOWNLOAD="https://github.com/troglobit/inadyn/archive/v2.5/inadyn-2.5.tar.gz"
|
||||||
MD5SUM="6a36f62bba5c9774bff25bf2be871bbb"
|
MD5SUM="e06354b6a617c1eeca1e97c01f224bbb"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="confuse"
|
REQUIRES="confuse"
|
||||||
MAINTAINER="Kenneth Chan"
|
MAINTAINER="kchan"
|
||||||
EMAIL="kenneth.t.chan@gmail.com"
|
EMAIL="kenneth.t.chan@gmail.com"
|
||||||
|
|
|
@ -12,22 +12,23 @@ if [ ! -f /etc/inadyn.conf ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PIDFILE=/var/run/inadyn.pid
|
PIDFILE=/var/run/inadyn.pid
|
||||||
|
SCRIPTNAME=$0
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting inadyn: /usr/sbin/inadyn"
|
echo -n "Starting inadyn: /usr/sbin/inadyn"
|
||||||
/usr/sbin/inadyn
|
/usr/sbin/inadyn --pidfile $PIDFILE
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping inadyn... "
|
echo -n "Stopping inadyn... "
|
||||||
kill $( ps ax | grep inadyn | grep Ss | awk '{print $1}' )
|
kill $( ps ax | grep inadyn | grep Ss | awk '{print $1}' )
|
||||||
#kill -9 $( cat $PIDFILE 2> /dev/null )
|
rm -f $PIDFILE
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
$0 stop
|
$SCRIPTNAME stop
|
||||||
$0 start
|
$SCRIPTNAME start
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
pids=$( ps ax | grep inadyn | grep Ss | awk '{print $1}' )
|
pids=$( ps ax | grep inadyn | grep Ss | awk '{print $1}' )
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
inadyn: inadyn (A Small and Simple DDNS Client)
|
inadyn: inadyn (A Small and Simple DDNS Client)
|
||||||
inadyn:
|
inadyn:
|
||||||
inadyn: In-a-dyn is a small and simple Dynamic DNS, DDNS, client with HTTPS
|
inadyn: In-a-dyn is a small and simple Dynamic DNS, DDNS, client with HTTPS
|
||||||
inadyn: support. It is commonly available in many GNU/Linux distributions,
|
inadyn: support. It is commonly available in many GNU/Linux distributions,
|
||||||
inadyn: used in off-the-shelf routers and Internet gateways to automate the
|
inadyn: used in off-the-shelf routers and Internet gateways to automate the
|
||||||
inadyn: task of keeping your DNS record up to date with any IP address
|
inadyn: task of keeping your DNS record up to date with any IP address
|
||||||
inadyn: changes from your ISP. It can also be used in installations with
|
inadyn: changes from your ISP. It can also be used in installations with
|
||||||
inadyn: redundant (backup) connections to the Internet.
|
inadyn: redundant (backup) connections to the Internet.
|
||||||
inadyn:
|
inadyn:
|
||||||
inadyn: Homepage: http://troglobit.com/projects/inadyn
|
inadyn: Homepage: http://troglobit.com/projects/inadyn
|
||||||
|
|
Loading…
Reference in New Issue