Changeset 26447


Ignore:
Timestamp:
2011-04-03T20:12:25+02:00 (7 years ago)
Author:
luka
Message:

upgrade file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/file/Makefile

    r20731 r26447  
    11# 
    2 # Copyright (C) 2007-2010 OpenWrt.org 
     2# Copyright (C) 2007-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    99 
    1010PKG_NAME:=file 
    11 PKG_VERSION:=4.26 
    12 PKG_RELEASE:=2 
     11PKG_VERSION:=5.05 
     12PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/file/ 
    16 PKG_MD5SUM:=74cd5466416136da30a4e69f74dbc7a0 
     16PKG_MD5SUM:=0b429063710457be2bd17a18389cb018 
    1717 
    1818PKG_FIXUP:=libtool 
    1919PKG_INSTALL:=1 
     20PKG_BUILD_PARALLEL:=1 
    2021 
    2122include $(INCLUDE_DIR)/package.mk 
     
    2425  TITLE:=File type determination 
    2526  URL:=ftp://ftp.astron.com/pub/file/ 
     27  MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net> 
    2628endef 
    2729 
     
    6769define Build/InstallDev 
    6870        $(INSTALL_DIR) $(1)/usr/include 
    69         $(CP) $(PKG_INSTALL_DIR)/usr/include/magic.h $(1)/usr/include/ 
     71        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/magic.h $(1)/usr/include/ 
    7072        $(INSTALL_DIR) $(1)/usr/lib 
    71         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmagic.{a,so*} $(1)/usr/lib/ 
     73        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libmagic.{a,so*} $(1)/usr/lib/ 
    7274endef 
    7375 
    7476define Package/file/install 
    7577        $(INSTALL_DIR) $(1)/usr/bin 
    76         $(CP) $(PKG_INSTALL_DIR)/usr/bin/file $(1)/usr/bin/ 
    77         $(INSTALL_DIR) $(1)/usr/share/file 
    78         $(CP) $(PKG_INSTALL_DIR)/usr/share/file/magic $(1)/usr/share/file/ 
     78        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/file $(1)/usr/bin/ 
     79        $(INSTALL_DIR) $(1)/usr/share/misc 
     80        $(SED) "/^#/d" $(PKG_INSTALL_DIR)/usr/share/file/magic 
     81        $(SED) "/^$$$$/d" $(PKG_INSTALL_DIR)/usr/share/file/magic 
     82        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/file/magic $(1)/usr/share/misc/ 
    7983endef 
    8084 
    8185define Package/libmagic/install 
    8286        $(INSTALL_DIR) $(1)/usr/lib 
    83         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmagic.so.* $(1)/usr/lib/ 
     87        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libmagic.so.* $(1)/usr/lib/ 
    8488endef 
    8589 
Note: See TracChangeset for help on using the changeset viewer.