Opened 19 years ago

Closed 19 years ago

Last modified 9 years ago

#7190 closed defect (fixed)

BUG: zabbix port is broken and makes index generation fail

Reported by: danielluke (Daniel J. Luke) Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: zabbix

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The zabbix port attempts to add a user and add a group when portindex parses the file (which fails and thus causes index generation to fail).

Parts of the port that actually do things (as apposed to assigning values to variables) need to go into one of the pre/post phases.

Something like this inline patch which may or may not work and may or may not do the right thing would be appropriate.

Index: Portfile
===================================================================
RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/net/zabbix/Portfile,v
retrieving revision 1.2
diff -u -r1.2 Portfile
--- Portfile    11 Feb 2006 10:21:46 -0000      1.2
+++ Portfile    11 Feb 2006 16:25:33 -0000
@@ -44,8 +44,10 @@
        startupitem.start       "${prefix}/share/zabbix/zabbix_server.init start"
        startupitem.stop        "${prefix}/share/zabbix/zabbix_server.init stop"
 
-       adduser zabbix
-       addgroup zabbix
+       post-extract {
+                       adduser zabbix
+                       addgroup zabbix
+       }
 }
 
 variant agent_only {

Thanks!

Change History (2)

comment:1 Changed 19 years ago by olegb@…

Resolution: fixed
Status: newclosed

this is fixed...

m00:~/src/dports/devel/glib1 olegb$ port search zabbix
zabbix                         net/zabbix     1.1beta6     An open source application and network monitor
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: zabbix added
Note: See TracTickets for help on using tickets.