```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 ```
18 lines
574 B
Bash
18 lines
574 B
Bash
# Template file for 'tcpdump'
|
|
pkgname=tcpdump
|
|
version=4.99.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="libpcap-devel openssl-devel"
|
|
checkdepends="perl"
|
|
short_desc="Tool for network monitoring and data acquisition"
|
|
maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.tcpdump.org"
|
|
changelog="https://www.tcpdump.org/tcpdump-changes.txt"
|
|
distfiles="https://www.tcpdump.org/release/${pkgname}-${version}.tar.gz"
|
|
checksum=79b36985fb2703146618d87c4acde3e068b91c553fb93f021a337f175fd10ebe
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|