aboutsummaryrefslogtreecommitdiff
path: root/apks/jnfilter
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-09-30 19:58:09 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-09-30 19:58:09 +0200
commitcc9e4011f8a8514431d1685b0d723e186b4b24c9 (patch)
tree5a2d9d52eecf68979749c9bfcb3571cedb8301b3 /apks/jnfilter
parent8c9300cb9afc98be50111d10608fe5a4f10a905c (diff)
downloadapkbuilds-cc9e4011f8a8514431d1685b0d723e186b4b24c9.tar.gz
apkbuilds-cc9e4011f8a8514431d1685b0d723e186b4b24c9.tar.bz2
apkbuilds-cc9e4011f8a8514431d1685b0d723e186b4b24c9.zip
feat: Add caddyfile
Diffstat (limited to 'apks/jnfilter')
-rw-r--r--apks/jnfilter/APKBUILD15
-rw-r--r--apks/jnfilter/jnfilter.caddyfile3
2 files changed, 17 insertions, 1 deletions
diff --git a/apks/jnfilter/APKBUILD b/apks/jnfilter/APKBUILD
index 74ebc87..850f917 100644
--- a/apks/jnfilter/APKBUILD
+++ b/apks/jnfilter/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
pkgname=jnfilter
pkgver=0.1.1
-pkgrel=0
+pkgrel=1
pkgdesc="Filtro for Joven Nerd's podcast feed"
url="https://git.sr.ht/~gabrielgio/jnfilter"
arch="noarch"
@@ -18,11 +18,13 @@ builddir="$srcdir/$pkgname-v$pkgver"
subpackages="
$pkgname-openrc
$pkgname-nginx:_nginx:noarch
+ $pkgname-caddy:_caddy:noarch
"
source="
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~gabrielgio/$pkgname/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.nginx.conf
+ $pkgname.caddyfile
$pkgname.confd
"
provides="py3-jnfilter=$pkgver-r$pkgrel"
@@ -39,6 +41,16 @@ _nginx() {
"$subpkgdir"/etc/nginx/http.d/"$pkgname".nginx.conf
}
+_caddy() {
+ depends="caddy jnfilter"
+ pkgdesc="caddy configuration for $pkgname"
+
+ mkdir -p "$subpkgdir"/etc/caddy/sites/
+
+ install -Dm644 "$srcdir"/"$package"/"$pkgname".caddyfile \
+ "$subpkgdir"/etc/caddy/sites/"$pkgname".caddyfile
+}
+
package() {
# install scripts
install -m755 -D "$srcdir"/$pkgname.initd \
@@ -53,5 +65,6 @@ sha512sums="
b7bba93dc85ffe9e86e1b0c7e3d1773d30aec9dd6797fc41b995a1a6b5687aa33e8f7ef26b9d26be6d5ffdbbe21d3750e97b15ebaf82dba4e63b9d82120f0cb2 jnfilter-0.1.1.tar.gz
4e9afb1c25218e78aa9ce033c76689613c55eeab2c3b460476ee64375c50b83f99e98ce504c9a9485ae55e186d02eb5d38715100343a8b59cab0f14aa7fa2346 jnfilter.initd
7edf3d3932a8af82aa5140523c517da2d697e10c197b784bd9d370baddccb66c25a67c4e2b1d64f7521e818258348e3153168256572ab5bc1b0f0bc73ffe6944 jnfilter.nginx.conf
+6abd5060297c0bf38d3a12bbe34b01ee2e5df1b0600ac9458850f64d4647fe3c5eb9bdb4855645875e48fe74f64229abbdcc1b139ca14f89db6e795d3a09ebf6 jnfilter.caddyfile
00142d4a156bba4b714c2488674a53f82a95cbfd073aede159011de5aca415fe51481eee2bd225e376fd9cdf66ba95faa76beb038c896b6148454f940a58fffd jnfilter.confd
"
diff --git a/apks/jnfilter/jnfilter.caddyfile b/apks/jnfilter/jnfilter.caddyfile
new file mode 100644
index 0000000..2670a08
--- /dev/null
+++ b/apks/jnfilter/jnfilter.caddyfile
@@ -0,0 +1,3 @@
+jnfilter.gabrielgio.me {
+ reverse_proxy http://localhost:32000
+}