# Maintainer (AUR): Amish <contact at via dot aur>
# Contributor (AUR): Isaac C. Aronson <i@pingas.org>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=pulledpork
pkgver=0.7.3
pkgrel=1
pkgdesc="Tool to automatically update rules for snort"
arch=('any')
url="https://github.com/${_user}/${pkgname}"
license=('GPL')
depends=('cron' 'perl' 'perl-lwp-protocol-https' 'perl-crypt-ssleay' 'perl-archive-tar' 'perl-switch' 'perl-bytes-random-secure')
optdepends=('snort')
backup=('etc/pulledpork/pulledpork.conf'
        'etc/pulledpork/disablesid.conf'
        'etc/pulledpork/dropsid.conf'
        'etc/pulledpork/enablesid.conf'
        'etc/pulledpork/modifysid.conf')
source=("pulledpork-${pkgver}.tar.gz::https://github.com/shirkdog/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('48c66dc9abb7545186d4fba497263c1d1b247c0ea7f0953db4d515e7898461a2')

package() {
  cd $srcdir/$pkgname-$pkgver
  install -Dm644 etc/pulledpork.conf $pkgdir/etc/pulledpork.conf
  install -Dm755 pulledpork.pl $pkgdir/usr/bin/pulledpork.pl
}
