Changeset 28774


Ignore:
Timestamp:
2011-11-06T14:55:56+01:00 (6 years ago)
Author:
jogo
Message:

packages: znc: fix cert linking and add mirror

Properly (re-)create the link only if there's a file given and don't try to
change the owner of the link target.

Also add the znc release archive as a file mirror to prevent updates from
breaking the build.

Location:
packages/net/znc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/znc/Makefile

    r27799 r28774  
    1010PKG_NAME:=znc 
    1111PKG_VERSION:=0.098 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=5 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    15 PKG_SOURCE_URL:=http://znc.in/releases 
     15PKG_SOURCE_URL:=http://znc.in/releases \ 
     16                http://znc.in/releases/archive 
    1617PKG_MD5SUM:=5667b4acb1f01309d6eded77abac700c 
    1718 
  • packages/net/znc/files/znc.init

    r26722 r28774  
    5353                config_get znc_pem_file "$znc" znc_ssl_cert 
    5454 
    55                 [ -z $znc_pem_file -o -f $ZNC_CONFIG_PATH/znc.pem ] || ln -s "$znc_pem_file" $ZNC_CONFIG_PATH/znc.pem 
     55                [ -z "$znc_pem_file" ] || ln -sf "$znc_pem_file" $ZNC_CONFIG_PATH/znc.pem 
    5656 
    5757                [ -z $anoniplimit ] || echo "AnonIPLimit = $anoniplimit" >> $ZNC_CONFIG 
     
    128128                config_foreach add_user user 
    129129 
    130                 chown -R ${RUNAS_USER:-nobody}:${RUNAS_GROUP:-nogroup} /tmp/etc/znc 
     130                chown -hR ${RUNAS_USER:-nobody}:${RUNAS_GROUP:-nogroup} /tmp/etc/znc 
    131131        fi 
    132132 
Note: See TracChangeset for help on using the changeset viewer.