crowdsec*: init
0
anubis/APKBUILD
Normal file → Executable file
0
anubis/anubis.initd
Normal file → Executable file
0
anubis/anubis.pre-install
Normal file → Executable file
0
beszel/APKBUILD
Normal file → Executable file
0
beszel/beszel-agent.confd
Normal file → Executable file
0
beszel/beszel-agent.initd
Normal file → Executable file
0
beszel/beszel-agent.pre-install
Normal file → Executable file
0
beszel/beszel.confd
Normal file → Executable file
0
beszel/beszel.initd
Normal file → Executable file
0
beszel/beszel.pre-install
Normal file → Executable file
41
minoplhy-crowdsec-firewall-bouncer/APKBUILD
Executable 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
|
||||||
|
}
|
20
minoplhy-crowdsec-firewall-bouncer/crowdsec-firewall-bouncer.initd
Executable 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
18
minoplhy-crowdsec/crowdsec.initd
Executable 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 $?
|
||||||
|
}
|
12
minoplhy-crowdsec/system-sqlite.patch
Executable 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
@ -31,7 +31,7 @@ export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|||||||
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
||||||
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
||||||
|
|
||||||
preparre() {
|
prepare() {
|
||||||
mkdir -p "$builddir"
|
mkdir -p "$builddir"
|
||||||
default_prepare
|
default_prepare
|
||||||
}
|
}
|
||||||
|
0
minoplhy-gitea/gitea.initd
Normal file → Executable file
0
minoplhy-gitea/gitealogo/apple-touch-icon.png
Normal file → Executable file
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
minoplhy-gitea/gitealogo/avatar_default.png
Normal file → Executable file
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
0
minoplhy-gitea/gitealogo/favicon.png
Normal file → Executable 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
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
0
minoplhy-gitea/gitealogo/icon.png
Normal file → Executable file
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
minoplhy-gitea/gitealogo/icon.svg
Normal file → Executable file
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
0
minoplhy-gitea/gitealogo/logo.png
Normal file → Executable file
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
minoplhy-gitea/gitealogo/logo.svg
Normal file → Executable file
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |