Modified: trunk/dports/net/fping/Portfile (81695 => 81696)
--- trunk/dports/net/fping/Portfile 2011-08-04 14:10:09 UTC (rev 81695)
+++ trunk/dports/net/fping/Portfile 2011-08-04 14:19:58 UTC (rev 81696)
@@ -1,4 +1,5 @@
# $Id$
+
PortSystem 1.0
name fping
@@ -28,7 +29,7 @@
post-destroot {
system "ln -s fping.8 ${destroot}${prefix}/share/man/man8/fping6.8"
# Check if user is running as root
- if {$env(USER) == "root"} {
+ if {[geteuid] == 0} {
system "chmod 4511 ${destroot}${prefix}/sbin/fping"
system "chmod 4511 ${destroot}${prefix}/sbin/fping6"
} else {
@@ -41,4 +42,3 @@
system "chmod 0511 ${destroot}${prefix}/sbin/fping6"
}
}
-