4b97cd2fb4
```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 ```
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From e59bc1b6c6535ec8ab8a57004351718ab2677196 Mon Sep 17 00:00:00 2001
|
|
From: Andrea Brancaleoni <abc@pompel.me>
|
|
Date: Wed, 19 Sep 2018 12:36:41 +0200
|
|
Subject: [PATCH] remove networks
|
|
|
|
---
|
|
etc/profile-templates/buildd/all/copyfiles | 1 -
|
|
etc/profile-templates/default/all/nssdatabases | 1 -
|
|
etc/profile-templates/desktop/all/nssdatabases | 1 -
|
|
3 files changed, 3 deletions(-)
|
|
|
|
diff --git etc/profile-templates/buildd/all/copyfiles etc/profile-templates/buildd/all/copyfiles
|
|
index fe18fb3..2469d3e 100644
|
|
--- a/etc/profile-templates/buildd/all/copyfiles
|
|
+++ b/etc/profile-templates/buildd/all/copyfiles
|
|
@@ -3,4 +3,3 @@
|
|
# <source and destination>
|
|
/etc/hosts
|
|
/etc/resolv.conf
|
|
-/etc/networks
|
|
diff --git etc/profile-templates/default/all/nssdatabases etc/profile-templates/default/all/nssdatabases
|
|
index a9f1319..22efe1b 100644
|
|
--- a/etc/profile-templates/default/all/nssdatabases
|
|
+++ b/etc/profile-templates/default/all/nssdatabases
|
|
@@ -1,4 +1,3 @@
|
|
services
|
|
protocols
|
|
-networks
|
|
hosts
|
|
diff --git etc/profile-templates/desktop/all/nssdatabases etc/profile-templates/desktop/all/nssdatabases
|
|
index a9f1319..22efe1b 100644
|
|
--- a/etc/profile-templates/desktop/all/nssdatabases
|
|
+++ b/etc/profile-templates/desktop/all/nssdatabases
|
|
@@ -1,4 +1,3 @@
|
|
services
|
|
protocols
|
|
-networks
|
|
hosts
|
|
--
|
|
2.19.0
|
|
|