Changeset 4260


Ignore:
Timestamp:
2006-07-24T17:27:30+02:00 (12 years ago)
Author:
nico
Message:

port hdparm to buildroot-ng

Location:
packages/utils/hdparm
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/utils/hdparm/Makefile

    r3622 r4260  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7# $Id$ 
     8 
    19include $(TOPDIR)/rules.mk 
    210 
     
    412PKG_VERSION:=6.6 
    513PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=@SF/hdparm 
    618PKG_MD5SUM:=ecea69f775396e4ab6112dcf9066239f 
    7  
    8 PKG_SOURCE_URL:=@SF/hdparm 
    9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1019PKG_CAT:=zcat 
    1120 
    12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1321PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1422 
    15 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1624 
    17 $(eval $(call PKG_template,HDPARM,hdparm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/hdparm 
     26  SECTION:=utils 
     27  CATEGORY:=Utilities 
     28  TITLE:=Hard disk drive configuration utilitity 
     29  DESCRIPTION:=Hard disk drive configuration utilitity.\\\ 
     30    Tune hard disk parameters for high performance.\\\ 
     31    Get/set hard disk parameters for Linux IDE drives.\\\ 
     32    Primary use is for enabling irq-unmasking and IDE multiplemode. 
     33  URL:=http://sourceforge.net/projects/hdparm/ 
     34endef 
    1835 
    19 $(PKG_BUILD_DIR)/.configured: 
    20         touch $@ 
     36define Build/Configure 
     37endef 
    2138 
    22 $(PKG_BUILD_DIR)/.built: 
     39define Build/Compile 
    2340        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    2441                CC=$(TARGET_CC) 
    25         touch $@ 
     42endef 
    2643 
    27 $(IPKG_HDPARM): 
    28         install -d -m0755 $(IDIR_HDPARM)/usr/sbin 
    29         install -m0755 $(PKG_BUILD_DIR)/hdparm $(IDIR_HDPARM)/usr/sbin 
    30         $(RSTRIP) $(IDIR_HDPARM) 
    31         $(IPKG_BUILD) $(IDIR_HDPARM) $(PACKAGE_DIR) 
     44define Package/hdparm/install 
     45        install -d -m0755 $(1)/usr/sbin 
     46        install -m0755 $(PKG_BUILD_DIR)/hdparm $(1)/usr/sbin 
     47endef 
    3248 
    33 mostlyclean: 
    34         $(MAKE) -C $(PKG_BUILD_DIR) \ 
    35                 clean 
    36         rm -f $(PKG_BUILD_DIR)/.built 
     49$(eval $(call BuildPackage,hdparm)) 
Note: See TracChangeset for help on using the changeset viewer.