void-packages/srcpkgs/visitors/template
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

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
}