diff options
author | root <root@rshg054.dnsready.net> | 2012-02-18 23:15:35 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-18 23:15:35 +0000 |
commit | 1098e9db0acc5bb5c45af5778492faf3b4c99dd6 (patch) | |
tree | 24f65718bdb292fc62194464db8bee1348c48ee5 /extra/ifplugd/PKGBUILD | |
parent | b31146f2405c7d0f50bcc36b682af46be84cdeb8 (diff) |
Sat Feb 18 23:15:35 UTC 2012
Diffstat (limited to 'extra/ifplugd/PKGBUILD')
-rw-r--r-- | extra/ifplugd/PKGBUILD | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/extra/ifplugd/PKGBUILD b/extra/ifplugd/PKGBUILD index e3162ac9a..cc6cd83c1 100644 --- a/extra/ifplugd/PKGBUILD +++ b/extra/ifplugd/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 70831 2010-03-01 22:51:10Z dgriffiths $ +# $Id: PKGBUILD 150402 2012-02-17 12:01:52Z allan $ # Contributor: Manolis Tzanidakis # Contributor: kevin <kevin@archlinux.org> -# Maintainer: Thayer Williams <thayer@archlinux.org> +# Maintainer: pkgname=ifplugd pkgver=0.28 -pkgrel=7 +pkgrel=8 pkgdesc="A daemon which brings up/down network interfaces upon cable insertion/removal." arch=('i686' 'x86_64') url="http://0pointer.de/lennart/projects/ifplugd" @@ -21,27 +21,30 @@ md5sums=('df6f4bab52f46ffd6eb1f5912d4ccee3' '70d66121ae5163348855236951e069a2'\ build() { cd ${srcdir}/${pkgname}-${pkgver} - patch -p0 < ../ifplugd-0.28-interface.patch + patch -p0 -i $srcdir/ifplugd-0.28-interface.patch ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc \ --with-initdir=/etc/rc.d --disable-xmltoman --disable-subversion --disable-lynx - /usr/bin/make || return 1 - /usr/bin/make DESTDIR=${pkgdir} install + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install # replace INTERFACES with NET_IFS since AL already uses it in /etc/rc.conf - /bin/sed -i "s:INTERFACES:NET_IFS:g" \ - ${pkgdir}/etc/ifplugd/ifplugd.conf || return 1 + sed -i "s:INTERFACES:NET_IFS:g" \ + ${pkgdir}/etc/ifplugd/ifplugd.conf # replace the default init script & action files with ours. - #/bin/rm -rf $/pkgdir/etc/init.d - /bin/install -D -m755 ${srcdir}/ifplugd ${pkgdir}/etc/rc.d/ifplugd || return 1 - /bin/install -D -m755 ${srcdir}/ifplugd.action \ - ${pkgdir}/etc/ifplugd/ifplugd.action || return 1 + install -D -m755 ${srcdir}/ifplugd ${pkgdir}/etc/rc.d/ifplugd + install -D -m755 ${srcdir}/ifplugd.action \ + ${pkgdir}/etc/ifplugd/ifplugd.action - /bin/install -Dm755 ${srcdir}/ifdown.01-route.sh \ - ${pkgdir}/etc/ifplugd/ifdown.d/01-route.sh || return 1 - /bin/install -Dm755 ${srcdir}/ifup.01-route.sh \ - ${pkgdir}/etc/ifplugd/ifup.d/01-route.sh || return 1 - /bin/install -Dm755 ${srcdir}/ifup.02-ntpdate.sh \ - ${pkgdir}/etc/ifplugd/ifup.d/02-ntpdate.sh || return 1 + install -Dm755 ${srcdir}/ifdown.01-route.sh \ + ${pkgdir}/etc/ifplugd/ifdown.d/01-route.sh + install -Dm755 ${srcdir}/ifup.01-route.sh \ + ${pkgdir}/etc/ifplugd/ifup.d/01-route.sh + install -Dm755 ${srcdir}/ifup.02-ntpdate.sh \ + ${pkgdir}/etc/ifplugd/ifup.d/02-ntpdate.sh } |