void-packages/srcpkgs/wvdial/patches/wvdial-1.61-destdir.patch
Đoàn Trần Công Danh 04b9978a29 srcpkgs/w*: convert patches to -Np1
* wine 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

35 lines
782 B
Diff

=== modified file 'Makefile.in'
--- a/Makefile.in 2010-05-27 13:08:26 +0000
+++ b/Makefile.in 2010-05-27 13:08:41 +0000
@@ -3,7 +3,7 @@
WVPACKAGE_TARNAME=@PACKAGE_TARNAME@
WVPACKAGE_VERSION=@PACKAGE_VERSION@
-prefix=/usr/local
+prefix=${DESTDIR}/usr
WVSTREAMS_INC=
WVSTREAMS_LIB=
WVSTREAMS_BIN=$(prefix)/bin
@@ -23,7 +23,7 @@
BINDIR=${prefix}/bin
MANDIR=${prefix}/share/man
-PPPDIR=/etc/ppp/peers
+PPPDIR=${DESTDIR}/etc/ppp/peers
include wvrules.mk
=== modified file 'config.defaults.mk'
--- a/config.defaults.mk 2010-05-27 13:08:26 +0000
+++ b/config.defaults.mk 2010-05-27 13:43:03 +0000
@@ -13,7 +13,7 @@
LIBS_PAM=-lpam
LIBS_TCL=
-prefix=/usr/local
+prefix=${DESTDIR}/usr
datadir=${prefix}/share
includedir=${prefix}/include
infodir=${prefix}/share/info