Ignore:
Timestamp:
2010-07-22T17:42:27+02:00 (6 years ago)
Author:
swalker
Message:

[packages] diffutils: update to 3.0, use PKG_INSTALL, handle the busybox diff applet on preinst and postrm, cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/devel/diffutils/Makefile

    r20398 r22354  
    99 
    1010PKG_NAME:=diffutils 
    11 PKG_VERSION:=2.8.1 
     11PKG_VERSION:=3.0 
    1212PKG_RELEASE:=1 
    13 PKG_MD5SUM:=71f9c5ae19b60608f6c7f162da86a428 
     13 
     14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1415PKG_SOURCE_URL:=@GNU/diffutils 
    15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     16PKG_MD5SUM:=684aaba1baab743a2a90e52162ff07da 
     17 
     18PKG_INSTALL:=1 
    1619 
    1720include $(INCLUDE_DIR)/package.mk 
     
    2528 
    2629define Package/diffutils/description 
    27   The Diffutils package contains programs that show the differences between files or directories. 
     30  The Diffutils package contains programs that show the differences between 
     31  files or directories. 
    2832endef 
    2933 
    30 define Build/Configure 
    31         $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/config/ 
    32         $(call Build/Configure/Default,ac_cv_func_mempcpy=n) 
    33 endef 
    34  
    35 define Build/Compile 
    36         $(MAKE_VARS) $(MAKE) $(MAKE_ARGS) -C $(PKG_BUILD_DIR) all 
    37 endef 
     34CONFIGURE_VARS += \ 
     35        ac_cv_func_mempcpy=n \ 
    3836 
    3937define Package/diffutils/install 
    4038        $(INSTALL_DIR) $(1)/usr/bin 
    41         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/{sdiff,diff3,diff,cmp} $(1)/usr/bin/ 
     39        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sdiff,diff3,diff,cmp} $(1)/usr/bin/ 
     40endef 
     41 
     42define Package/diffutils/preinst 
     43#!/bin/sh 
     44if [ -e $${IPKG_INSTROOT}/usr/bin/diff ]; then 
     45  rm $${IPKG_INSTROOT}/usr/bin/diff; 
     46fi 
     47endef 
     48 
     49define Package/diffutils/postrm 
     50#!/bin/sh 
     51ln -sf ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/diff 
     52$${IPKG_INSTROOT}/usr/bin/diff 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/usr/bin/diff 
     53exit 0 
    4254endef 
    4355 
Note: See TracChangeset for help on using the changeset viewer.