# Contributor: Steve McMaster # Maintainer: Steve McMaster global pkgname := 'suricata' global pkgver := '4.0.0' global pkgrel := '0' global pkgdesc := '"High performance Network IDS, IPS and Network Security Monitoring engine'" global url := '"https://suricata-ids.org/'" # luajit is not available for disabled arches global arch := '"all !s390x'" global license := '"GPL-2'" global makedepends := '"automake autoconf libtool libhtp-dev>=0.5.25 libcap-ng-dev file-dev luajit-dev geoip-dev pcre-dev yaml-dev libpcap-dev hiredis-dev libnet-dev libnetfilter_queue-dev libnfnetlink-dev jansson-dev python2 nss-dev nspr-dev'" global subpackages := ""$pkgname-doc"" global source := ""http://www.openinfosecfoundation.org/download/$pkgname-$pkgver.tar.gz $pkgname.confd $pkgname.initd $pkgname.logrotate "" global builddir := ""$srcdir/$pkgname-$pkgver"" proc prepare { cd $builddir autoreconf -vif } proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-non-bundled-htp \ --enable-nfqueue \ --disable-gccmarch-native \ --enable-hiredis \ --enable-geoip \ --enable-gccprotect \ --enable-pie \ --enable-luajit \ || return 1 make } proc check { cd $builddir make check } proc package { cd $builddir make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install-full cd $srcdir install -D -m 755 $pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -D -m 644 $pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -D -m 644 $pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname } global sha512sums := '"1dd386c36a74d1ab6bfa33db1dbde0dbe4f0045dc80f3304ece6b67a630b2a3eacf0b24e76f4501c55bf5ca65a7b54380da202425ca3873a06b3b5f759261453 suricata-4.0.0.tar.gz ed7c78a80192f3f3ed433330df323beccb6079b5413289b9e9faa3fceea2c536de93de7372968d8605abd1618d73c9319ee39d86b16eed22e7313c8667252f5d suricata.confd 258c6d60fc878dc1c7b7bf93cc758080050f591084a1edf7f1aac81ccb523c73615716616fedd0269f9ac5ef2fa7adcb3e2cefd714754bac5571e9806b6781be suricata.initd 4f76a35bcde78c9860701897fe19bb84cc46bbc429124c4cb2e94cf3330f00ebe8067c0d7f3f83478e9b95323adb947e5081658f455657c4d03c682abe707534 suricata.logrotate'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(suricata)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(4.0.0)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("High performance Network IDS, IPS and Network Security Monitoring engine"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://suricata-ids.org/"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ ("all !s390x"))} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL-2))} spids:[33])] spids: [33] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ("automake autoconf libtool libhtp-dev>=0.5.25 libcap-ng-dev\n") ("\tfile-dev luajit-dev geoip-dev pcre-dev yaml-dev libpcap-dev hiredis-dev\n") ("\tlibnet-dev libnetfilter_queue-dev libnfnetlink-dev jansson-dev python2\n") ("\tnss-dev nspr-dev") ) } spids: [38] ) ] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [46] ) ] spids: [46] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://www.openinfosecfoundation.org/download/") ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\t") ($ VSub_Name "$pkgname") (".confd\n") ("\t") ($ VSub_Name "$pkgname") (".initd\n") ("\t") ($ VSub_Name "$pkgname") (".logrotate\n") ("\t") ) } spids: [52] ) ] spids: [52] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver"))} spids: [71] ) ] spids: [71] ) (FuncDef name: prepare body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(autoreconf)} {(-vif)})] spids: [85] ) spids: [81 84] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--mandir) (Lit_Other "=") (/usr/share/man)} {(--localstatedir) (Lit_Other "=") (/var)} {(--enable-non-bundled-htp)} {(--enable-nfqueue)} {(--disable-gccmarch-native)} {(--enable-hiredis)} {(--enable-geoip)} {(--enable-gccprotect)} {(--enable-pie)} {(--enable-luajit)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(make)}) ] spids: [106] ) spids: [102 105] ) (FuncDef name: check body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(check)})] spids: [204] ) spids: [200 203] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install-full)}) (C {(cd)} {(DQ ($ VSub_Name "$srcdir"))}) (C {(install)} {(-D)} {(-m)} {(755)} {($ VSub_Name "$pkgname") (.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/) ($ VSub_Name "$pkgname")} ) (C {(install)} {(-D)} {(-m)} {(644)} {($ VSub_Name "$pkgname") (.confd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/conf.d/) ($ VSub_Name "$pkgname")} ) (C {(install)} {(-D)} {(-m)} {(644)} {($ VSub_Name "$pkgname") (.logrotate)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/logrotate.d/) ($ VSub_Name "$pkgname")} ) ] spids: [225] ) spids: [221 224] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "1dd386c36a74d1ab6bfa33db1dbde0dbe4f0045dc80f3304ece6b67a630b2a3eacf0b24e76f4501c55bf5ca65a7b54380da202425ca3873a06b3b5f759261453 suricata-4.0.0.tar.gz\n" ) ( "ed7c78a80192f3f3ed433330df323beccb6079b5413289b9e9faa3fceea2c536de93de7372968d8605abd1618d73c9319ee39d86b16eed22e7313c8667252f5d suricata.confd\n" ) ( "258c6d60fc878dc1c7b7bf93cc758080050f591084a1edf7f1aac81ccb523c73615716616fedd0269f9ac5ef2fa7adcb3e2cefd714754bac5571e9806b6781be suricata.initd\n" ) ( "4f76a35bcde78c9860701897fe19bb84cc46bbc429124c4cb2e94cf3330f00ebe8067c0d7f3f83478e9b95323adb947e5081658f455657c4d03c682abe707534 suricata.logrotate" ) ) } spids: [318] ) ] spids: [318] ) ] )