~dricottone/huttese-apk

0ad174beb60981fcc72e1b5c0ed01504c97206be — Drew DeVault 2 years ago cbf7811
tlstunnel: move setcap to post-upgrade
M sr.ht/tlstunnel/APKBUILD => sr.ht/tlstunnel/APKBUILD +2 -2
@@ 1,12 1,12 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=tlstunnel
pkgver=0.1.3
pkgrel=0
pkgrel=1
pkgdesc="A TLS reverse proxy"
url="https://git.sr.ht/~emersion/tlstunnel"
arch="all"
license="MIT"
install="$pkgname.post-install"
install="$pkgname.post-install $pkgname.post-upgrade"
depends="libcap"
makedepends="go scdoc"
source="

M sr.ht/tlstunnel/tlstunnel.post-install => sr.ht/tlstunnel/tlstunnel.post-install +0 -1
@@ 2,4 2,3 @@
grep '^tlstunnel' /etc/group >/dev/null || addgroup -S tlstunnel 2>/dev/null
grep '^tlstunnel' /etc/passwd >/dev/null || adduser -SDh/var/lib/tlstunnel \
	-s/sbin/nologin -Gtlstunnel -gtlstunnel tlstunnel tlstunnel 2>/dev/null
setcap 'cap_net_bind_service=+ep' /usr/bin/tlstunnel

A sr.ht/tlstunnel/tlstunnel.post-upgrade => sr.ht/tlstunnel/tlstunnel.post-upgrade +2 -0
@@ 0,0 1,2 @@
#!/bin/sh
setcap 'cap_net_bind_service=+ep' /usr/bin/tlstunnel