103ab731ab
* runit 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 ```
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
--- a/Makefile 2014-06-17 21:16:29.000000000 +0700
|
|
+++ b/Makefile 2015-10-19 11:45:52.398805700 +0600
|
|
@@ -52,15 +52,15 @@
|
|
install: fixupperms
|
|
mkdir -p ${PREFIX}/etc/bash_completion.d
|
|
mkdir -p ${PREFIX}/etc/rinse
|
|
- mkdir -p ${PREFIX}/usr/sbin
|
|
+ mkdir -p ${PREFIX}/usr/bin
|
|
mkdir -p ${PREFIX}/usr/lib/rinse
|
|
mkdir -p ${PREFIX}/usr/lib/rinse/common
|
|
cp -p ./scripts.common/* ${PREFIX}/usr/lib/rinse/common
|
|
chmod 755 ${PREFIX}/usr/lib/rinse/common/*.sh
|
|
mkdir -p ${PREFIX}/var/cache/rinse
|
|
- cp -p bin/rinse ${PREFIX}/usr/sbin/
|
|
- perl -pi -e "s/XXUNRELEASEDXX/$(VERSION)/" $(PREFIX)/usr/sbin/rinse*
|
|
- chmod 755 ${PREFIX}/usr/sbin/rinse*
|
|
+ cp -p bin/rinse ${PREFIX}/usr/bin/
|
|
+ perl -pi -e "s/XXUNRELEASEDXX/$(VERSION)/" $(PREFIX)/usr/bin/rinse*
|
|
+ chmod 755 ${PREFIX}/usr/bin/rinse*
|
|
cp -p etc/*.packages ${PREFIX}/etc/rinse
|
|
cp -p etc/*.conf ${PREFIX}/etc/rinse
|
|
for i in scripts/*/; do name=`basename $$i`; mkdir -p ${PREFIX}/usr/lib/rinse/$$name ; cp $$i/*.sh ${PREFIX}/usr/lib/rinse/$$name ; done
|
|
@@ -106,7 +106,7 @@
|
|
# Remove the software.
|
|
#
|
|
uninstall:
|
|
- rm -f ${PREFIX}/usr/sbin/rinse
|
|
+ rm -f ${PREFIX}/usr/bin/rinse
|
|
rm -f ${PREFIX}/etc/rinse/*.conf
|
|
rm -f ${PREFIX}/etc/rinse/*.packages
|
|
rm -rf ${PREFIX}/var/cache/rinse
|
|
|