From b6af1e02efe594039707cd882517663d5370f375 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 25 Aug 2016 15:26:24 +0200 Subject: testing/[multiple]: move unmaintained packages This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community --- unmaintained/noip/APKBUILD | 60 +++++++++++++++++++++++++++++++ unmaintained/noip/noip-2.1.9-daemon.patch | 0 unmaintained/noip/noip-2.1.9-flags.patch | 11 ++++++ unmaintained/noip/noip.initd | 34 ++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 unmaintained/noip/APKBUILD create mode 100644 unmaintained/noip/noip-2.1.9-daemon.patch create mode 100644 unmaintained/noip/noip-2.1.9-flags.patch create mode 100644 unmaintained/noip/noip.initd (limited to 'unmaintained/noip') diff --git a/unmaintained/noip/APKBUILD b/unmaintained/noip/APKBUILD new file mode 100644 index 0000000000..eb6b396fc4 --- /dev/null +++ b/unmaintained/noip/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: crow +# Maintainer: +pkgname=noip +pkgver=2.1.9 +_pkgver=2.1.9-1 +pkgrel=2 +pkgdesc="Dynamic DNS Client Updater for no-ip.com services" +url="http://www.no-ip.com/downloads.php?page=linux" +arch="all" +license="GPL2+" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz + noip-2.1.9-flags.patch + noip-2.1.9-daemon.patch + noip.initd + " + +_builddir="$srcdir"/noip-$_pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + sed -i '/^#define CONFIG_FILEPATH/s/PREFIX//' noip2.c || return 1 + sed -i '/^#define CONFIG_FILENAME/s/PREFIX//' noip2.c || return 1 +} + +build() { + cd "$_builddir" + cc -Wall $CLFAGS $LDFLAGS -g -Dlinux -DPREFIX=/usr noip2.c -o noip2 -Wno-unused-but-set-variable +} + +package() { + cd "$_builddir" + + install -Dm755 "$_builddir"/noip2 \ + "$pkgdir"/usr/sbin/noip2 || return 1 + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 +} + +md5sums="3b0f5f2ff8637c73ab337be403252a60 noip-duc-linux.tar.gz +1959f3f0f57b8455c8701b9c5e5feafe noip-2.1.9-flags.patch +d41d8cd98f00b204e9800998ecf8427e noip-2.1.9-daemon.patch +db8264ecaa50e47f952b232beae6ef86 noip.initd" +sha256sums="82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593 noip-duc-linux.tar.gz +07ddd46b9fb7579e20e7f32de061aa9e4fe70bda389b1b780ce3807661b1e543 noip-2.1.9-flags.patch +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 noip-2.1.9-daemon.patch +21b5b1d99742bd4771d160e071e4c11d0a9c7f97832ac18514ebca4beeaca23f noip.initd" +sha512sums="6c32397f31e6f4875a2429398c2627cbe52abba569830ddc1190fed3f4c6cb23e232e60b23d9fa97940f98a1c5c019a89812844f92a655c6ebf275b784015125 noip-duc-linux.tar.gz +d825dcd16ee8c424865b51d6cd7de64bbde5f772c5ff63d76014ec13b18196208ed09df5a81dd606a8c49cfc422db3ac5d6a306c81137d1447c979158bd164e8 noip-2.1.9-flags.patch +cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e noip-2.1.9-daemon.patch +d9a94817337fa79a442171e170189125258ac06443c9763d7d5096e6ea2b1d577dca662dec3c0c3df579923782fe51c84a6972c1429b3cfdaaa139fe7dd510c6 noip.initd" diff --git a/unmaintained/noip/noip-2.1.9-daemon.patch b/unmaintained/noip/noip-2.1.9-daemon.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/unmaintained/noip/noip-2.1.9-flags.patch b/unmaintained/noip/noip-2.1.9-flags.patch new file mode 100644 index 0000000000..372b582869 --- /dev/null +++ b/unmaintained/noip/noip-2.1.9-flags.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -22,7 +22,7 @@ + # ARCH=sun + + ${TGT}: Makefile ${TGT}.c +- ${CC} -Wall -g -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} ++ ${CC} ${CFLAGS} -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} ${LDFLAGS} + + install: ${TGT} + if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi diff --git a/unmaintained/noip/noip.initd b/unmaintained/noip/noip.initd new file mode 100644 index 0000000000..141c3e5a20 --- /dev/null +++ b/unmaintained/noip/noip.initd @@ -0,0 +1,34 @@ +#!/sbin/runscript + +depend() { + use logger dns + need net + after firewall +} + +checkconfig() { + if [ ! -f /etc/no-ip2.conf ] + then + einfo "Answer the following questions about your no-ip account." + noip2 -C || return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting noip" + start-stop-daemon --quiet --start -x /usr/sbin/noip2 -- -c /etc/no-ip2.conf + eend $? "noip did not start, error code $?" +} + +stop() { + ebegin "Stopping noip" + start-stop-daemon --quiet --stop -x /usr/sbin/noip2 + noip_ecode=$? + eend $noip_ecode "Error stopping the noip daemon, error $noip_ecode" + checkconfig || return 1 + ebegin "Setting noip addresses to 0.0.0.0" + noip2 -c /etc/no-ip2.conf -i 0.0.0.0 >& /dev/null + eend $? "Failed to set noip addresses to 0.0.0.0, error $?" + return $noip_ecode +} \ No newline at end of file -- cgit v1.2.3