```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
32 lines
808 B
Bash
32 lines
808 B
Bash
# Template file for 'hitch'
|
|
pkgname=hitch
|
|
version=1.7.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="ac_cv_so_reuseport_works=yes ac_cv_so_tfo=yes"
|
|
hostmakedepends="pkg-config automake"
|
|
makedepends="libev-devel openssl-devel"
|
|
checkdepends="lsof curl"
|
|
short_desc="Libev-based high performance SSL/TLS proxy"
|
|
maintainer="Jannis Christ <hello@jannis.ovh>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://hitch-tls.org/"
|
|
distfiles="https://hitch-tls.org/source/hitch-${version}.tar.gz"
|
|
checksum=c97ef8f1e115156640c40dfdfe9662d5f6d57a796fccad3bbad198ec797ce5c4
|
|
system_accounts="_hitch"
|
|
|
|
post_patch() {
|
|
vsed -i -e "s/grep -Pq/grep -q/" -e 's/\\t/\t/' \
|
|
src/tests/test32-proxy-authority.sh
|
|
}
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vman hitch.8
|
|
vman hitch.conf.5
|
|
vlicense LICENSE
|
|
vsv hitch
|
|
}
|