summaryrefslogtreecommitdiff
path: root/pcr/oinkmaster/PKGBUILD
blob: da20ac3f9895b474f57e32c8c6ac305b9f56a369 (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
# Contributor (Arch): Robert Knauer <robert@privatdemail.net>
# Contributor (Arch): Kessia Pinheiro <kessiapinheiro @ gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.io>

pkgname=oinkmaster
pkgver=2.0
pkgrel=7
pkgdesc="A script that will help you update and manage your Snort rules"
arch=('i686' 'x86_64')
license=('BSD')
url="http://oinkmaster.sourceforge.net/"
depends=('snort')
backup=(
  'etc/oinkmaster.conf'
)
source=(
  "http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
)
sha256sums=(
  '3d52f0426aa7c81b122cef22b80d708d8bb8337537e48754a065804f46c46162'
)

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -m0655 -D 'oinkmaster.pl' "${pkgdir}/usr/bin/oinkmaster.pl"
  install -m0644 -D 'oinkmaster.conf' "${pkgdir}/etc/oinkmaster.conf"
  install -m0644 -D 'oinkmaster.1' "${pkgdir}/usr/man/man1/oinkmaster.1"
  install -d -m0644 "${pkgdir}/usr/share/oinkmaster/"
  install -d -m0755 "${pkgdir}/usr/share/licenses/oinkmaster/"
  install -m0644 -D 'template-examples.conf' "${pkgdir}/usr/share/oinkmaster/"
  cp -R 'contrib/' "${pkgdir}/usr/share/oinkmaster/"
  install -m0644 [[:upper:]]* "${pkgdir}/usr/share/oinkmaster/"
  install -m0644 -D 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/"
}