76acfa2dd2
```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 ```
19 lines
510 B
Bash
19 lines
510 B
Bash
# Template file for 'visitors'
|
|
pkgname=visitors
|
|
version=0.7
|
|
revision=3
|
|
wrksrc="${pkgname}_${version}"
|
|
build_style=gnu-makefile
|
|
short_desc="Lightweight web log analyzer"
|
|
maintainer="Adrian Siekierka <asiekierka@gmail.com>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.hping.org/visitors/"
|
|
distfiles="http://www.hping.org/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=d2149e33ffe96b1f52b0587cff65973b0bc0b24ec43cdf072a782c1bd52148ab
|
|
|
|
do_install() {
|
|
vbin visitors
|
|
vdoc README
|
|
vdoc Changelog
|
|
vdoc AUTHORS
|
|
}
|