pkgbuilds/wazuh-manager/PKGBUILD

37 lines
950 B
Bash
Raw Normal View History

# 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>
pkgname=wazuh-manager
pkgver=4.6.0
_remRevision=1
_prodver=${pkgver}-${_remRevision}
pkgrel=1
pkgdesc="Wazuh Manager for Arch Linux"
arch=('x86_64')
url="https://wazuh.com/"
license=('gpl2')
depends=(
2023-11-21 10:09:57 -06:00
'wazuh-filebeat'
);
optdepends=(
);
validpgpkeys=('9E646BB0630C8FD18ACD15541B93E6A766CD229D')
source=("https://packages.wazuh.com/4.x/yum/${pkgname}-${_prodver}.x86_64.rpm")
sha256sums=('335b8970652a03d393866f2105e82c2713673e1f7542dccf25a83a4e3e2233ac')
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-manager.service
}