aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ossec-hids/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-03 04:55:11 -0300
committerprspkt <prspkt@protonmail.com>2019-06-05 21:24:57 +0300
commit1d2d74fdad190bd5bca2a10b44f2ff71f28340a3 (patch)
tree959f26751babec737561bb1316072456b8509d35 /testing/ossec-hids/APKBUILD
parenta66d7fea59472440dc3feee7e15ac08184e2d31a (diff)
downloadaports-1d2d74fdad190bd5bca2a10b44f2ff71f28340a3.tar.bz2
aports-1d2d74fdad190bd5bca2a10b44f2ff71f28340a3.tar.xz
testing/ossec-hids: modernize, fix license
Diffstat (limited to 'testing/ossec-hids/APKBUILD')
-rw-r--r--testing/ossec-hids/APKBUILD9
1 files changed, 3 insertions, 6 deletions
diff --git a/testing/ossec-hids/APKBUILD b/testing/ossec-hids/APKBUILD
index 90340d750c..39690a87a8 100644
--- a/testing/ossec-hids/APKBUILD
+++ b/testing/ossec-hids/APKBUILD
@@ -2,11 +2,11 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ossec-hids
pkgver=3.3.0
-pkgrel=0
+pkgrel=1
pkgdesc="Open Source Host-based Intrusion Detection System"
url="http://www.ossec.net/"
arch="all !aarch64 !armhf !armv7"
-license="GPL-3.0"
+license="GPL-2.0-only WITH openssl-exception"
depends="inotify-tools procps"
makedepends="linux-headers inotify-tools-dev findutils file zlib-dev pcre2-dev"
install="$pkgname.pre-install"
@@ -18,11 +18,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/ossec/$pkgname/archive/v$pkg
$pkgname.logrotate
musl_lack_of_a_out_h.patch
config"
-builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
+prepare() {
default_prepare
- cd "$builddir"
export USER_INSTALL_TYPE=server
export USER_NO_STOP=yes
export USER_DIR=/var/ossec
@@ -38,7 +36,6 @@ build() {
}
package() {
- cd "$builddir"
mkdir -p "$pkgdir"/etc
USER_DIR="$pkgdir"/var/ossec ./install.sh
sed -i '/DIRECTORY=/c\DIRECTORY="/var/ossec"' "$pkgdir/etc/ossec-init.conf"