void-packages/srcpkgs/ferm/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```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

16 lines
483 B
Bash

# Template file for 'ferm'
pkgname=ferm
version=2.6
revision=1
hostmakedepends="perl"
depends="perl iptables"
short_desc="Frontend for iptables"
maintainer="johannes <johannes.brechtmann@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://ferm.foo-projects.org/"
distfiles="http://ferm.foo-projects.org/download/${version:0:3}/ferm-${version}.tar.xz"
checksum=689541465e7c073cbd604c9cd18f113c31c0b41bb12614726a59b17e44058885
do_install() {
make install PREFIX=${DESTDIR}/usr
}