]> git.pld-linux.org Git - packages/pcp.git/blob - pcp-ps.patch
- new
[packages/pcp.git] / pcp-ps.patch
1 --- pcp-3.6.10/configure.in.orig        2012-11-19 00:47:34.000000000 +0100
2 +++ pcp-3.6.10/configure.in     2012-12-16 19:50:49.390548609 +0100
3 @@ -697,15 +697,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 +$2 ~ /^[[0-9]]+$/ && /configure/       { print "OK"; exit }'`
17      if test "$ans" = OK
18      then
19         pcp_ps_have_bsd=false
20 @@ -719,10 +711,7 @@
21  NR == 1                        { if ($1 != "UID" && $1 != "USER") exit
22                           if ($2 != "PID") exit
23                         }
24 -$2 == 1 && / init/     { print "OK"; exit }
25 -$2 == 1 && / \/sbin\/init/ { print "OK"; exit }
26 -$2 == 1 && / \/sbin\/launchd/ { print "OK"; exit }
27 -$2 == 1 && / \/init/   { print "OK"; exit }'`
28 +$2 ~ /^[[0-9]]+$/ && /configure/       { print "OK"; exit }'`
29      if test "$ans" = OK
30      then
31         pcp_ps_have_bsd=true
This page took 0.075239 seconds and 4 git commands to generate.