1 pkgname=user-mode-linux
5 pkgdesc="Run multiple virtual Linux systems as applications within a normal Linux system"
8 source=("ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-$pkgver.tar.bz2"
10 md5sums=('090eb3dae0f520f7770f85193e931ad3'
11 '973c2f5cc51a9f548f90aab3f2671a57')
12 depends=('glibc' 'uml_utilities')
13 makedepends=('libpcap')
14 url="http://user-mode-linux.sourceforge.net/"
17 cd $srcdir/linux-$pkgver
18 cp $srcdir/config ./.config
20 if [ "${_kernelname}" != "" ]; then
21 sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
24 mkdir -p $pkgdir/lib/modules
25 mkdir -p $pkgdir/usr/lib/uml
27 LDFLAGS="" make -j1 oldconfig ARCH=um || return 1
28 LDFLAGS="" make -j1 vmlinux modules ARCH=um || return 1
29 make INSTALL_MOD_PATH=$pkgdir modules_install ARCH=um || return 1
31 mv $pkgdir/lib/modules $pkgdir/usr/lib/uml/
34 mkdir -p $pkgdir/usr/bin
35 cp vmlinux $pkgdir/usr/bin