Changeset 4389


Ignore:
Timestamp:
2006-08-02T10:29:39+02:00 (10 years ago)
Author:
florian
Message:

Port heyu to -ng

Location:
packages/utils/heyu
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/utils/heyu/Makefile

    r3299 r4389  
     1# Copyright (C) 2006 OpenWrt.org 
     2# 
     3# This is free software, licensed under the GNU General Public License v2. 
     4# See /LICENSE for more information. 
     5# 
    16# $Id$ 
    27 
     
    1217PKG_CAT:=zcat 
    1318 
    14 include $(TOPDIR)/package/rules.mk 
     19include $(INCLUDE_DIR)/package.mk 
    1520 
    16 $(eval $(call PKG_template,HEYU,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     21define Package/heyu 
     22  SECTION:=utils 
     23  CATEGORY:=Utilities 
     24  DEPENDS:=+setserial 
     25  TITLE:=X10 home automation control using a CM11A 
     26  DESCRIPTION:=10 home automation control using the CM11A serial device. 
     27  URL:=http://heyu.tanj.com/heyu2/ 
     28endef 
    1729 
    18 $(PKG_BUILD_DIR)/.configured: 
    19         touch $@ 
     30define Package/heyu/conffiles 
     31/etc/heyu/x10.conf 
     32endef 
    2033 
    21 $(PKG_BUILD_DIR)/.built:  
     34define Build/Compile     
    2235        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    2336                CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \ 
    2437                CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ" 
    25         touch $@ 
     38endef 
    2639 
    27 $(IPKG_HEYU): 
    28         install -d -m0755 $(IDIR_HEYU)/etc/$(PKG_NAME) 
    29         install -m0644 ./files/x10.conf $(IDIR_HEYU)/etc/$(PKG_NAME)/x10.conf 
    30         install -d -m0755 $(IDIR_HEYU)/usr/bin 
    31         install -m0644 $(PKG_BUILD_DIR)/heyu $(IDIR_HEYU)/usr/bin/ 
    32         $(RSTRIP) $(IDIR_HEYU) 
    33         $(IPKG_BUILD) $(IDIR_HEYU) $(PACKAGE_DIR) 
     40define Package/heyu/install      
     41        install -d -m0755 $(1)/etc/$(PKG_NAME) 
     42        install -m0644 ./files/x10.conf $(1)/etc/$(PKG_NAME)/x10.conf 
     43        install -d -m0755 $(1)/usr/bin 
     44        install -m0644 $(PKG_BUILD_DIR)/heyu $(1)/usr/bin/ 
     45endef 
     46 
     47$(eval $(call BuildPackage,heyu)) 
Note: See TracChangeset for help on using the changeset viewer.