ports/opt (2.2): [notify] iproute2: updated to 2.6.18-061002, changed sbin location

Antti Nykänen aon at iki.fi
Tue Nov 14 12:55:42 UTC 2006


Hi,

On 2006-11-14 at 13:37, crux at crux.nu wrote:
> +	sed -i -e "s|SBINDIR=/usr/sbin|SBINDIR=/sbin|" Makefile
>  	sed -i -e "s|MANDIR=/usr/share/man|MANDIR=/usr/man|" Makefile

I might be missing something, but why is sed used here?

diff --git a/iproute2/Pkgfile b/iproute2/Pkgfile
index 10ea8b1..2c34a87 100644
--- a/iproute2/Pkgfile
+++ b/iproute2/Pkgfile
@@ -10,9 +10,7 @@ source=(http://developer.osdl.org/dev/ip
 
 build() {
 	cd $name-$version
-	sed -i -e "s|SBINDIR=/usr/sbin|SBINDIR=/sbin|" Makefile
-	sed -i -e "s|MANDIR=/usr/share/man|MANDIR=/usr/man|" Makefile
 	make KERNEL_INCLUDE="/lib/modules/`uname -r`/source/include"
-	make DESTDIR=$PKG install
+	make SBINDIR=/sbin MANDIR=/usr/man DESTDIR=$PKG install
 	rm -rf $PKG/usr/share
 }

-- 
Antti Nykänen | aon at iki.fi | http://aon.iki.fi/



More information about the CRUX mailing list