ad877a7e29
```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 ```
23 lines
721 B
Bash
23 lines
721 B
Bash
# Template file for 'yersinia'
|
|
pkgname=yersinia
|
|
version=0.8.2
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--disable-gtk"
|
|
hostmakedepends="pkg-config automake"
|
|
makedepends="libpcap-devel libnet-devel ncurses-devel gettext-devel"
|
|
short_desc="Framework for layer 2 security testing"
|
|
maintainer="Alex Childs <misuchiru03+void@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/tomac/yersinia"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=964f528dbffd904376ab7986e69b1e8639591c929e2f39186ac9ebf2d3bc761f
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" ${makedepends}"
|
|
fi
|
|
|
|
post_configure() {
|
|
# configure doesn't honor env CFLAGS
|
|
vsed -i src/Makefile -e'/^CFLAGS/s/$/ -fcommon/'
|
|
}
|