Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=br2684ctl
  10. PKG_VERSION:=20040226
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  13. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/br2684ctl
  14. PKG_MD5SUM:=6eb4d8cd174e24a7c078eb4f594f5b69
  15. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
  16. PKG_BUILD_DEPENDS:=linux-atm
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/$(PKG_NAME)
  19. SECTION:=net
  20. CATEGORY:=Base system
  21. TITLE:=ATM Ethernet bridging configuration utility
  22. DEPENDS:=+linux-atm
  23. URL:=http://ftp.debian.org/debian/pool/main/b/br2684ctl
  24. endef
  25. TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
  26. MAKE_FLAGS += CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)"
  27. define Package/$(PKG_NAME)/install
  28. $(INSTALL_DIR) $(1)/etc/init.d
  29. $(INSTALL_BIN) ./files/br2684ctl $(1)/etc/init.d/
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
  32. endef
  33. $(eval $(call BuildPackage,$(PKG_NAME)))