2 # Maintainer: Jens Staal <staal1978@gmail.com>
4 pkgname=dtrace-linux-git
7 pkgdesc="Solaris DTrace ported to linux as a loadable kernel module + userland utilities"
9 url="http://www.crisp.demon.co.uk/blog/"
10 #official url: http://hub.opensolaris.org/bin/view/Community+Group+dtrace/WebHome
11 license=('CCDL' 'custom')
12 #legal status of this one should be approximately the same as the ZFS port
13 depends=('util-linux' 'kernel26-headers' 'libdwarf')
14 makedepends=('git' 'bison')
16 _gitroot=('git://github.com/pdmccormick/dtrace-for-linux.git')
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull $_gitroot
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
35 cp -ar "$srcdir/$_gitname" $srcdir/build
39 env LC_ALL=C make -i all
44 install -d $pkgdir/usr/sbin
45 install -d $pkgdir/usr/lib/dtrace/64
46 install -d $pkgdir/lib/modules/$_kernver/kernel/drivers
47 install -Dm755 $srcdir/build/build/dtrace $pkgdir/usr/sbin/dtrace
48 install -Dm755 $srcdir/build/build/drti.o $pkgdir/usr/lib/dtrace/64/drti.o
49 install -Dm644 $srcdir/build/build/driver/dtracedrv.ko $pkgdir/lib/modules/$_kernver/kernel/drivers/dtracedrv.ko
50 install -Dm644 $srcdir/build/LICENCING.NOTICE $pkgdir/usr/share/licences/dtrace/LICENCING.NOTICE
51 install -Dm644 $srcdir/build/README $pkgdir/usr/share/licences/dtrace/README