[109634] trunk/dports/net/zabbix2/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Aug 18 18:23:53 PDT 2013


Revision: 109634
          https://trac.macports.org/changeset/109634
Author:   ryandesign at macports.org
Date:     2013-08-18 18:23:53 -0700 (Sun, 18 Aug 2013)
Log Message:
-----------
zabbix2: fix use of add_users (must be outside of a phase); use ne for string comparison instead of !=

Modified Paths:
--------------
    trunk/dports/net/zabbix2/Portfile

Modified: trunk/dports/net/zabbix2/Portfile
===================================================================
--- trunk/dports/net/zabbix2/Portfile	2013-08-19 01:11:15 UTC (rev 109633)
+++ trunk/dports/net/zabbix2/Portfile	2013-08-19 01:23:53 UTC (rev 109634)
@@ -53,7 +53,7 @@
 
 startupitem.create      yes
 
-if { ${subport} != ${name} } {
+if { ${name} ne ${subport} } {
     startupitem.name        zabbix2-agentd
     startupitem.executable  \
         ${prefix}/sbin/zabbix/zabbix_agentd \
@@ -127,12 +127,10 @@
         ${worksrcpath}/conf/zabbix_server.conf
 }
 
-pre-destroot {
-    add_users zabbix group=zabbix
-}
+add_users zabbix group=zabbix
 
 post-destroot {
-    if { ${name} != ${subport} } {
+    if { ${name} ne ${subport} } {
      ####### AGENT #######
 # Copy sample agent .conf files
         xinstall -d -m 755 -d ${destroot}${prefix}/etc/zabbix
@@ -193,7 +191,7 @@
     }
 }
 
-if { ${name} != ${subport} } {
+if { ${name} ne ${subport} } {
     notes "
 ####                                        ####
 #### ZABBIX2 agent installation section     ####
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130818/c2bb843e/attachment.html>


More information about the macports-changes mailing list