void-packages/srcpkgs/tnftp/template
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: 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

25 lines
649 B
Bash

# Template file for 'tnftp'
pkgname=tnftp
version=20200705
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="openssl-devel ncurses-devel"
short_desc="NetBSD enhanced ftp client"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD"
homepage="http://netbsd.gw.com/cgi-bin/man-cgi?ftp"
distfiles="ftp://ftp.netbsd.org/pub/NetBSD/misc/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=ba4a92b693d04179664524eef0801c8eed4447941c9855f377f98f119f221c03
alternatives="
ftp:ftp:/usr/bin/${pkgname}
ftp:ftp.1:/usr/share/man/man1/${pkgname}.1
"
pre_configure() {
autoconf -f
}
post_install() {
vlicense COPYING
}