]> git.pld-linux.org Git - packages/pcp.git/blob - pcp-ps.patch
- release 16 (by relup.sh)
[packages/pcp.git] / pcp-ps.patch
1 --- pcp-3.9.6/configure.ac.orig 2014-06-19 19:02:57.625789139 +0200
2 +++ pcp-3.9.6/configure.ac      2014-06-19 19:06:56.395784163 +0200
3 @@ -937,17 +937,7 @@
4  NR == 1                        { if ($1 != "UID" && $1 != "USER") exit
5                           if ($2 != "PID") exit
6                         }
7 -# Unix variants
8 -$2 == 1 && / init/     { print "OK"; exit }
9 -$2 == 1 && / \/etc\/init/ { print "OK"; exit }
10 -# Fedora 9
11 -$2 == 1 && / \/sbin\/init/ { print "OK"; exit }
12 -# Fedora 15
13 -$2 == 1 && / \/bin\/systemd/ { print "OK"; exit }
14 -# Fedora 17
15 -$2 == 1 && / \/usr\/lib\/systemd\/systemd/ { print "OK"; exit }
16 -# Debian sid
17 -$2 == 1 && / \/lib\/systemd\/systemd/ { print "OK"; exit }'`
18 +$2 ~ /^[[0-9]]+$/ && /configure/       { print "OK"; exit }'`
19         if test "$ans" = OK
20         then
21             pcp_ps_have_bsd=false
22 @@ -962,10 +952,7 @@
23  NR == 1                        { if ($1 != "UID" && $1 != "USER") exit
24                           if ($2 != "PID") exit
25                         }
26 -$2 == 1 && / init/     { print "OK"; exit }
27 -$2 == 1 && / \/sbin\/init/ { print "OK"; exit }
28 -$2 == 1 && / \/sbin\/launchd/ { print "OK"; exit }
29 -$2 == 1 && / \/init/   { print "OK"; exit }'`
30 +$2 ~ /^[[0-9]]+$/ && /configure/       { print "OK"; exit }'`
31         if test "$ans" = OK
32         then
33             pcp_ps_have_bsd=true
This page took 0.075827 seconds and 3 git commands to generate.