diff options
author | metamuffin | 2024-05-30 02:50:04 +0200 |
---|---|---|
committer | metamuffin | 2024-05-30 02:50:04 +0200 |
commit | fb196511d9e9cbe7460c947929cca74acea0312b (patch) | |
tree | 854c0b347ab19c2eb30f1e08e5d0c975816043f2 | |
parent | 1355663994e520e0bb46c279fc85541aa0d965dd (diff) | |
download | aur-gnix.tar.gz |
2.0.0
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | config.yaml | 2 |
4 files changed, 22 insertions, 21 deletions
@@ -1,6 +1,6 @@ pkgbase = gnix pkgdesc = a simple stupid http reverse proxy - pkgver = 1.1.0 + pkgver = 2.0.0 pkgrel = 1 url = https://codeberg.org/metamuffin/gnix arch = i686 @@ -11,13 +11,13 @@ pkgbase = gnix license = AGPL3 makedepends = rustup backup = etc/gnix.yaml - source = https://codeberg.org/metamuffin/gnix/archive/v1.1.0.tar.gz + source = gnix-2.0.0.tar.gz::https://codeberg.org/metamuffin/gnix/archive/v2.0.0.tar.gz source = gnix.service source = config.yaml source = sysusers.conf - sha256sums = 14089e019baad9590393a8248049815f001b866565ff450ddc73919172c9e5db - sha256sums = SKIP - sha256sums = SKIP - sha256sums = SKIP + sha256sums = 22695c58c334c43f027b153c6e6ec7dfb6d092f5597be787789ecc2135811902 + sha256sums = a80df54a4e44960decf43ad618dc1afef9cc498370460362e91646ac3f95358e + sha256sums = dae3df7d0d521b075d16ab518bc321a63bc0ca7822b814aed6e00402577d380b + sha256sums = 9e03be16b1b3dd4c0d0e5feb5c31221758b68a54bad5ba7232e8565d766ea620 pkgname = gnix diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ec5a1a8d1580..000000000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/pkg -/src -/v*.tar.gz -/*.pkg.tar* @@ -1,7 +1,7 @@ # Maintainer: metamuffin <metamuffin@disroot.org> pkgname=gnix -pkgver=1.1.0 +pkgver=2.0.0 pkgrel=1 pkgdesc="a simple stupid http reverse proxy" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') @@ -9,23 +9,28 @@ url="https://codeberg.org/metamuffin/gnix" license=('AGPL3') makedepends=('rustup') backup=('etc/gnix.yaml') -source=("https://codeberg.org/metamuffin/gnix/archive/v$pkgver.tar.gz" +source=("$pkgname-$pkgver.tar.gz::https://codeberg.org/metamuffin/gnix/archive/v$pkgver.tar.gz" "gnix.service" "config.yaml" "sysusers.conf") -sha256sums=("14089e019baad9590393a8248049815f001b866565ff450ddc73919172c9e5db" - "SKIP" - "SKIP" - "SKIP") +sha256sums=('22695c58c334c43f027b153c6e6ec7dfb6d092f5597be787789ecc2135811902' + 'a80df54a4e44960decf43ad618dc1afef9cc498370460362e91646ac3f95358e' + 'dae3df7d0d521b075d16ab518bc321a63bc0ca7822b814aed6e00402577d380b' + '9e03be16b1b3dd4c0d0e5feb5c31221758b68a54bad5ba7232e8565d766ea620') +prepare() { + cd "gnix" + cargo +nightly fetch --locked --target "$CHOST" +} build() { cd "gnix" - cargo +nightly build --release --bin $pkgname - strip -s target/release/$pkgname + cargo +nightly build --frozen --release --target "$CHOST" } package() { - install -Dm755 gnix/target/release/$pkgname "$pkgdir/usr/bin/$pkgname" + install -Dm755 gnix/target/$CHOST/release/gnix "$pkgdir/usr/bin/gnix" + install -Dm644 gnix/src/modules/auth/login.html "$pkgdir/usr/share/gnix/login.html" + install -Dm644 config.yaml "$pkgdir/etc/gnix.yaml" install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/gnix.conf" install -Dm644 gnix.service "$pkgdir/usr/lib/systemd/system/gnix.service" - install -Dm644 config.yaml "$pkgdir/etc/gnix.yaml" + install -Dm644 gnix/COPYING "$pkgdir/usr/share/licenses/gnix/COPYING" } diff --git a/config.yaml b/config.yaml index 17f24d6a545a..85dc12159d2f 100644 --- a/config.yaml +++ b/config.yaml @@ -1,7 +1,7 @@ http: bind: "0.0.0.0:80" -hosts: +handler: !hosts "example.org": !files root: "/srv/http" index: true |