Date: Friday, February 17, 2012 @ 06:59:46 Author: allan Revision: 150401
upgpkg: ifplugd 0.28-8 signing rebuild Modified: ifplugd/trunk/PKGBUILD ----------+ PKGBUILD | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2012-02-17 11:58:52 UTC (rev 150400) +++ PKGBUILD 2012-02-17 11:59:46 UTC (rev 150401) @@ -1,11 +1,11 @@ # $Id$ # Contributor: Manolis Tzanidakis # Contributor: kevin <[email protected]> -# Maintainer: Thayer Williams <[email protected]> +# 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 @@ 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 }
