void-packages/srcpkgs/davfs2/template
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid 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

26 lines
791 B
Bash

# Template file for 'davfs2'
pkgname=davfs2
version=1.6.0
revision=1
build_style=gnu-configure
configure_args="dav_user=nobody dav_group=network --enable-largefile"
hostmakedepends="automake gettext gettext-devel neon-devel tar"
makedepends="neon-devel"
conf_files="/etc/davfs2/davfs2.conf /etc/davfs2/secrets"
short_desc="File system driver that allows you to mount a WebDAV folder"
maintainer="Alexander Mamay <alexander@mamay.su>"
license="GPL-3.0-or-later"
homepage="https://savannah.nongnu.org/projects/davfs2"
distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=2e6b675685bd917772be60f0999ae098c80f79ff20dc131e8fec4547cbb63b50
CFLAGS="-fcommon"
pre_configure() {
autoreconf -fi
}
post_install() {
rm -r ${DESTDIR}/sbin
rm -r ${DESTDIR}/usr/share/davfs2
}