Changeset 855


Ignore:
Timestamp:
2005-05-12T21:57:29+02:00 (13 years ago)
Author:
nbd
Message:

convert ez-ipupdate to new packaging style

Location:
trunk/openwrt/package/ez-ipupdate
Files:
2 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/ez-ipupdate/Makefile

    r438 r855  
    88PKG_MD5SUM:=000211add4c4845ffa4211841bff4fb0 
    99 
    10 # space separated list or special @SF for sourceforge projects 
    1110PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/ez-ipupdate \ 
    1211        http://ftp.de.debian.org/debian/pool/main/e/ez-ipupdate 
     
    1413PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1514PKG_CAT:=zcat 
    16 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    17 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg 
    1815 
    19 $(DL_DIR)/$(PKG_SOURCE): 
    20          $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) 
     16include $(TOPDIR)/package/rules.mk 
    2117 
    22 $(PKG_BUILD_DIR)/.patched: $(DL_DIR)/$(PKG_SOURCE) 
    23         $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    24         $(PATCH) $(PKG_BUILD_DIR) ./patches 
    25         touch $(PKG_BUILD_DIR)/.patched 
     18$(eval $(call PKG_template,EZIPUPDATE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2619 
    27 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.patched 
     20$(PKG_BUILD_DIR)/.configured: 
    2821        (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ 
    2922                $(TARGET_CONFIGURE_OPTS) \ 
     
    4740                $(DISABLE_NLS) \ 
    4841        ); 
    49         touch $(PKG_BUILD_DIR)/.configured 
     42        touch $@ 
    5043 
    51 $(PKG_BUILD_DIR)/ez-ipupdate: $(PKG_BUILD_DIR)/.configured 
     44$(PKG_BUILD_DIR)/.built: 
    5245        $(MAKE) -C $(PKG_BUILD_DIR) 
     46        touch $@ 
    5347 
    54 $(PKG_IPK): $(PKG_BUILD_DIR)/ez-ipupdate 
    55         $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
    56         mkdir -p $(PKG_IPK_DIR)/usr/sbin  
    57         cp $(PKG_BUILD_DIR)/ez-ipupdate $(PKG_IPK_DIR)/usr/sbin/ 
    58         $(STRIP) $(PKG_IPK_DIR)/usr/sbin/* 
    59         mkdir -p $(PACKAGE_DIR) 
    60         $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR) 
     48$(IPKG_EZIPUPDATE): 
     49        mkdir -p $(IDIR_EZIPUPDATE)/usr/sbin  
     50        cp $(PKG_BUILD_DIR)/ez-ipupdate $(IDIR_EZIPUPDATE)/usr/sbin/ 
     51        $(STRIP) $(IDIR_EZIPUPDATE)/usr/sbin/* 
     52        $(IPKG_BUILD) $(IDIR_EZIPUPDATE) $(PACKAGE_DIR) 
    6153 
    62 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK) 
    63         $(IPKG) install $(PKG_IPK) 
    64  
    65 source: $(DL_DIR)/$(PKG_SOURCE) 
    66 prepare: $(PKG_BUILD_DIR)/.patched 
    67 compile: $(PKG_IPK) 
    68 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
    69  
    70 clean: 
    71         rm -rf $(PKG_BUILD_DIR) 
    72         rm -f $(PKG_IPK) 
Note: See TracChangeset for help on using the changeset viewer.