void-packages/srcpkgs/icecast/patches/no-group.patch
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

15 lines
364 B
Diff

--- a/conf/icecast.xml.in 2010-11-12 16:47:54.750000918 +0100
+++ b/conf/icecast.xml.in 2010-11-12 16:48:08.086667585 +0100
@@ -164,11 +164,9 @@
<security>
<chroot>0</chroot>
- <!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
- -->
</security>
</icecast>