Commit 49afd339 authored by Jeremy Thomerson's avatar Jeremy Thomerson Committed by Natanael Copa

main/ez-ipupdate: new aport

utility for updating your host name for many of the dynamic DNS services (ez-ip.net, dyndns.org, etc)
http://ez-ipupdate.com/
parent cfb5fcad
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=ez-ipupdate
pkgver=3.0.10
pkgrel=0
pkgdesc="utility for updating your host name for many of the dynamic DNS services (ez-ip.net, dyndns.org, etc)"
url="http://ez-ipupdate.com/"
license="GPL"
depends=""
makedepends=""
install="$pkgname.pre-install $pkgname.post-install"
subpackages=""
source="http://ez-ipupdate.com/dist/$pkgname-$pkgver.tar.gz
ez-ipupdate.confd
ez-ipupdate.initd
"
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -d "$pkgdir"/var/lib/$pkgname
install -d "$pkgdir"/var/run/$pkgname
}
md5sums="6505c9d18ef6b5ce13fe2a668eb5724b ez-ipupdate-3.0.10.tar.gz
e6e06780b1896f2250132cc16cd10710 ez-ipupdate.confd
04b773d467e9793c9a4e3b0e9d6a2f7f ez-ipupdate.initd"
# conf.d file for ez-ipupdate
# NOTE: all of the options defined in this configuration file need
# to remain in the file (do not remove them). modify them as needed
# or leave them at the default
# the type of service that you are using
# try one of: ezip, pgpow, dhs, dyndns,
# dyndns-static, ods, tzo, gnudip, easydns,
# justlinux, dyns, hn, zoneedit
SERVICE=""
# What hostname are you updating?
HOST=your-domain.service-domain.tld
# Credentials used to update the service
USER=yourusername
PASS=yourpassword
# Which interface has the IP to be updated?
IFACE="eth0"
# If you want your domain to have a wildcard alias, set this to 1
WILDCARD=0
# If you need to override the server to send updates to, do it here.
# You can also specify the port, in this format: server[:port]
SERVER=
# max time in between updates (seconds - must be 86400 or larger)
MAX_INTERVAL=86400
# I/O timeout (seconds.millis)
TIMEOUT=45.0
#!/sbin/runscript
# init.d file for ez-ipupdate
NAME=ez-ipupdate
DAEMON=/usr/bin/$NAME
DAEMON_GROUP=ipupdate
DAEMON_USER=ipupdate
# load the config
. /etc/conf.d/${NAME}
# now convert it into command line options
OPTS="-d -S ${SERVICE} -h ${HOST} -u \"${USER}:${PASS}\" -i ${IFACE}"
if [ "$WILDCARD" == 1 ]; then
OPTS="${OPTS} -w"
fi
if [ "$SERVER" != "" ]; then
OPTS="${OPTS} -s \"${SERVER}\""
fi
OPTS="${OPTS} -t ${TIMEOUT} -M ${MAX_INTERVAL}"
depend() {
need net
}
start() {
ebegin "Starting ${NAME}"
start-stop-daemon --start --quiet \
--pidfile /var/run/${NAME}.pid \
--chuid ${DAEMON_USER}:${DAEMON_GROUP} \
--exec ${DAEMON} -- ${OPTS}
eend $?
}
stop() {
ebegin "Stopping ${NAME}"
start-stop-daemon --stop --quiet \
--exec ${DAEMON} \
--pidfile /var/run/${NAME}.pid \
eend $?
}
reload() {
ebegin "Reloading ${NAME}"
if ! service_started "${NAME}" ; then
eend 1 "${NAME} is not started"
return 1
fi
start-stop-daemon --stop --oknodo --signal HUP \
--exec ${DAEMON} --pidfile /var/run/${NAME}.pid
eend $?
}
#!/bin/sh
chown ipupdate:ipupdate var/run/ez-ipupdate var/lib/ez-ipupdate
exit 0
#!/bin/sh
adduser -h /var/lib/ez-ipupdate -s /bin/false -D ipupdate 2>/dev/null
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment