crowdsec*: init

This commit is contained in:
minoplhy 2025-05-01 23:03:50 +07:00
parent 843ebda309
commit 4a532908eb
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
34 changed files with 195 additions and 1 deletions

0
anubis/APKBUILD Normal file → Executable file
View File

0
anubis/anubis.initd Normal file → Executable file
View File

0
anubis/anubis.pre-install Normal file → Executable file
View File

0
beszel/APKBUILD Normal file → Executable file
View File

0
beszel/beszel-agent.confd Normal file → Executable file
View File

0
beszel/beszel-agent.initd Normal file → Executable file
View File

0
beszel/beszel-agent.pre-install Normal file → Executable file
View File

0
beszel/beszel.confd Normal file → Executable file
View File

0
beszel/beszel.initd Normal file → Executable file
View File

0
beszel/beszel.pre-install Normal file → Executable file
View File

View File

@ -0,0 +1,41 @@
pkgname=crowdsec-firewall-bouncer
pkgver=0.0.31
pkgrel=0
pkgdesc="Crowdsec Bouncer: Iptables Firewall"
url="https://crowdsec.net/"
arch="all"
license="MIT"
depends="iptables ipset"
makedepends="go"
subpackages="
$pkgname-openrc
"
options="!check" # no test suite identified
source="$pkgname-$pkgver.tar.gz::https://github.com/crowdsecurity/cs-firewall-bouncer/archive/refs/tags/v$pkgver.tar.gz
"$pkgname".initd
"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
builddir="$srcdir"/cs-firewall-bouncer-$pkgver
build() {
make binary \
BUILD_VERSION=v$pkgver \
BUILD_TAG="aports"
}
package() {
install -Dm 0755 "$builddir"/crowdsec-firewall-bouncer "$pkgdir"/usr/bin/crowdsec-firewall-bouncer
install -Dm 0755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/"$pkgname"
install -dm 0755 \
"$pkgdir"/etc/crowdsec/bouncers
install -m 0600 \
"$builddir"/config/crowdsec-firewall-bouncer.yaml \
"$pkgdir"/etc/crowdsec/bouncers
}

View File

@ -0,0 +1,20 @@
#!/sbin/openrc-run
command=/usr/bin/crowdsec-firewall-bouncer
command_args="-c /etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true
extra_started_commands="reload"
description_reload="Reload configuration"
depend() {
need net
after firewall
use logger
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal HUP --pidfile "$pidfile"
eend $?
}

103
minoplhy-crowdsec/APKBUILD Executable file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,18 @@
#!/sbin/openrc-run
command=/usr/bin/crowdsec
command_args="-c /etc/crowdsec/config.yaml"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true
extra_started_commands="reload"
description_reload="Reload configuration"
depend() {
after firewall
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal HUP --pidfile "$pidfile"
eend $?
}

View File

@ -0,0 +1,12 @@
--- a/Makefile 2024-11-20 11:12:20.000000000 +0000
+++ b/Makefile 2024-11-20 21:29:51.335969720 +0000
@@ -78,7 +78,7 @@
endif
#expr_debug tag is required to enable the debug mode in expr
-GO_TAGS := netgo,osusergo,sqlite_omit_load_extension,expr_debug
+GO_TAGS := netgo,osusergo,sqlite_omit_load_extension,expr_debug,libsqlite3
# Allow building on ubuntu 24.10, see https://github.com/golang/go/issues/70023
export CGO_LDFLAGS_ALLOW=-Wl,--(push|pop)-state.*

2
minoplhy-gitea/APKBUILD Normal file → Executable file
View File

@ -31,7 +31,7 @@ export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
preparre() {
prepare() {
mkdir -p "$builddir"
default_prepare
}

0
minoplhy-gitea/gitea.initd Normal file → Executable file
View File

0
minoplhy-gitea/gitealogo/apple-touch-icon.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
minoplhy-gitea/gitealogo/avatar_default.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 136 KiB

0
minoplhy-gitea/gitealogo/favicon.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

0
minoplhy-gitea/gitealogo/favicon.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
minoplhy-gitea/gitealogo/icon.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
minoplhy-gitea/gitealogo/icon.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

0
minoplhy-gitea/gitealogo/logo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
minoplhy-gitea/gitealogo/logo.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
minoplhy-gitea/minoplhy-gitea.pre-install Normal file → Executable file
View File

0
minoplhy-gitea/patches/1.23.6-no-activity.fakepatch Normal file → Executable file
View File

0
minoplhy-gitea/patches/1.23.7-no-activity.fakepatch Normal file → Executable file
View File

0
minoplhy-nginx-allstar/APKBUILD Normal file → Executable file
View File

View File

0
minoplhy-nginx-allstar/nginx.initd Normal file → Executable file
View File

0
minoplhy-nginx-vanilla/APKBUILD Normal file → Executable file
View File

View File

0
minoplhy-nginx-vanilla/nginx.initd Normal file → Executable file
View File