Changeset 852


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

convert dropbear to new packaging style

Location:
trunk/openwrt/package/dropbear
Files:
2 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/dropbear/Makefile

    r647 r852  
    88PKG_MD5SUM:=2bcc46e4c239aec982bf36a723dd0b0e 
    99 
    10 PKG_SOURCE_URL:= \ 
    11         http://matt.ucc.asn.au/dropbear/releases/ \ 
    12         http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/ 
     10PKG_SOURCE_URL:=http://matt.ucc.asn.au/dropbear/releases/ 
    1311PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1412PKG_CAT:=bzcat 
     
    1614PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1715 
    18 IPKG_DROPBEAR:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    19 IDIR_DROPBEAR:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME) 
    20 INFO_DROPBEAR:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
     16include $(TOPDIR)/package/rules.mk 
    2117 
    22 $(DL_DIR)/$(PKG_SOURCE): 
    23          $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) 
     18$(eval $(call PKG_template,DROPBEAR,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2419 
    25 $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE) 
    26         $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    27         $(PATCH) $(PKG_BUILD_DIR) ./patches \*.patch 
     20$(PKG_BUILD_DIR)/.configured: 
    2821        $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h 
    29         touch $(PKG_BUILD_DIR)/.prepared 
    30  
    31 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared 
    3222        (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ 
    3323                autoconf; \ 
     
    7161        touch  $(PKG_BUILD_DIR)/.configured 
    7262 
    73 $(PKG_BUILD_DIR)/dropbearmulti: $(PKG_BUILD_DIR)/.configured 
     63$(PKG_BUILD_DIR)/.built: 
    7464        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    7565                LD=$(TARGET_CC) \ 
    7666                PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \ 
    7767                MULTI=1 SCPPROGRESS=1 
     68        touch $@ 
    7869 
    79 $(IPKG_DROPBEAR): $(PKG_BUILD_DIR)/dropbearmulti 
    80         $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_DROPBEAR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
     70$(IPKG_DROPBEAR): 
    8171        mkdir -p $(IDIR_DROPBEAR)/usr/bin 
    8272        mkdir -p $(IDIR_DROPBEAR)/usr/sbin 
     
    9282        install -m 755 ./files/S50dropbear $(IDIR_DROPBEAR)/etc/init.d/ 
    9383        $(IPKG_BUILD) $(IDIR_DROPBEAR) $(PACKAGE_DIR) 
    94  
    95 $(INFO_DROPBEAR): $(IPKG_DROPBEAR) 
    96         $(IPKG) install $(IPKG_DROPBEAR) 
    97  
    98 source: $(DL_DIR)/$(PKG_SOURCE) 
    99 prepare: $(PKG_BUILD_DIR)/.prepared 
    100 compile: $(IPKG_DROPBEAR) 
    101 install: $(INFO_DROPBEAR) 
    102  
    103 clean: 
    104         rm -rf $(PKG_BUILD_DIR) $(IPKG_DROPBEAR) 
    105  
Note: See TracChangeset for help on using the changeset viewer.