Changeset 18993


Ignore:
Timestamp:
2010-01-02T13:14:14+01:00 (8 years ago)
Author:
florian
Message:

[package] fix zabbix dependencies, remove whitespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/admin/zabbix/Makefile

    r16694 r18993  
    1 #  
    2 # Copyright (C) 2006 OpenWrt.org 
     1# 
     2# Copyright (C) 2006-2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=zabbix 
    1111PKG_VERSION:=1.6 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313PKG_MD5SUM:=39d4c871439b1b4f0429964b4abbfc45 
    1414 
     
    2626  URL:=http://www.zabbix.com/ 
    2727  SUBMENU:=zabbix 
    28   DEPENDS:=libcurl 
     28  DEPENDS:=+libcurl 
    2929endef 
    3030 
     
    4242  $(call Package/zabbix/Default) 
    4343  TITLE+= server 
    44   DEPENDS:=+libsqlite3 
     44  DEPENDS += +libsqlite3 
    4545endef 
    4646 
     
    8787define Package/zabbix-agent/postinst 
    8888#!/bin/sh 
    89    
     89 
    9090name=zabbix 
    9191id=53 
    92    
     92 
    9393# do not change below 
    9494# check if we are on real system 
     
    109109 
    110110echo "" 
    111 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then  
     111if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then 
    112112        echo "adding group $$name to /etc/group" 
    113         echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group   
     113        echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group 
    114114fi 
    115115 
    116 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then  
     116if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then 
    117117        echo "adding user $$name to /etc/passwd" 
    118118        echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd 
    119119fi 
     120 
     121chown $${name} $${IPKG_INSTROOT}/etc/zabbix/zabbix_agentd.conf 
    120122 
    121123endef 
Note: See TracChangeset for help on using the changeset viewer.