void-packages/srcpkgs/chkrootkit/template
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

21 lines
545 B
Bash

# Template file for 'chkrootkit'
pkgname=chkrootkit
version=0.53
revision=1
build_style=gnu-makefile
depends="binutils net-tools"
short_desc="Tool to locally check for signs of a rootkit"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="http://www.chkrootkit.org"
distfiles="ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-${version}.tar.gz"
checksum=7262dae33b338976828b5d156b70d159e0043c0db43ada8dee66c97387cf45b5
CFLAGS="-fPIC"
LDFLAGS="-fPIC"
do_install() {
vbin chkrootkit
vdoc README
vlicense COPYRIGHT
}