summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a88a91b7bc0bb9261fab1112730ff42a1d6499cc (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
39
40
41
42
43
# Maintainer: Jefferson Gonzalez <jgmdev@gmail.com>

pkgname=ddos-deflate
pkgver=v1.1.r0.gc334796
pkgrel=1
pkgdesc="Lightweight bash shell script designed to assist in the process of blocking a denial of service attack"
arch=('any')
url="https://github.com/jgmdev/ddos-deflate/"
license=('Artistic')
depends=(
  'iptables'
  'net-tools'
  'sed'
  'gawk'
  'grep'
  'coreutils'
  'bind-tools'
  'dsniff'
  'bash'
  'grepcidr'
)
backup=(
  'etc/ddos/ddos.conf'
  'etc/ddos/ignore.ip.list'
  'etc/ddos/ignore.host.list'
)
source=(
  "git://github.com/jgmdev/ddos-deflate"
)
md5sums=(
  'SKIP'
)

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir"/$pkgname

  DESTDIR="$pkgdir" ./install.sh
}