Update pkgbuilds

This commit is contained in:
Kevin Muñoz 2023-11-21 11:09:57 -05:00
parent 71962f00af
commit d1b917908d
No known key found for this signature in database
GPG Key ID: 3CA0B9DF1BE7CE09
14 changed files with 151 additions and 10 deletions

38
egyscan/PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# Maintainer: Kevin Muñoz (MrHacker) <david.munozm@proton.me>
pkgname=Egyscan
pkgver=3.1
pkgrel=1
pkgdesc="Egyscan the guardian angel of your digital existence"
arch=('x86_64')
url="https://github.com/dragonked2/Egyscan"
license=('MIT')
depends=(
'python'
);
optdepends=(
);
validpgpkeys=(
'2B9D22B41F2AF1042BFCE73A3CA0B9DF1BE7CE09'
)
source=("https://github.com/dragonked2/${pkgname}/archive/refs/tags/Version${pkgver}.tar.gz")
sha256sums=('2c51acd60634874d35d1d9378e7411ed88785d21c611643f94cc2d54632782a2')
build() {
cd "$srcdir/$pkgname-Version$pkgver"
python -m venv .venv
source .venv/bin/activate
pip install -r virtualrequirements.txt
nuitka3 --standalone egy.py
cd egy.dist
mv egy.bin ./egyscan
}
package() {
cd "$srcdir/$pkgname-Version$pkgver"
install -Dm755 "egy.dist" "$pkgdir/etc/egyscan"
install -D -p -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -p -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}

View File

@ -1,5 +1,5 @@
pkgbase = wazuh-agent
pkgdesc = Wazuh Dashboard for Arch Linux
pkgdesc = Wazuh Agent for Arch Linux
pkgver = 4.6.0
pkgrel = 1
url = https://wazuh.com/

View File

@ -1,11 +1,11 @@
# Maintainer: Jesus Martin Ortega Martinez (madara125) <martin.ortega.arashi@gmail.com><jortega@condorbs.net>
# Contribuidor: Kevin Muñoz <kmunoz@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 Dashboard for Arch Linux"
pkgdesc="Wazuh Agent for Arch Linux"
arch=('x86_64')
url="https://wazuh.com/"
license=('gpl2')

View File

@ -1,5 +1,10 @@
post_install()
{
echo "creating wazuh user and group"
groupadd -f wazuh
usuario="wazuh" && id "$usuario" &>/dev/null || useradd -g wazuh -d /var/ossec -s /usr/bin/nologin wazuh
chown -R wazuh:wazuh /var/ossec
echo "Done!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-linux.html and follow the configure instructions, also, check https://documentation.wazuh.com/current/user-manual/deployment-variables/deployment-variables-linux.html for deployment vars, and https://documentation.wazuh.com/current/user-manual/agent-enrollment/index.html if you didn't follow wazu's installation guide
or, just run the next commands:
/var/ossec/bin/manage_agents -i <agent_key>

View File

@ -1,5 +1,5 @@
# Maintainer: Jesus Martin Ortega Martinez (madara125) <martin.ortega.arashi@gmail.com><jortega@condorbs.net>
# Contribuidor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
# Contributor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
pkgname=wazuh-dashboard
pkgver=4.6.0
_remRevision=1

View File

@ -1,4 +1,10 @@
post_install()
{
echo "creating wazuh-indexer user and group"
groupadd -f wazuh-dashboard
usuario="wazuh-dashboard" && id "$usuario" &>/dev/null || useradd -d /usr/share/wazuh-dashboard -g wazuh-dashboard -s /usr/bin/nologin wazuh-dashboard
chown -R wazuh-dashboard:wazuh-dashboard /usr/share/wazuh-dashboard
chown -R wazuh-dashboard:wazuh-dashboard /etc/wazuh-dashboard
echo "Done!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html and follow the configure instructions"
}

25
wazuh-filebeat/.SRCINFO Normal file
View File

@ -0,0 +1,25 @@
pkgbase = wazuh-filebeat
pkgdesc = Filebeat version for Wazuh
pkgver = 7.10.2
pkgrel = 1
url = https://wazuh.com/
install = wazuh-filebeat.install
arch = x86_64
license = gpl2
depends = glibc
depends = audit
depends = git
depends = go
depends = libpcap
depends = mage
depends = python-virtualenv
depends = rsync
depends = systemd
depends = python
optdepends = elasticsearch
conflicts = filebeat
source = https://packages.wazuh.com/4.x/yum/filebeat-oss-7.10.2-x86_64.rpm
validpgpkeys = 9E646BB0630C8FD18ACD15541B93E6A766CD229D
sha256sums = 56820530dd749d61ba2750ecefc390393a8a5029dd431bf2eaf6a599a847f8f2
pkgname = wazuh-filebeat

48
wazuh-filebeat/PKGBUILD Normal file
View File

@ -0,0 +1,48 @@
# 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-filebeat
pkgver=7.10.2
_remRevision=1
_prodver=${pkgver}-${_remRevision}
pkgrel=1
pkgdesc="Filebeat version for Wazuh"
arch=('x86_64')
url="https://wazuh.com/"
license=('gpl2')
depends=(
'glibc'
'audit'
'git'
'go'
'libpcap'
'mage'
'python-virtualenv'
'rsync'
'systemd'
'python'
);
optdepends=(
'elasticsearch'
);
conflicts=('filebeat')
validpgpkeys=('9E646BB0630C8FD18ACD15541B93E6A766CD229D')
source=("https://packages.wazuh.com/4.x/yum/filebeat-oss-7.10.2-x86_64.rpm")
sha256sums=('56820530dd749d61ba2750ecefc390393a8a5029dd431bf2eaf6a599a847f8f2')
install=$pkgname.install
package() {
#Setup
cd $pkgdir
mv $srcdir/etc .
mv $srcdir/lib .
mv $srcdir/usr .
#Set systemd service file perms
chmod 644 $pkgdir/lib/systemd/system/filebeat.service
}

View File

@ -0,0 +1,4 @@
post_install()
{
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-manager/step-by-step.html and follow the configure instructions for filebeat"
}

View File

@ -1,5 +1,5 @@
# Maintainer: Jesus Martin Ortega Martinez (madara125) <martin.ortega.arashi@gmail.com><jortega@condorbs.net>
# Contribuidor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
# Contributor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
pkgname=wazuh-indexer
pkgver=4.6.0
_remRevision=1

View File

@ -1,4 +1,12 @@
post_install()
{
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-indexer/step-by-step.html and follow the configure instructions"
echo "creating wazuh-indexer user and group"
groupadd -f wazuh-indexer
usuario="wazuh-indexer" && id "$usuario" &>/dev/null || useradd -d /usr/share/wazuh-indexer -g wazuh-indexer -s /usr/bin/nologin wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /usr/share/wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /etc/wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /var/log/wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /var/lib/wazuh-indexer
echo "Done!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-indexer/step-by-step.html and follow the configure instructions and Cluster initialization instructions"
}

View File

@ -6,7 +6,7 @@ pkgbase = wazuh-manager
install = wazuh-manager.install
arch = x86_64
license = gpl2
depends = filebeat
depends = wazuh-filebeat
source = https://packages.wazuh.com/4.x/yum/wazuh-manager-4.6.0-1.x86_64.rpm
validpgpkeys = 9E646BB0630C8FD18ACD15541B93E6A766CD229D
sha256sums = 335b8970652a03d393866f2105e82c2713673e1f7542dccf25a83a4e3e2233ac

View File

@ -1,5 +1,5 @@
# Maintainer: Jesus Martin Ortega Martinez (madara125) <martin.ortega.arashi@gmail.com><jortega@condorbs.net>
# Contribuidor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
# Contributor: Kevin Muñoz (MrHacker) <kmunoz@condorbs.net><david.munozm@proton.me>
pkgname=wazuh-manager
pkgver=4.6.0
_remRevision=1
@ -10,7 +10,7 @@ arch=('x86_64')
url="https://wazuh.com/"
license=('gpl2')
depends=(
'filebeat'
'wazuh-filebeat'
);
optdepends=(
);

View File

@ -1,4 +1,11 @@
post_install()
{
echo "creating wazuh user and group"
groupadd -f wazuh
usuario="wazuh" && id "$usuario" &>/dev/null || useradd -g wazuh -d /var/ossec -s /usr/bin/nologin wazuh
chown -R wazuh:wazuh /var/ossec
echo "generating cert files for wazuh-authd to run properly"
./var/ossec/bin/wazuh-authd -C 265 -B 2048 -K /var/ossec/etc/sslmanager.key -X /var/ossec/etc/sslmanager.cert -S "/C=US/ST=California/CN=wazuh/"
echo "Done!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html and follow the configure instructions"
}