[packages/adapter: 44/631] version 0.21

glen glen at pld-linux.org
Mon Sep 12 19:38:09 CEST 2016


commit 353f5eea51d49cac11b8ffe1d36c047aac5e46d1
Author: kura <kura at pld-linux.org>
Date:   Tue May 2 08:57:36 2000 +0000

    version 0.21
    
    me (at kloczek's request):
    - sysconfdir is replaced with %{_sysconfdir} only if it is not followed by
      "/sysconfig" or "/rc.d".
    
    Changed files:
        adapter.awk -> 1.44

 adapter.awk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index c9c8247..97448e2 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1,6 +1,6 @@
 #!/bin/awk -f
 #
-# This is adapter v0.20. Adapter adapts .spec files for PLD.
+# This is adapter v0.21. Adapter adapts .spec files for PLD.
 #
 # Copyright (C) 1999, 2000 PLD-Team <pld-list at pld.org.pl>
 # Authors:
@@ -386,7 +386,13 @@ function use_macros()
 	gsub("%{prefix}/lib", "%{_libdir}")
 	gsub("%{_prefix}/lib", "%{_libdir}")
 
-	gsub(sysconfdir, "%{_sysconfdir}")
+	for (c = 1; c <= NF; c++) {
+		if ($c ~ sysconfdir "/sysconfig")
+			continue;
+		if ($c ~ sysconfdir "/rc.d")
+			continue;
+		gsub(sysconfdir, "%{_sysconfdir}", $c)
+	}
 
 	gsub(datadir, "%{_datadir}")
 	gsub("%{prefix}/share", "%{_datadir}")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list