summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fecfe8f8bc2778683f27dca351abb50e9b249f32 (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
# Maintainer: Amish <contact at via dot aur>
# Contributor: Isaac C. Aronson <i@pingas.org>

_user=shirkdog
pkgname=pulledpork
pkgver=0.7.2
pkgrel=1
pkgdesc="Tool to automatically update rules for snort"
arch=('any')
#url="https://code.google.com/p/pulledpork"
url="https://github.com/${_user}/${pkgname}"
license=('GPL')
depends=('cron' 'perl' 'perl-lwp-protocol-https' 'perl-crypt-ssleay' 'perl-archive-tar' 'perl-switch')
optdepends=('snort')
backup=('etc/pulledpork/pulledpork.conf'
        'etc/pulledpork/disablesid.conf'
        'etc/pulledpork/dropsid.conf'
        'etc/pulledpork/enablesid.conf'
        'etc/pulledpork/modifysid.conf')
#source=("https://pulledpork.googlecode.com/files/pulledpork-${pkgver}.tar.gz"
source=("pulledpork-${pkgver}.tar.gz::https://github.com/${_user}/${pkgname}/archive/${pkgver}.tar.gz"
        "pulledpork.conf"
        "pulledpork_update.sh"
        "pulledpork.cron")
sha256sums=('f4b72d03d1ae509049d771fe646c421ec1a877a4a07addc5f6046a3d614e4be7'
            '60ae10e636568a216e5629a1e73450d086fd77cd3328f5ba2c90d2483a1e9c08'
            '7ec58f5e73b3432eadab9a6050f17d5a1bd038ef2cfe52023da9f772ac532f98'
            'c9213d3076424dc391d09a6c19f769631f668f27206585dd98dcbf9390a1b9ee')
install=install

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -dm755 "${pkgdir}"/etc/cron.weekly "${pkgdir}"/etc/pulledpork "${pkgdir}"/usr/bin
  install -Dm644 etc/* "${pkgdir}"/etc/pulledpork/
  install -Dm644 ../pulledpork.conf "${pkgdir}"/etc/pulledpork/
  install -Dm700 ../pulledpork.cron "${pkgdir}"/etc/cron.weekly/pulledpork
  install -Dm755 pulledpork.pl ../pulledpork_update.sh "${pkgdir}"/usr/bin/
}