summaryrefslogtreecommitdiff
path: root/community/unhide/PKGBUILD
blob: 18f16e8f4cc397e45a6e3e90f9487426e3249d80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 92031 2013-05-30 23:43:09Z seblu $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>

pkgname=unhide
pkgver=20130526
pkgrel=1
pkgdesc='A forensic tool to find processes hidden by rootkits, LKMs or by other techniques.'
arch=('i686' 'x86_64' 'mips64el')
url='http://sourceforge.net/projects/unhide/'
license=('GPL3')
depends=('iproute2' 'lsof' 'psmisc' 'net-tools' 'procps-ng')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver.tgz")
md5sums=('f3d68ed8eb239614abb0ff5ace22cf85')

build() {
  cd $pkgname-$pkgver
  cc -Wall -O2 --static -pthread unhide-linux*.c unhide-output.c -o unhide-linux
  cc -Wall -O2 --static unhide_rb.c -o unhide_rb
  cc -Wall -O2 --static unhide-posix.c -o unhide-posix
  cc -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp
}

package() {
  cd $pkgname-$pkgver
  for _p in unhide-linux unhide-posix unhide_rb unhide-tcp; do
    install -Dm0755 "$_p" "$pkgdir/usr/bin/$_p"
  done
  ln -s unhide-linux "$pkgdir/usr/bin/unhide"
  install -Dm0644 man/unhide.8 "$pkgdir/usr/share/man/man8/unhide.8"
}