5769f150de
```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 ```
20 lines
556 B
Bash
20 lines
556 B
Bash
# Template file for 'udptunnel'
|
|
pkgname=udptunnel
|
|
version=1.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake"
|
|
short_desc="Tunnel UDP packets over a TCP connection"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://www.cs.columbia.edu/~lennox/udptunnel/"
|
|
distfiles="http://www.cs.columbia.edu/~lennox/udptunnel/udptunnel-${version}.tar.gz"
|
|
checksum=45c0e12045735bc55734076ebbdc7622c746d1fe4e6f7267fa122e2421754670
|
|
|
|
pre_configure() {
|
|
autoreconf -vfi
|
|
}
|
|
post_install() {
|
|
vlicense COPYRIGHT
|
|
vdoc udptunnel.html
|
|
}
|