pkgbuilds/wazuh-agent/PKGBUILD

61 lines
1.2 KiB
Bash

# Maintainer: Jesus Martin Ortega Martinez (madara125) <martin.ortega.arashi@gmail.com><jortega@condorbs.net>
# Contributor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
pkgname=wazuh-agent
pkgver=4.6.0
_remRevision=1
_prodver=${pkgver}-${_remRevision}
pkgrel=1
pkgdesc="Wazuh Agent for Arch Linux"
arch=('x86_64')
url="https://wazuh.com/"
license=('gpl2')
depends=(
'curl'
'gcc'
'make'
'sudo'
'wget'
'expect'
'gnupg'
'perl-base'
'perl'
'fakeroot'
'python'
'brotli'
'automake'
'autoconf'
'libtool'
'gawk'
'libsigsegv'
'nodejs'
'base-devel'
'inetutils'
'cmake'
);
optdepends=(
'lsb-release'
);
validpgpkeys=(
'9E646BB0630C8FD18ACD15541B93E6A766CD229D'
'0DCFCA5547B19D2A6099506096B3EE5F29111145'
)
source=("https://packages.wazuh.com/4.x/yum/${pkgname}-${_prodver}.x86_64.rpm")
sha256sums=('efd02f25b76bce5d77976a8a7121a8009edeac32545e5a762e47dcf3182b9d34')
install=$pkgname.install
package() {
#change permissions
chmod -R +w "$srcdir/var/ossec"
#Setup
cd $pkgdir
mv $srcdir/etc .
mv $srcdir/usr .
mv $srcdir/var .
#Set systemd service file perms
chmod 644 $pkgdir/usr/lib/systemd/system/wazuh-agent.service
}