Changeset 3689


Ignore:
Timestamp:
2006-04-21T10:39:19+02:00 (12 years ago)
Author:
mbm
Message:

convert bridge package to buildroot-ng

Location:
branches/buildroot-ng/openwrt/package/bridge
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/buildroot-ng/openwrt/package/bridge/Makefile

    r3112 r3689  
    66PKG_VERSION:=1.0.6 
    77PKG_RELEASE:=1 
     8 
     9PKG_BUILD_DIR:=$(BUILD_DIR)/bridge-utils-$(PKG_VERSION) 
     10PKG_SOURCE:=bridge-utils-$(PKG_VERSION).tar.gz 
     11PKG_SOURCE_URL:=@SF/bridge 
    812PKG_MD5SUM:=9b7dc52656f5cbec846a7ba3299f73bd 
    9  
    10 PKG_SOURCE_URL:=@SF/bridge 
    11 PKG_SOURCE:=bridge-utils-$(PKG_VERSION).tar.gz 
    12 PKG_BUILD_DIR:=$(BUILD_DIR)/bridge-utils-$(PKG_VERSION) 
    1313PKG_CAT:=zcat 
    1414 
    1515include $(TOPDIR)/package/rules.mk 
    16 $(eval $(call PKG_template,BRIDGE,bridge,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    1716 
    18 $(PKG_BUILD_DIR)/.configured: 
    19         (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ 
     17define Package/bridge 
     18SECTION:=base 
     19CATEGORY:=Network 
     20DEFAULT:=y 
     21TITLE:=Ethernet bridging configuration utility 
     22DESCRIPTION:=Manage ethernet bridging; a way to connect networks together to\\\ 
     23form a larger network. 
     24URL:=http://bridge.sourceforge.net/ 
     25endef 
     26 
     27define Build/Configure 
    2028                $(TARGET_CONFIGURE_OPTS) \ 
    2129                CFLAGS="$(TARGET_CFLAGS)" \ 
     
    3543                --infodir=/usr/info \ 
    3644                $(DISABLE_NLS) \ 
    37                 --with-linux-headers=$(LINUX_DIR) \ 
    38         ); 
    39         touch $@ 
     45                --with-linux-headers=$(LINUX_DIR) 
     46endef 
    4047 
    41 $(PKG_BUILD_DIR)/.built: 
     48 
     49define Build/Compile 
    4250        $(MAKE) -C $(PKG_BUILD_DIR) 
    4351        touch $@ 
     52endef 
    4453 
    45 $(IPKG_BRIDGE):  
     54define Package/busybox/install 
    4655        mkdir -p $(IDIR_BRIDGE)/usr/sbin 
    4756        $(CP) $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/ 
    4857        $(STRIP) $(IDIR_BRIDGE)/usr/sbin/brctl 
    4958        $(IPKG_BUILD) $(IDIR_BRIDGE) $(PACKAGE_DIR) 
     59endef 
     60 
     61$(eval $(call BuildPackage,bridge)) 
Note: See TracChangeset for help on using the changeset viewer.