Changeset 24881


Ignore:
Timestamp:
2011-01-02T10:23:05+01:00 (7 years ago)
Author:
swalker
Message:

[packages] psmisc: update to 22.13

  • drop obsolete patch
  • add killall preinst/postrm
  • use better upstream url
  • use PKG_INSTALL
Location:
packages/utils/psmisc
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/psmisc/Makefile

    r24610 r24881  
    1 #  
    2 # Copyright (C) 2006 OpenWrt.org 
     1# 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    99 
    1010PKG_NAME:=psmisc 
    11 PKG_VERSION:=22.12 
    12 PKG_RELEASE:=2 
     11PKG_VERSION:=22.13 
     12PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=@SF/psmisc 
    16 PKG_MD5SUM:=16c83a351c292cfc845b27d6395e05fb 
     16PKG_MD5SUM:=e2c339e6b65b730042084023784a729e 
    1717 
    1818PKG_FIXUP:=libtool 
     19PKG_INSTALL:=1 
    1920 
    2021include $(INCLUDE_DIR)/package.mk 
     
    2526  DEPENDS:=+libncurses 
    2627  TITLE:=proc utilities 
    27   URL:=http://sourceforge.net/projects/psmisc/ 
     28  URL:=http://psmisc.sourceforge.net/ 
    2829endef 
    2930 
     
    3839        LDFLAGS="$(TARGET_LDFLAGS)" \ 
    3940 
     41define Package/psmisc/preinst 
     42#!/bin/sh 
     43if [ -e $${IPKG_INSTROOT}/usr/bin/killall ]; then 
     44  rm $${IPKG_INSTROOT}/usr/bin/killall; 
     45fi 
     46endef 
     47 
    4048define Package/psmisc/install 
    41         $(INSTALL_DIR) $(1)/usr/sbin 
    42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/fuser $(1)/usr/sbin/ 
    43         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/killall $(1)/usr/sbin 
    4449        $(INSTALL_DIR) $(1)/usr/bin 
    45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pstree $(1)/usr/bin 
    46         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/prtstat $(1)/usr/bin 
     50        $(INSTALL_BIN) \ 
     51                $(PKG_INSTALL_DIR)/usr/bin/{fuser,killall,prtstat,pstree} \ 
     52                $(1)/usr/bin/ 
     53endef 
     54 
     55define Package/psmisc/postrm 
     56#!/bin/sh 
     57ln -sf ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/killall 
     58$${IPKG_INSTROOT}/usr/bin/killall 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/usr/bin/killall 
     59exit 0 
    4760endef 
    4861 
Note: See TracChangeset for help on using the changeset viewer.