Browse Source

n/ddclient: Updated.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
255bad078a
  1. 13
      n/ddclient/ddclient.SlackBuild
  2. 24
      n/ddclient/rc.ddclient

13
n/ddclient/ddclient.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
# Copyright (C) 2009,2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,12 +29,12 @@
NAMESRC=${NAMESRC:-ddclient}
VERSION=${VERSION:-3.8.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://ovh.dl.sourceforge.net/sourceforge/ddclient/$ARCHIVE}
WGET=${WGET:-http://downloads.sourceforge.net/ddclient/$ARCHIVE}
# Built package infos
NAMEPKG=${NAMEPKG:-ddclient}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-3GGD}
ARCH=noarch
EXT=${EXT:-txz}
# Directories
@ -71,9 +71,8 @@ mkdir -p $PKG/usr/{sbin,doc/$NAME} $PKG/etc/{ddclient,rc.d} $PKG/install
install -m 755 ddclient $PKG/usr/sbin/ddclient
install -m 644 sample-etc_ddclient.conf $PKG/etc/ddclient/ddclient.conf.new
install -m 644 $CWD/rc.ddclient $PKG/etc/rc.d/rc.ddclient.new
install -m 644 \
COPYING COPYRIGHT Change{l,L}og README{,.cisco,.ssl} RELEASENOTE TODO \
$PKG/usr/doc/$NAME
install -m 644 COPYING COPYRIGHT Change{l,L}og README{,.cisco,.ssl} \
RELEASENOTE TODO $PKG/usr/doc/$NAME
install -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh

24
n/ddclient/rc.ddclient

@ -2,32 +2,20 @@
[ -f /etc/ddclient/ddclient.conf ] || exit 0
start() {
mkdir -p /var/cache/ddclient
ddclient -pid /var/run/ddclient.pid
}
stop() {
[ -f /var/run/ddclient.pid ] && kill $(< /var/run/ddclient.pid)
}
restart() {
stop
sleep 2
start
}
case "$1" in
start)
start
[ -d /var/cache/ddclient ] || mkdir -p /var/cache/ddclient
ddclient -pid /var/run/ddclient.pid
;;
stop)
stop
[ -f /var/run/ddclient.pid ] && kill $(< /var/run/ddclient.pid)
;;
restart)
restart
$0 stop
sleep 2
$0 start
;;
*)

Loading…
Cancel
Save