diff options
-rw-r--r-- | community/suricata/APKBUILD (renamed from testing/suricata/APKBUILD) | 21 | ||||
-rw-r--r-- | community/suricata/suricata.confd (renamed from testing/suricata/suricata.confd) | 0 | ||||
-rw-r--r-- | community/suricata/suricata.initd (renamed from testing/suricata/suricata.initd) | 6 | ||||
-rw-r--r-- | community/suricata/suricata.logrotate (renamed from testing/suricata/suricata.logrotate) | 0 |
4 files changed, 16 insertions, 11 deletions
diff --git a/testing/suricata/APKBUILD b/community/suricata/APKBUILD index 115f025ad2..e55dd321e0 100644 --- a/testing/suricata/APKBUILD +++ b/community/suricata/APKBUILD @@ -22,7 +22,7 @@ builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" - autoreconf -vif || return 1 + autoreconf -vif } build() { @@ -43,20 +43,25 @@ build() { --enable-pie \ --enable-luajit \ || return 1 - make || return 1 + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 - make DESTDIR="$pkgdir" install-full || return 1 + 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 + 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 } sha512sums="1dd386c36a74d1ab6bfa33db1dbde0dbe4f0045dc80f3304ece6b67a630b2a3eacf0b24e76f4501c55bf5ca65a7b54380da202425ca3873a06b3b5f759261453 suricata-4.0.0.tar.gz ed7c78a80192f3f3ed433330df323beccb6079b5413289b9e9faa3fceea2c536de93de7372968d8605abd1618d73c9319ee39d86b16eed22e7313c8667252f5d suricata.confd -67770d953095c22bdf2786641c7f4ec402fa1093a743090278811d223fa5ff3e5987680c84e1117df8fd59306c100256b45cc3b2807a1c2296e31a7485d14b07 suricata.initd +258c6d60fc878dc1c7b7bf93cc758080050f591084a1edf7f1aac81ccb523c73615716616fedd0269f9ac5ef2fa7adcb3e2cefd714754bac5571e9806b6781be suricata.initd 4f76a35bcde78c9860701897fe19bb84cc46bbc429124c4cb2e94cf3330f00ebe8067c0d7f3f83478e9b95323adb947e5081658f455657c4d03c682abe707534 suricata.logrotate" diff --git a/testing/suricata/suricata.confd b/community/suricata/suricata.confd index 9585bdc681..9585bdc681 100644 --- a/testing/suricata/suricata.confd +++ b/community/suricata/suricata.confd diff --git a/testing/suricata/suricata.initd b/community/suricata/suricata.initd index e39312f377..9ea615e4b1 100644 --- a/testing/suricata/suricata.initd +++ b/community/suricata/suricata.initd @@ -48,9 +48,9 @@ stop() { while [ -f ${SURICATAPID} ]; do cnt=$(expr $cnt - 1) if [ $cnt -lt 1 ] ; then - echo - eend 1 "Failed." - break + echo + eend 1 "Failed." + break fi sleep 1 echo -ne "$cnt seconds left before we give up\r" diff --git a/testing/suricata/suricata.logrotate b/community/suricata/suricata.logrotate index f09690a792..f09690a792 100644 --- a/testing/suricata/suricata.logrotate +++ b/community/suricata/suricata.logrotate |