diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
commit | b6af1e02efe594039707cd882517663d5370f375 (patch) | |
tree | ff9c2d55873e051e82972ba64c017352d3a75d34 /unmaintained/ifplugd | |
parent | a71346b7acebc600960a98c84fb32cfd72fe864b (diff) | |
download | aports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2 aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz |
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
Diffstat (limited to 'unmaintained/ifplugd')
-rw-r--r-- | unmaintained/ifplugd/APKBUILD | 57 | ||||
-rw-r--r-- | unmaintained/ifplugd/ifplugd.initd | 32 | ||||
-rw-r--r-- | unmaintained/ifplugd/musl-type.patch | 15 |
3 files changed, 104 insertions, 0 deletions
diff --git a/unmaintained/ifplugd/APKBUILD b/unmaintained/ifplugd/APKBUILD new file mode 100644 index 0000000000..109da89bd6 --- /dev/null +++ b/unmaintained/ifplugd/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Pablo Castorino <pcastorino@mendoza-conicet.gob.ar> +# Maintainer: +pkgname=ifplugd +pkgver=0.28 +pkgrel=4 +pkgdesc="Detect and take action when an ethernet cable is unplugged" +url="http://0pointer.de/lennart/projects/ifplugd" +arch="all" +license="GPL2+" +depends="" +depends_dev="libdaemon-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://dev.alpinelinux.org/archive/ifplugd-$pkgver.tar.gz + $pkgname.initd + musl-type.patch" + +_builddir="$srcdir/$pkgname-$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 +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-lynx \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -m755 -D "$pkgdir"/etc/init.d/$pkgname "$pkgdir"/usr/sbin/$pkgname-helper + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname +} + +md5sums="df6f4bab52f46ffd6eb1f5912d4ccee3 ifplugd-0.28.tar.gz +7d7d45d6cf8edcb46ff18bedf7cfb961 ifplugd.initd +e96027299ece16ac8e48bf9244d75222 musl-type.patch" +sha256sums="474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 ifplugd-0.28.tar.gz +f9c9e4872cedca9dc9d68fcba67359f802f1a0b89b85ed983d619b6e55e87372 ifplugd.initd +29df5d6628ebc22e5ba76591d326e031bd040c8e42d116614aa68a7b0c7430d9 musl-type.patch" +sha512sums="c606e456f81f224eba9f8912e11fb76b759c160313d1db3c9035775b8c1ca57ca10c88dfb33318ba02f5c025218a377ca78ee160fc3d9a31ac6e95b92f340d4f ifplugd-0.28.tar.gz +ea0393d2dd0c047d9164881b1fdd4ab4e3581e8758e167a8ae22b2c4b5f361a05dbd126d4c0238204e87322127ebfe70a24b0c9773c3372257180e6cc29a7b1d ifplugd.initd +bd221a2074c3f4310501d51659dddf9a84ca3d93457abdd176ca7c843ee05909f831d5808832945d6d0442b0246a1e1573fdbbc6e6fd40cae5d2460d41587d32 musl-type.patch" diff --git a/unmaintained/ifplugd/ifplugd.initd b/unmaintained/ifplugd/ifplugd.initd new file mode 100644 index 0000000000..c5b8ec53d2 --- /dev/null +++ b/unmaintained/ifplugd/ifplugd.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/ifplugd.init,v 1.2 2007/02/25 09:57:18 mrness Exp $ + +depend() { + need net + after firewall opennhrp +} + +checkconfig() { + if [ ! -e /etc/ifplugd/ifplugd.conf ] ; then + eerror "You need to create /etc/ifplugd/ifplugd.conf first." + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting ifplugd" + sh /usr/sbin/ifplugd-helper start + result=$? + eend $result +} + +stop() { + ebegin "Stopping ifplugd" + sh /usr/sbin/ifplugd-helper stop + result=$? + eend $result +} diff --git a/unmaintained/ifplugd/musl-type.patch b/unmaintained/ifplugd/musl-type.patch new file mode 100644 index 0000000000..fa8a232cec --- /dev/null +++ b/unmaintained/ifplugd/musl-type.patch @@ -0,0 +1,15 @@ +--- a/src/ethtool-local.h.orig ++++ b/src/ethtool-local.h +@@ -22,9 +22,9 @@ + */ + + typedef unsigned long long u64; +-typedef __uint32_t u32; +-typedef __uint16_t u16; +-typedef __uint8_t u8; ++typedef uint32_t u32; ++typedef uint16_t u16; ++typedef uint8_t u8; + + #include "ethtool-kernel.h" + |