first commit

This commit is contained in:
Kevin Muñoz 2023-08-30 20:27:59 -05:00
commit 12ba62173c
No known key found for this signature in database
GPG Key ID: 3CA0B9DF1BE7CE09
34 changed files with 816 additions and 0 deletions

0
.SRCINFO Normal file
View File

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
*.tar.xz
*.tar.gz
*.tar.zst
*.tar.zst.sig
pkg
src

View File

@ -0,0 +1,23 @@
pkgname=condorcore-keyring
pkgver=20230830
pkgrel=1
pkgdesc='CondorCore keyring'
arch=('any')
url='https://condorbs.net/'
license=('GPL')
install="${pkgname}.install"
source=('https://condorcs.net/mrhacker/keyring/raw/branch/master/Makefile'
'https://condorcs.net/mrhacker/keyring/raw/branch/master/condorcore.gpg'
'https://condorcs.net/mrhacker/keyring/raw/branch/master/condorcore-revoked'
'https://condorcs.net/mrhacker/keyring/raw/branch/master/condorcore-trusted')
validpgpkeys=('597244DBEA52EC6EFE5F36A4FDD42A59FD43C07B' # condorbs master key
)
sha512sums=('c8abce2fd59b3170925512725b0219b5de08075c33077ae5660f30887fdcd878b1bd1506f00f96398dd440b45dcf6c5c06ec8258a2c2e0155ba731292b99c0e6'
'6d70e73dc59e65cb4427311d0824fb4b08feeff26b7e0d6b98ab82ad437c2414710559bdf7d29667138c1abea3392c4e1cfbe8985e593b8b0cd3bed8330194be'
'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e'
'6d87a54bbe19b0c878859ef34b82b205d19bfc72d358b5df89b4bc6fb8b925cdecddee4f999cb9b106cf9cf7a9cd6f35d4ed79e0d7dd73349e306114991f24a0')
package() {
cd "${srcdir}"
make PREFIX=/usr DESTDIR=${pkgdir} install
}

View File

@ -0,0 +1,58 @@
## copy from pacman-key
_msg() {
(( QUIET )) && return
local mesg=$1; shift
printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
}
_error() {
local mesg=$1; shift
printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
}
_get_from() {
while IFS='=' read -r key value; do
[[ -z $key || ${key:0:1} = '#' ]] && continue
if [[ ${key%% *} = "$2" && -n ${value##* } ]]; then
echo "${value##* }"
return 0
fi
done < "$1"
if [[ -n "$3" ]]; then
printf '%s\n' "$3"
return 0
fi
return 1
}
CONFIG=${CONFIG:-/etc/pacman.conf}
PACMAN_KEYRING_DIR=${PACMAN_KEYRING_DIR:-$(_get_from "$CONFIG" "GPGDir" "/etc/pacman.d/gnupg")}
GPG_PACMAN=(gpg --homedir "${PACMAN_KEYRING_DIR}" --no-permission-warning)
post_upgrade() {
if usr/bin/pacman-key -l >/dev/null 2>&1; then
usr/bin/pacman-key --populate
## needed for https://github.com/archlinuxcn/repo/issues/300
_msg "$(gettext "Updating trust database...")"
if ! "${GPG_PACMAN[@]}" --batch --check-trustdb --yes ; then
_error "$(gettext "Trust database could not be updated.")"
exit 1
fi
fi
if (usr/bin/grep -A3 "[^#]*\[condorcore\]" /etc/pacman.conf | grep "TrustAll" >/dev/null 2>&1); then
_error 'Please remove the SigLevel= line of [condorcore] from "/etc/pacman.conf" to use the default setting'
_error '请删除 /etc/pacman.conf 中 [condorcore] 下的 SigLevel= 行,以使用默认设置'
fi
}
post_install() {
if [ -x usr/bin/pacman-key ]; then
post_upgrade
fi
}

View File

@ -0,0 +1,31 @@
# Maintainers: Kevin Muñoz <kmunoz@condorbs.net>
pkgname=condorcore-mirrorlist
pkgver=23.8
pkgrel=1
pkgdesc="CondorCore mirrorlist"
arch=('x86_64')
url="https://condorbs.net"
license=('GPL3')
options=(!strip !emptydirs)
backup=("etc/pacman.d/$pkgname") # to keep possibly ranked mirrorlist
source=('https://condorcs.net/mrhacker/condorcore-mirrorlist/raw/branch/master/condorcore-mirrorlist')
sha512sums=('09c2126b49135c7a94fb8cda3143e5362569d5de29d4a216ef13dffc02aaa2dfaf7ea905a67e3a95e53e06df222c540c5f6c135cb66db37be54813f90866d9f2')
#_not_used_prepare() {
# Create condorcore-mirrorlist.offline for offline install.
# Prefer mirrors that work well worldwide.
#local offline="condorcore-mirrorlist.offline-install"
#local mirrorlist=condorcore-mirrorlist
#printf "# condorcore mirrorlist for offline install only.\n\n" > $offline
#cat $mirrorlist | sed -n '/^## Germany/,/^$/p' >> $offline
#cat $mirrorlist | sed -n '/^## [A-Z].*/,$p' >> $offline
#}
package() {
install -Dm644 "$srcdir/$pkgname" "$pkgdir/etc/pacman.d/$pkgname"
}

View File

@ -0,0 +1,20 @@
######################################################
#### ####
#### CondorCore Repository Mirrorlist ####
#### ####
######################################################
#### Entry in file /etc/pacman.conf:
### [condorcore]
### SigLevel = PackageRequired
### Include = /etc/pacman.d/condorcore-mirrorlist
######################################################
## USA
Server = https://aur.draggane.com/$arch
## MX
Server = https://aur.centauricorex.net/$arch

14
iptools/.SRCINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = iptools
pkgdesc = Herramienta para obtener informacion de ip's sospechosas
pkgver = 1.0.1
pkgrel = 1
url = https://condorbs.net/ciberseguridad
arch = x86_64
license = gpl3
source = https://condorcs.net/kmunoz/iptools/-/raw/master/iptools
source = https://condorcs.net/kmunoz/iptools/-/raw/master/iptools.sig
validpgpkeys = 458B754562D956CBE672A7802F287937155A4380
sha256sums = 76eebbb8bb6b9fde1d99bfbf2fa09b7ecddf0a6398918307e643c2c94c176129
sha256sums = 4db95319a8de88025e30d66864a04058368bbd6b4a0921a2e57d2d83c5dd16fa
pkgname = iptools

26
iptools/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
# Contribuidor: Kevin Muñoz <kmunoz@condorbs.net>
pkgname=iptools
pkgver=1.0.1
pkgrel=1
pkgdesc="Herramienta para obtener informacion de ip's sospechosas"
arch=('x86_64')
url="https://condorbs.net/ciberseguridad"
license=('gpl3')
# Dependencias del paquete
# Fuentes del paquete y Verificación GPG
validpgpkeys=('3CA0B9DF1BE7CE09')
source=("https://condorcs.net/kmunoz/iptools/-/raw/master/iptools"
)
# Verificación del archivo fuente y su firma
sha256sums=('76eebbb8bb6b9fde1d99bfbf2fa09b7ecddf0a6398918307e643c2c94c176129'
'4db95319a8de88025e30d66864a04058368bbd6b4a0921a2e57d2d83c5dd16fa')
package() {
# Instalar el script en el directorio /usr/bin/
install -Dm755 "$srcdir/iptools" "$pkgdir/usr/bin/iptools"
}

27
mssql-server/.SRCINFO Normal file
View File

@ -0,0 +1,27 @@
pkgbase = mssql-server
pkgdesc = Microsoft SQL Server for Linux
pkgver = 16.0.4045.3
pkgrel = 1
url = https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-overview?view=sql-server-ver16
install = mssql-server.install
arch = x86_64
license = unknown
depends = libatomic_ops
depends = libunwind
depends = numactl
depends = glibc
depends = libc++
depends = gdb
depends = openssl-1.1
depends = krb5
depends = nss
depends = sssd
depends = gawk
depends = sed
depends = pam
depends = libldap<=2.4.59
optdepends = python-pyodbc
source = http://csd-apt-sea-d-4.southeastasia.cloudapp.azure.com/rhel/8/mssql-server-2022/Packages/m/mssql-server-16.0.4045.3-1.x86_64.rpm
sha256sums = 0d9415dc40c96e60d19af40351490e18f73af0eeee0acff5f14c24e078a29c7c
pkgname = mssql-server

53
mssql-server/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
# Maintainer: DoctorZeus(Dan) <contact@techtonicsoftware.com>
# Contributor: Gabriel Morrison Lima Dantas <gabrielmldantas@gmail.com>
# Contributor: Aleksey Kamenskikh <aleksey.kamenskikh@gmail.com>
pkgname=mssql-server
pkgver=16.0.4045.3
_remRevision=1
_prodver=${pkgver}-${_remRevision}
pkgrel=1
pkgdesc="Microsoft SQL Server for Linux"
arch=('x86_64')
url="https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-overview?view=sql-server-ver16"
license=('unknown')
depends=(
'libatomic_ops'
'libunwind'
'numactl'
'glibc'
'libc++'
'gdb'
'openssl-1.1'
'krb5'
'nss'
'sssd'
'gawk'
'sed'
'pam'
'libldap<=2.4.59'
);
optdepends=(
'python-pyodbc'
);
#This is a local azure instance that resolves as an alias of "packages.microsoft.com/rhel/7/mssql-server-2019" as some regions have different dir structures
source=("http://csd-apt-sea-d-4.southeastasia.cloudapp.azure.com/rhel/8/mssql-server-2022/Packages/m/${pkgname}-${_prodver}.x86_64.rpm")
sha256sums=('0d9415dc40c96e60d19af40351490e18f73af0eeee0acff5f14c24e078a29c7c')
install=$pkgname.install
package() {
#Setup
cd $pkgdir
mv $srcdir/opt .
mv $srcdir/usr .
#Create links to non-breaking libssl and libcrypto libs
ln -sf /lib/libssl.so.1.1 $pkgdir/opt/mssql/lib/libssl.so
ln -sf /lib/libcrypto.so.1.1 $pkgdir/opt/mssql/lib/libcrypto.so
#Set systemd service file perms
chmod 644 $pkgdir/usr/lib/systemd/system/mssql-server.service
}

View File

@ -0,0 +1,4 @@
post_install()
{
echo "Now run /opt/mssql/bin/mssql-conf setup"
}

13
mssql-tools/.SRCINFO Normal file
View File

@ -0,0 +1,13 @@
pkgbase = mssql-tools
pkgdesc = Microsoft® SQL Server® Tools for Linux
pkgver = 18.0.1.1
pkgrel = 1
url = https://www.microsoft.com/en-us/sql-server/sql-server-vnext-including-Linux
arch = x86_64
license = custom
depends = msodbcsql
options = !strip
source = https://packages.microsoft.com/rhel/8/prod/mssql-tools18-18.0.1.1-1.x86_64.rpm
sha512sums = 81b2ab5dbda99f0612bf71ad4434df2d4fc137d80813bfb3ea9a46a8ae6bc766a5172a7594eb6e623fcd8ec463671fef701a04ce0ac82b0275131ebba1a3afb9
pkgname = mssql-tools

27
mssql-tools/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
# Maintainer: Karuna Murti <karuna.murti@gmail.com>
pkgname=mssql-tools
pkgver=18.0.1.1
pkgrel=1
pkgdesc="Microsoft® SQL Server® Tools for Linux"
arch=('x86_64')
url="https://www.microsoft.com/en-us/sql-server/sql-server-vnext-including-Linux"
license=('custom')
depends=('msodbcsql')
options=('!strip')
source=("https://packages.microsoft.com/rhel/8/prod/${pkgname}18-$pkgver-1.x86_64.rpm")
sha512sums=('81b2ab5dbda99f0612bf71ad4434df2d4fc137d80813bfb3ea9a46a8ae6bc766a5172a7594eb6e623fcd8ec463671fef701a04ce0ac82b0275131ebba1a3afb9')
package() {
cd "$srcdir"
mv usr/share/{doc,licenses}
mv usr/share/licenses/{${pkgname}18,$pkgname}
mv opt/{${pkgname}18,$pkgname}
mv usr opt "$pkgdir"
install -dm755 "$pkgdir"/usr/bin/
cd "$pkgdir"/opt/$pkgname/bin
for bin in *; do
ln -s ../../opt/$pkgname/bin/"$bin" "$pkgdir"/usr/bin/"$bin"
done
}

25
paru-bin/.SRCINFO Normal file
View File

@ -0,0 +1,25 @@
pkgbase = paru-bin
pkgdesc = Feature packed AUR helper
pkgver = 1.11.2
pkgrel = 1
url = https://github.com/morganamilo/paru
arch = x86_64
arch = aarch64
arch = armv7h
license = GPL3
depends = git
depends = pacman
optdepends = asp: downloading repo pkgbuilds
optdepends = bat: colored pkgbuild printing
optdepends = devtools: build in chroot
provides = paru
conflicts = paru
backup = etc/paru.conf
source_x86_64 = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-x86_64.tar.zst
sha256sums_x86_64 = 8cb2faa8098f259c5faffe2c3e94cdc4f0d4dc1a59921b818f1ec0fc50deb278
source_aarch64 = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-aarch64.tar.zst
sha256sums_aarch64 = ff9272600e5e0b4e380ced5376a2c2ee480f34e84456235dec785c63378ec804
source_armv7h = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-armv7h.tar.zst
sha256sums_armv7h = c73b0f4dcba0dd45c222c6a00a923c7811be29a1ff1ab8972bac2c0b569e5968
pkgname = paru-bin

35
paru-bin/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
# Maintainer: Morgan <morganamilo@archlinux.org>
pkgname=paru-bin
pkgver=1.11.2
pkgrel=1
pkgdesc='Feature packed AUR helper'
url='https://github.com/morganamilo/paru'
source_x86_64=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-x86_64.tar.zst")
source_aarch64=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-aarch64.tar.zst")
source_armv7h=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-armv7h.tar.zst")
backup=("etc/paru.conf")
arch=('x86_64' 'aarch64' 'armv7h')
license=('GPL3')
depends=('git' 'pacman')
optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot')
conflicts=('paru')
provides=('paru')
sha256sums_x86_64=('8cb2faa8098f259c5faffe2c3e94cdc4f0d4dc1a59921b818f1ec0fc50deb278')
sha256sums_aarch64=('ff9272600e5e0b4e380ced5376a2c2ee480f34e84456235dec785c63378ec804')
sha256sums_armv7h=('c73b0f4dcba0dd45c222c6a00a923c7811be29a1ff1ab8972bac2c0b569e5968')
package() {
cd "$srcdir/"
install -Dm755 paru "${pkgdir}/usr/bin/paru"
install -Dm644 paru.conf "${pkgdir}/etc/paru.conf"
install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8"
install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5"
install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash"
install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish"
install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru"
cp -r locale "$pkgdir/usr/share/"
}

24
paru/.SRCINFO Normal file
View File

@ -0,0 +1,24 @@
pkgbase = paru
pkgdesc = Feature packed AUR helper
pkgver = 1.11.1
pkgrel = 1
url = https://github.com/morganamilo/paru
arch = i686
arch = pentium4
arch = x86_64
arch = arm
arch = armv7h
arch = armv6h
arch = aarch64
license = GPL3
makedepends = cargo
depends = git
depends = pacman
optdepends = asp: downloading repo pkgbuilds
optdepends = bat: colored pkgbuild printing
optdepends = devtools: build in chroot
backup = etc/paru.conf
source = paru-1.11.1.tar.gz::https://github.com/Morganamilo/paru/archive/v1.11.1.tar.gz
sha256sums = 42cefa8cdf48e3aec3f9922235f1e1126a9fe3262f1644494e1be51980e520d8
pkgname = paru

47
paru/PKGBUILD Normal file
View File

@ -0,0 +1,47 @@
# Maintainer: Morgan <morganamilo@archlinux.org>
pkgname=paru
pkgver=1.11.1
pkgrel=1
pkgdesc='Feature packed AUR helper'
url='https://github.com/morganamilo/paru'
source=("$pkgname-$pkgver.tar.gz::https://github.com/Morganamilo/paru/archive/v$pkgver.tar.gz")
backup=("etc/paru.conf")
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
license=('GPL3')
makedepends=('cargo')
depends=('git' 'pacman')
optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot')
sha256sums=('42cefa8cdf48e3aec3f9922235f1e1126a9fe3262f1644494e1be51980e520d8')
validpgpkeys=('458B754562D956CBE672A7802F287937155A4380')
build () {
cd "$srcdir/$pkgname-$pkgver"
if pacman -T pacman-git > /dev/null; then
_features+="git,"
fi
if [[ $CARCH != x86_64 ]]; then
export CARGO_PROFILE_RELEASE_LTO=off
fi
cargo build --locked --features "${_features:-}" --release --target-dir target
./scripts/mkmo locale/
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 target/release/paru "${pkgdir}/usr/bin/paru"
install -Dm644 paru.conf "${pkgdir}/etc/paru.conf"
install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8"
install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5"
install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash"
install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish"
install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru"
install -d "$pkgdir/usr/share/"
cp -r locale "$pkgdir/usr/share/"
}

20
splunk/.SRCINFO Normal file
View File

@ -0,0 +1,20 @@
pkgbase = splunk
pkgdesc = Statistical analysis and search tool for logs and machine data
pkgver = 9.1.0.1
pkgrel = 1
epoch = 3
url = https://www.splunk.com/
install = splunk.install
arch = x86_64
license = custom
options = !strip
source = splunk.service
source = splunk.sysusers
source = splunk.tmpfiles
sha256sums = f4e831e3b281f1e677a3597fc85162cd347803ea3b41605f990347000e5caff9
sha256sums = 236deb352218f9551df894efd613aad201afb20713ac563ab381f68b6ffce853
sha256sums = 56b70a2395270fc038987241504df11c390f3234d5be640bbc6a311b978e8475
source_x86_64 = https://download.splunk.com/products/splunk/releases/9.1.0.1/linux/splunk-9.1.0.1-77f73c9edb85-Linux-x86_64.tgz
sha256sums_x86_64 = 8d2f5747957ea05d53c7f690f6329fa66457c2961c7f09bb9f4234af3a95fdcf
pkgname = splunk

34
splunk/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: L. Bradley LaBoon <me@bradleylaboon.com>
pkgname=splunk
basever=9.1.0.1
splunkver=${basever}-77f73c9edb85
# Splunk is inconsistent with the length of their version numbers
if [ ${#basever} -gt 5 ]; then
pkgver=${basever}
else
pkgver=${basever}.0
fi
pkgrel=1
epoch=3
pkgdesc="Statistical analysis and search tool for logs and machine data"
url="https://www.splunk.com/"
arch=('x86_64')
license=('custom')
install="$pkgname.install"
source=("$pkgname.service" "$pkgname.sysusers" "$pkgname.tmpfiles")
source_x86_64=("https://download.splunk.com/products/splunk/releases/$basever/linux/$pkgname-$splunkver-Linux-x86_64.tgz")
sha256sums=('f4e831e3b281f1e677a3597fc85162cd347803ea3b41605f990347000e5caff9'
'236deb352218f9551df894efd613aad201afb20713ac563ab381f68b6ffce853'
'56b70a2395270fc038987241504df11c390f3234d5be640bbc6a311b978e8475')
sha256sums_x86_64=('8d2f5747957ea05d53c7f690f6329fa66457c2961c7f09bb9f4234af3a95fdcf')
options=(!strip)
package() {
cd "$srcdir"
install -vDm 644 ${pkgname}.sysusers "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -vDm 644 ${pkgname}.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
install -Dm644 "$pkgname/license-eula.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
mkdir "$pkgdir/opt"
cp -r "$pkgname" "$pkgdir/opt/"
}

61
splunk/splunk.install Normal file
View File

@ -0,0 +1,61 @@
SPLUNK_HOME="/opt/splunk"
post_install() {
if [ ! -f "$SPLUNK_HOME/etc/splunk-launch.conf" ]; then
sed "s%# SPLUNK_HOME=.*%SPLUNK_HOME=$SPLUNK_HOME%g" "$SPLUNK_HOME/etc/splunk-launch.conf.default" > "$SPLUNK_HOME/etc/splunk-launch.conf"
fi
# Build the post-install message in steps:
touch "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" > "$SPLUNK_HOME/ftr"
echo "Splunk has been installed in:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To start Splunk, run the command:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME/bin/splunk start" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To use the Splunk web interface, point your browser to:" >> "$SPLUNK_HOME/ftr"
echo " http://$HOSTNAME:8000" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "Complete documentation is at http://docs.splunk.com/Documentation/Splunk" >> "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" >> "$SPLUNK_HOME/ftr"
echo "Splunk has been installed to $SPLUNK_HOME"
echo "You can start Splunk by running 'systemctl start splunk'"
}
pre_upgrade() {
echo "Attempting to stop the installed Splunk Server..."
$SPLUNK_HOME/bin/splunk stop
systemctl stop splunk
}
post_upgrade() {
# Build the post-upgrade message in steps:
touch "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" > "$SPLUNK_HOME/ftr"
echo "Splunk has been updated in:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To start Splunk, run the command:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME/bin/splunk start" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To use the Splunk web interface, point your browser to:" >> "$SPLUNK_HOME/ftr"
echo " http://$HOSTNAME:8000" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "Complete documentation is at http://docs.splunk.com/Documentation/Splunk" >> "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" >> "$SPLUNK_HOME/ftr"
echo "Splunk has been upgraded in $SPLUNK_HOME"
echo "Run 'systemctl start splunk' to complete the upgrade."
}
pre_remove() {
echo "Attempting to stop the installed Splunk Server..."
$SPLUNK_HOME/bin/splunk stop
systemctl stop splunk
}

17
splunk/splunk.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=Splunk
Wants=network.target
After=network.target
[Service]
Type=forking
RemainAfterExit=yes
User=splunk
ExecStart=/opt/splunk/bin/splunk start --answer-yes --no-prompt --accept-license
ExecStop=/opt/splunk/bin/splunk stop
ExecReload=/opt/splunk/bin/splunk restart
StandardOutput=syslog
TimeoutSec=500
[Install]
WantedBy=multi-user.target

1
splunk/splunk.sysusers Normal file
View File

@ -0,0 +1 @@
u splunk - "Splunk Server" /opt/splunk /bin/bash

2
splunk/splunk.tmpfiles Normal file
View File

@ -0,0 +1,2 @@
Z /opt/splunk - splunk splunk
z /opt/splunk 0750 splunk splunk

23
splunkforwarder/.SRCINFO Normal file
View File

@ -0,0 +1,23 @@
pkgbase = splunkforwarder
pkgdesc = Splunk Universal Forwarder
pkgver = 9.1.0.1
pkgrel = 1
epoch = 3
url = https://www.splunk.com/
install = splunkforwarder.install
arch = x86_64
arch = aarch64
license = custom
conflicts = splunk
source = splunkforwarder.service
source = splunkforwarder.sysusers
source = splunkforwarder.tmpfiles
sha256sums = 39bbd367e561fb2eac0be5bc23e32484d3728d0f5dde9cbcfd2295eff93ce8c3
sha256sums = 27d1d172add8c64a275ec3356f0fa0b9d56036a7e64b7b882e066a67f6173b5b
sha256sums = bca1b7720a827973f1c959cb78d788324f47dd6fcfc03bf4452c457f2d044db5
source_x86_64 = https://download.splunk.com/products/universalforwarder/releases/9.1.0.1/linux/splunkforwarder-9.1.0.1-77f73c9edb85-Linux-x86_64.tgz
sha256sums_x86_64 = 37263392e746ae5a9495d80c027f3b1a3363e76618c419e0fef724e1682c3762
source_aarch64 = https://download.splunk.com/products/universalforwarder/releases/9.1.0.1/linux/splunkforwarder-9.1.0.1-77f73c9edb85-Linux-armv8.tgz
sha256sums_aarch64 = 6e2146cf80931527c7f87b06c5672f6ea8cbef8bf40552e87bd7e1c5002343db
pkgname = splunkforwarder

36
splunkforwarder/PKGBUILD Normal file
View File

@ -0,0 +1,36 @@
# Maintainer: L. Bradley LaBoon <me@bradleylaboon.com>
pkgname=splunkforwarder
basever=9.1.0.1
splunkver=${basever}-77f73c9edb85
# Splunk is inconsistent with the length of their version numbers
if [ ${#basever} -gt 5 ]; then
pkgver=${basever}
else
pkgver=${basever}.0
fi
pkgrel=1
epoch=3
pkgdesc="Splunk Universal Forwarder"
url="https://www.splunk.com/"
arch=('x86_64' 'aarch64')
license=('custom')
conflicts=('splunk')
install="$pkgname.install"
source=("$pkgname.service" "$pkgname.sysusers" "$pkgname.tmpfiles")
source_x86_64=("https://download.splunk.com/products/universalforwarder/releases/$basever/linux/$pkgname-$splunkver-Linux-x86_64.tgz")
source_aarch64=("https://download.splunk.com/products/universalforwarder/releases/$basever/linux/$pkgname-$splunkver-Linux-armv8.tgz")
sha256sums=('39bbd367e561fb2eac0be5bc23e32484d3728d0f5dde9cbcfd2295eff93ce8c3'
'27d1d172add8c64a275ec3356f0fa0b9d56036a7e64b7b882e066a67f6173b5b'
'bca1b7720a827973f1c959cb78d788324f47dd6fcfc03bf4452c457f2d044db5')
sha256sums_x86_64=('37263392e746ae5a9495d80c027f3b1a3363e76618c419e0fef724e1682c3762')
sha256sums_aarch64=('6e2146cf80931527c7f87b06c5672f6ea8cbef8bf40552e87bd7e1c5002343db')
package() {
cd "$srcdir"
install -vDm 644 ${pkgname}.sysusers "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -vDm 644 ${pkgname}.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
install -Dm644 "$pkgname/license-eula.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
mkdir "$pkgdir/opt"
cp -r "$pkgname" "$pkgdir/opt/"
}

View File

@ -0,0 +1,61 @@
SPLUNK_HOME="/opt/splunkforwarder"
post_install() {
if [ ! -f "$SPLUNK_HOME/etc/splunk-launch.conf" ]; then
sed "s%# SPLUNK_HOME=.*%SPLUNK_HOME=$SPLUNK_HOME%g" "$SPLUNK_HOME/etc/splunk-launch.conf.default" > "$SPLUNK_HOME/etc/splunk-launch.conf"
fi
# Build the post-install message in steps:
touch "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" > "$SPLUNK_HOME/ftr"
echo "Splunk has been installed in:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To start Splunk, run the command:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME/bin/splunk start" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To use the Splunk web interface, point your browser to:" >> "$SPLUNK_HOME/ftr"
echo " http://$HOSTNAME:8000" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "Complete documentation is at http://docs.splunk.com/Documentation/Splunk" >> "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" >> "$SPLUNK_HOME/ftr"
echo "Splunk forwarder has been installed to $SPLUNK_HOME"
echo "You can start Splunk by running 'systemctl start splunkforwarder'"
}
pre_upgrade() {
echo "Attempting to stop the installed Splunk Server..."
$SPLUNK_HOME/bin/splunk stop
systemctl stop splunkforwarder
}
post_upgrade() {
# Build the post-upgrade message in steps:
touch "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" > "$SPLUNK_HOME/ftr"
echo "Splunk has been updated in:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To start Splunk, run the command:" >> "$SPLUNK_HOME/ftr"
echo " $SPLUNK_HOME/bin/splunk start" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "To use the Splunk web interface, point your browser to:" >> "$SPLUNK_HOME/ftr"
echo " http://$HOSTNAME:8000" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "" >> "$SPLUNK_HOME/ftr"
echo "Complete documentation is at http://docs.splunk.com/Documentation/Splunk" >> "$SPLUNK_HOME/ftr"
echo "-------------------------------------------------------------------------" >> "$SPLUNK_HOME/ftr"
echo "Splunk forwarder has been upgraded in $SPLUNK_HOME"
echo "Run 'systemctl start splunkforwarder' to complete the upgrade."
}
pre_remove() {
echo "Attempting to stop the installed Splunk Server..."
$SPLUNK_HOME/bin/splunk stop
systemctl stop splunkforwarder
}

View File

@ -0,0 +1,17 @@
[Unit]
Description=Splunk Forwarder
Wants=network.target
After=network.target
[Service]
Type=forking
RemainAfterExit=yes
User=splunk
ExecStart=/opt/splunkforwarder/bin/splunk start --answer-yes --no-prompt --accept-license
ExecStop=/opt/splunkforwarder/bin/splunk stop
ExecReload=/opt/splunkforwarder/bin/splunk restart
StandardOutput=syslog
TimeoutSec=500
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
u splunk - "Splunk Server" /opt/splunkforwarder /bin/bash

View File

@ -0,0 +1,2 @@
Z /opt/splunkforwarder - splunk splunk
z /opt/splunkforwarder 0750 splunk splunk

12
wazuhdeb/.SRCINFO Normal file
View File

@ -0,0 +1,12 @@
pkgbase = wazuhdeb
pkgdesc = asistente de instalacion para agentes wazuh en arch linux y derivadas
pkgver = 1.0
pkgrel = 1
url = https://condorbs.net/ciberseguridad
arch = x86_64
license = MIT
depends = lsb-release
source = https://condorcs.net/kmunoz/wazuhdeb/-/raw/master/wazuhdebian.sh
sha256sums = cbfdb316427e058cb3ccdcea78fd35b5b07aa8733e76b1b0dd93d7281980cf14
pkgname = wazuhdeb

7
wazuhdeb/.SRCINFO.asc Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQRFi3VFYtlWy+Zyp4AvKHk3FVpDgAUCZGuTtQAKCRAvKHk3FVpD
gDxbAPsEzycaOUNMtGqdBdAfZergujUzgNLK/Zt3gWpZqG7sRwD/ZF44/drPmbq4
q+PwwdYTSeu2VDflXLTcL5mAvx0OPAk=
=G6W/
-----END PGP SIGNATURE-----

27
wazuhdeb/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
# Contribuidor: Kevin Muñoz <kmunoz@condorbs.net>
pkgname=wazuhdeb
pkgver=1.3
pkgrel=1
pkgdesc="asistente de instalacion para agentes wazuh en arch linux y derivadas"
arch=('x86_64')
url="https://condorbs.net/ciberseguridad"
license=('gpl3')
# Dependencias del paquete
depends=('lsb-release')
# Fuentes del paquete
source=("https://condorcs.net/mrhacker/wazuhdeb/raw/branch/master/wazuhdeb"
"https://condorcs.net/mrhacker/wazuhdeb/raw/branch/master/wazuhdeb.sig")
validpgpkeys=('2B9D22B41F2AF1042BFCE73A3CA0B9DF1BE7CE09')
# Verificación SHA256 del archivo fuente
sha256sums=('cf91a7516ec11c147ec53db421fbb7812e27c93daed0b610097596193ff68c28'
'SKIP')
package() {
# Instalar el script en el directorio /usr/bin/
install -Dm755 "$srcdir/wazuhdeb" "$pkgdir/usr/bin/wazuhdeb"
}

24
yay/.SRCINFO Normal file
View File

@ -0,0 +1,24 @@
pkgbase = yay
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
pkgver = 12.1.0
pkgrel = 1
url = https://github.com/Jguer/yay
arch = i686
arch = pentium4
arch = x86_64
arch = arm
arch = armv7h
arch = armv6h
arch = aarch64
arch = riscv64
license = GPL3
makedepends = go>=1.19
depends = pacman>5
depends = git
optdepends = sudo: privilege elevation
optdepends = doas: privilege elevation
options = !lto
source = yay-12.1.0.tar.gz::https://github.com/Jguer/yay/archive/v12.1.0.tar.gz
sha256sums = a13d6c02eaaef7ed9ac77723d220fa6101aef129c6edb785d74cadba6547f6d0
pkgname = yay

37
yay/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# Maintainer: Jguer <pkgbuilds at jguer.space>
pkgname=yay
pkgver=12.1.0
pkgrel=1
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
url="https://github.com/Jguer/yay"
options=(!lto)
license=('GPL3')
depends=(
'pacman>5'
'git'
)
optdepends=(
'sudo: privilege elevation'
'doas: privilege elevation'
)
makedepends=('go>=1.19')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
sha256sums=('a13d6c02eaaef7ed9ac77723d220fa6101aef129c6edb785d74cadba6547f6d0')
build() {
export GOPATH="$srcdir"/gopath
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_ENABLED=1
cd "$srcdir/$pkgname-$pkgver"
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install
}