summaryrefslogtreecommitdiff
path: root/pcr/ucsniff-ace/PKGBUILD
blob: 08363598c21d65868d341e31fbd2ad84ec108d3f (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
32
33
34
35
36
37
38
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>

pkgname='ucsniff-ace'
pkgver='1.10'
pkgrel=5
pkgdesc='A simple yet powerful VoIP Corporate Directory enumeration tool that mimics the behavior of an IP Phone in order to download the name and extension entries that a given phone can display on its screen interface.'
url='http://ucsniff.sourceforge.net/ace.html'
license=('GPL')
makedepends=('libtirpc')
depends=('libpcap')
arch=('i686' 'x86_64' 'armv7h')
source=("http://downloads.sourceforge.net/ucsniff/ace-$pkgver.tar.gz")
sha1sums=('747aee37f74e71101317809797cdaed7077dd29e')


prepare() {
  cd "$srcdir/ace-$pkgver"

  # FTBS with GCC10; because '-fno-common' is now the default
  # this software appears to be unmaintained
  export CFLAGS="${CFLAGS} -fcommon -I/usr/include/tirpc"

  sed -i 's#linux/if_tr.h#netinet/if_tr.h#' client.h
  sed -i "s:gcc :gcc $CFLAGS :g" Makefile
}

build() {
  cd "$srcdir/ace-$pkgver"

  make
}

package() {
  cd "$srcdir/ace-$pkgver"

  install -Dm755 ace "$pkgdir/usr/bin/ace"
}