2023-11-17 22:16:24 -06:00
|
|
|
# Maintainer: Jesus Martin Ortega Martinez (madara125) <martin.ortega.arashi@gmail.com><jortega@condorbs.net>
|
2023-11-21 10:09:57 -06:00
|
|
|
# Contributor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
|
2023-11-17 22:16:24 -06:00
|
|
|
pkgname=wazuh-agent
|
|
|
|
pkgver=4.6.0
|
|
|
|
_remRevision=1
|
|
|
|
_prodver=${pkgver}-${_remRevision}
|
|
|
|
pkgrel=1
|
2023-11-21 10:09:57 -06:00
|
|
|
pkgdesc="Wazuh Agent for Arch Linux"
|
2023-11-17 22:16:24 -06:00
|
|
|
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'
|
|
|
|
);
|
2023-11-22 20:32:48 -06:00
|
|
|
validpgpkeys=(
|
|
|
|
'9E646BB0630C8FD18ACD15541B93E6A766CD229D'
|
|
|
|
'0DCFCA5547B19D2A6099506096B3EE5F29111145'
|
|
|
|
)
|
2023-11-17 22:16:24 -06:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|