void-packages/srcpkgs/dovecot/patches/system-account.patch
Đ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

15 lines
492 B
Diff

--- a/src/master/master-settings.c
+++ b/src/master/master-settings.c
@@ -209,9 +209,9 @@
.protocols = "imap pop3 lmtp",
.listen = "*, ::",
.ssl = "yes:no:required",
- .default_internal_user = "dovecot",
- .default_internal_group = "dovecot",
- .default_login_user = "dovenull",
+ .default_internal_user = "_dovecot",
+ .default_internal_group = "_dovecot",
+ .default_login_user = "_dovenull",
.default_process_limit = 100,
.default_client_limit = 1000,
.default_idle_kill = 60,