Ignore:
Timestamp:
2010-03-06T11:53:30+01:00 (6 years ago)
Author:
swalker
Message:

[packages] gzip: update to 1.4, correct symlinks on post{inst,rm}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/gzip/Makefile

    r19705 r20012  
    99 
    1010PKG_NAME:=gzip 
    11 PKG_VERSION:=1.3.13 
    12 PKG_RELEASE:=2 
     11PKG_VERSION:=1.4 
     12PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    15 PKG_SOURCE_URL:=@GNU/gzip/ 
    16 PKG_MD5SUM:=c54a31b93e865f6a4410b2dc64662706 
     15PKG_SOURCE_URL:=@GNU/gzip 
     16PKG_MD5SUM:=e381b8506210c794278f5527cba0e765 
    1717 
    1818PKG_INSTALL:=1 
     
    2323  SECTION:=utils 
    2424  CATEGORY:=Utilities 
    25   DEPENDS:= 
    2625  TITLE:=gzip (GNU zip) is a compression utility. 
    2726  URL:=http://www.gzip.org/ 
     
    3938        $(SED) 's,/bin/bash,/bin/sh,g' $(PKG_INSTALL_DIR)/usr/bin/{gunzip,zcat} 
    4039        $(INSTALL_DIR) $(1)/usr/bin 
    41         $(CP) $(PKG_INSTALL_DIR)/usr/bin/{gunzip,gzip,zcat} $(1)/usr/bin/ 
     40        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{gunzip,gzip,zcat} $(1)/usr/bin/ 
     41endef 
     42 
     43define Package/gzip/postinst 
     44#!/bin/sh 
     45for app in gunzip gzip zcat; do 
     46  ln -sf $${IPKG_INSTROOT}/usr/bin/$$app $${IPKG_INSTROOT}/bin/$$app 
     47done 
     48endef 
     49 
     50define Package/gzip/postrm 
     51#!/bin/sh 
     52for app in gunzip gzip zcat; do 
     53  ln -sf busybox $${IPKG_INSTROOT}/bin/$$app 
     54  $${IPKG_INSTROOT}/bin/$$app 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/bin/$$app 
     55done 
     56exit 0 
    4257endef 
    4358 
Note: See TracChangeset for help on using the changeset viewer.