void-packages/srcpkgs/foremost/patches/foremost-1.4-config-location.patch
Đ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

11 lines
376 B
Diff

--- a/config.c 2006-08-31 17:50:47.000000000 +0100
+++ b/config.c 2006-08-31 17:51:09.000000000 +0100
@@ -288,7 +288,7 @@
#ifdef __WIN32
set_config_file(s, "/Program Files/foremost/foremost.conf");
#else
- set_config_file(s, "/usr/local/etc/foremost.conf");
+ set_config_file(s, "/etc/foremost.conf");
#endif
if ((f = fopen(get_config_file(s), "r")) == NULL)
{