summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e94db9c93b09972e004f464e16497678c5599b28 (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
# Maintainer: Sam Stuewe <halosghost at archlinux dot info>
_name='portspoof'
pkgname="${_name}-git"
pkgver=1.3
pkgrel=1
pkgdesc='A lightweight, fast, portable and secure addition to any firewall system or security infrastructure.'
url='http://portspoof.org/'
arch=('i686' 'x86_64')
license=('GPLv2')
makedepends=('git')
source=("${_name}::git://github.com/drk1wi/${_name}.git")
sha256sums=('SKIP')

pkgver() {
   cd "${srcdir}/${_name}"
   echo "$(git describe --always|cut -d 'v' -f2|sed -e 's|-|.|g' )"
}

build() {
   cd "${srcdir}/${_name}"
   ./configure --prefix=/usr
   make
}

package() {
   install -d "${pkgdir}"/{usr/bin,etc/"${_name}"}

   cd "${srcdir}/${_name}/src"
   install -Dm755 "${_name}" "${pkgdir}/usr/bin/${_name}"

   cd "${srcdir}/${_name}/tools"
   install -m644 -t "${pkgdir}/etc/${_name}/" "${_name}.conf" "${_name}_signatures"
}