Changeset 838


Ignore:
Timestamp:
2005-05-12T20:26:43+02:00 (13 years ago)
Author:
nbd
Message:

convert aiccu to new packaging style

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

Legend:

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

    r562 r838  
    1010PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
    1111PKG_CAT:=zcat 
    12 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    13 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg 
    1412 
    15 $(DL_DIR)/$(PKG_SOURCE): 
    16         $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) 
     13include $(TOPDIR)/package/rules.mk 
    1714 
    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 
     15$(eval $(call PKG_template,AICCU,aiccu,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2116 
    22 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME): $(PKG_BUILD_DIR)/.unpacked 
     17$(PKG_BUILD_DIR)/.built: 
    2318        $(SED) "s,strip,$(STRIP)," $(PKG_BUILD_DIR)/unix-console/Makefile 
    2419        $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" DEBUG=0 -C $(PKG_BUILD_DIR) 
    2520 
    26 $(PKG_IPK): $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) 
    27         $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
    28         mkdir -p $(PKG_IPK_DIR)/usr/sbin $(PKG_IPK_DIR)/etc/init.d 
    29         install -m 755 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(PKG_IPK_DIR)/usr/sbin/ 
    30         install -m 755 ./files/S51aiccu $(PKG_IPK_DIR)/etc/init.d/ 
    31         install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(PKG_IPK_DIR)/etc/aiccu.conf 
    32         $(STRIP) $(PKG_IPK_DIR)/usr/sbin/* 
    33         mkdir -p $(PACKAGE_DIR) 
    34         $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR) 
     21$(IPKG_AICCU): 
     22        mkdir -p $(IDIR_AICCU)/usr/sbin $(IDIR_AICCU)/etc/init.d 
     23        install -m 755 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(IDIR_AICCU)/usr/sbin/ 
     24        install -m 755 ./files/S51aiccu $(IDIR_AICCU)/etc/init.d/ 
     25        install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(IDIR_AICCU)/etc/aiccu.conf 
     26        $(STRIP) $(IDIR_AICCU)/usr/sbin/* 
     27        $(IPKG_BUILD) $(IDIR_AICCU) $(PACKAGE_DIR) 
    3528 
    36 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK) 
    37         $(IPKG) install $(PKG_IPK) 
    38  
    39 source: $(DL_DIR)/$(PKG_SOURCE) 
    40 prepare: $(PKG_BUILD_DIR)/.unpacked 
    41 compile: $(PKG_IPK) 
    42 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
    43  
    44 clean: 
    45         rm -rf $(PKG_BUILD_DIR) 
    46         rm -f $(PKG_IPK) 
Note: See TracChangeset for help on using the changeset viewer.