c987560802
```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 ```
21 lines
545 B
Bash
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
|
|
}
|