Changeset 933


Ignore:
Timestamp:
2005-05-18T15:30:05+02:00 (13 years ago)
Author:
nico
Message:

Convert ntpclient to new packaging style

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

Legend:

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

    r562 r933  
    88PKG_SOURCE_URL:=http://doolittle.faludi.com/ntpclient 
    99PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz 
     10PKG_CAT:=zcat 
     11 
    1012PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
    11 PKG_CAT:=zcat 
    12 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    13 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg 
    1413 
    15 $(DL_DIR)/$(PKG_SOURCE): 
    16         $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) 
     14include $(TOPDIR)/package/rules.mk 
    1715 
    18 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE) 
    19         $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    20         touch $(PKG_BUILD_DIR)/.unpacked 
     16$(eval $(call PKG_template,NTPCLIENT,ntpclient,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2117 
    22 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.unpacked 
    23         $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) 
     18$(PKG_BUILD_DIR)/.built: 
     19        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     20                CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" 
    2421 
    25 $(PKG_IPK): $(PKG_BUILD_DIR)/$(PKG_NAME) 
    26         $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
    27         mkdir -p $(PKG_IPK_DIR)/usr/sbin $(PKG_IPK_DIR)/etc/init.d 
    28         install -m 755 $(PKG_BUILD_DIR)/ntpclient $(PKG_IPK_DIR)/usr/sbin/ 
    29         install -m 755 ./files/S41ntpclient $(PKG_IPK_DIR)/etc/init.d/ 
    30         $(STRIP) $(PKG_IPK_DIR)/usr/sbin/* 
    31         mkdir -p $(PACKAGE_DIR) 
    32         $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR) 
     22$(IPKG_NTPCLIENT): 
     23        install -d -m0755 $(IDIR_NTPCLIENT)/etc/init.d 
     24        install -m0755 ./files/ntpclient.init $(IDIR_NTPCLIENT)/etc/init.d/S41ntpclient 
     25        install -d -m0755 $(IDIR_NTPCLIENT)/usr/sbin 
     26        install -m0755 $(PKG_BUILD_DIR)/ntpclient $(IDIR_NTPCLIENT)/usr/sbin/ 
     27        $(RSTRIP) $(IDIR_NTPCLIENT) 
     28        $(IPKG_BUILD) $(IDIR_NTPCLIENT) $(PACKAGE_DIR) 
    3329 
    34 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK) 
    35         $(IPKG) install $(PKG_IPK) 
    36  
    37 source: $(DL_DIR)/$(PKG_SOURCE) 
    38 prepare: $(PKG_BUILD_DIR)/.unpacked 
    39 compile: $(PKG_IPK) 
    40 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
    41  
    42 clean: 
    43         rm -rf $(PKG_BUILD_DIR) 
    44         rm -f $(PKG_IPK) 
Note: See TracChangeset for help on using the changeset viewer.