Changeset 848


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

convert cifsmount to new packaging style

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

Legend:

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

    r627 r848  
    88 
    99PKG_BUILD_DIR:=$(BUILD_DIR)/cifsmount 
    10 PKG_IPK_DIR:=$(PKG_BUILD_DIR) 
    11 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    1210 
    13 $(PKG_BUILD_DIR)/sbin/mount.cifs: 
    14         mkdir -p $(PKG_BUILD_DIR)/sbin 
    15         $(TARGET_CC) -o $@ mount.cifs.c 
    16         $(STRIP) $@ 
     11include $(TOPDIR)/package/rules.mk 
    1712 
    18 $(PKG_IPK): $(PKG_BUILD_DIR)/sbin/mount.cifs 
    19         $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
    20         $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR) 
     13$(eval $(call PKG_template,CIFSMOUNT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2114 
    22 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: 
    23         $(IPKG) install $(PKG_IPK) 
     15$(PKG_BUILD_DIR)/.prepared: 
     16        mkdir -p $@ 
    2417 
    25 source: 
    26 prepare: 
    27 compile: $(PKG_IPK) 
    28 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
     18$(PKG_BUILD_DIR)/.built: 
     19        $(TARGET_CC) -o $(PKG_BUILD_DIR)/mount.cifs mount.cifs.c 
     20        $(STRIP) $(PKG_BUILD_DIR)/mount.cifs 
     21        touch $@ 
    2922 
    30 clean: 
    31         rm -rf $(PKG_BUILD_DIR) 
    32         rm -f $(PKG_IPK) 
     23$(IPKG_CIFSMOUNT): 
     24        mkdir -p $(IDIR_CIFSMOUNT)/sbin 
     25        install -m 0755 $(PKG_BUILD_DIR)/mount.cifs $(IDIR_CIFSMOUNT)/sbin/mount.cifs 
     26        $(IPKG_BUILD) $(IDIR_CIFSMOUNT) $(PACKAGE_DIR) 
Note: See TracChangeset for help on using the changeset viewer.