2017-03-04 17:43:44 +00:00
|
|
|
# Template file for 'suricata'
|
|
|
|
pkgname=suricata
|
|
|
|
version=3.2.1
|
2017-07-11 16:48:03 +00:00
|
|
|
revision=5
|
2017-03-04 17:43:44 +00:00
|
|
|
build_style=gnu-configure
|
2017-03-26 11:47:22 +00:00
|
|
|
configure_args="--disable-gccmarch-native"
|
2017-03-04 17:43:44 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libnet-devel libpcap-devel pcre-devel libyaml-devel libcap-ng-devel file-devel"
|
|
|
|
short_desc="Next Generation Intrusion Detection and Prevention Engine"
|
|
|
|
maintainer="demiaster <marta.celeste.feriani@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://suricata-ids.org/"
|
2017-03-26 16:10:21 +00:00
|
|
|
distfiles="https://www.openinfosecfoundation.org/download/$pkgname-$version.tar.gz
|
|
|
|
https://rules.emergingthreats.net/open/suricata/emerging.rules.tar.gz"
|
|
|
|
checksum="0e0b0cf49016804bb2fb1fc4327341617e76a67902f4e03e0ef6d16c1d7d3994
|
2017-07-11 16:48:03 +00:00
|
|
|
4f9f657f04b41d34e30c8995dc0897a604d6148130b972cca055f1954740d4c4"
|
2017-03-26 16:10:21 +00:00
|
|
|
|
|
|
|
system_accounts="$pkgname"
|
2017-07-11 16:57:06 +00:00
|
|
|
conf_files="/etc/$pkgname/*.* /etc/$pkgname/rules/*"
|
2017-03-26 16:10:21 +00:00
|
|
|
|
|
|
|
post_build() {
|
2017-07-11 16:48:03 +00:00
|
|
|
sed -i 's|#run-as:|run-as:|g' $pkgname.yaml
|
|
|
|
sed -i "s|# user: suri| user: $pkgname|g" $pkgname.yaml
|
|
|
|
sed -i "s|# group: suri| group: $pkgname|g" $pkgname.yaml
|
|
|
|
sed -i "s|#daemon-directory: \"/\"|daemon-directory: \"/var/lib/suricata\"|g" $pkgname.yaml
|
2017-03-26 16:10:21 +00:00
|
|
|
}
|
2017-03-04 17:43:44 +00:00
|
|
|
|
|
|
|
post_install() {
|
2017-03-26 16:10:21 +00:00
|
|
|
vsv $pkgname
|
2017-03-26 11:47:22 +00:00
|
|
|
vinstall $pkgname.yaml 644 etc/$pkgname
|
2017-03-26 16:10:21 +00:00
|
|
|
vinstall classification.config 644 etc/$pkgname
|
|
|
|
vinstall reference.config 644 etc/$pkgname
|
|
|
|
vinstall threshold.config 644 etc/$pkgname
|
2017-03-04 17:43:44 +00:00
|
|
|
vmkdir etc/$pkgname/rules
|
|
|
|
vcopy rules/*.rules etc/$pkgname/rules
|
2017-03-26 16:10:21 +00:00
|
|
|
vcopy ../rules/*.rules etc/$pkgname/rules
|
|
|
|
vlicense ../rules/LICENSE emerging-rules.LICENSE
|
2017-03-04 17:43:44 +00:00
|
|
|
}
|