You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2006-2012 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. PKG_NAME:=aiccu
  9. PKG_VERSION:=20070115
  10. PKG_RELEASE:=11
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
  13. PKG_MD5SUM:=c9bcc83644ed788e22a7c3f3d4021350
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/aiccu
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=+libpthread +ip +kmod-sit +kmod-tun
  20. TITLE:=SixXS Automatic IPv6 Connectivity Client Utility
  21. URL:=http://www.sixxs.net/tools/aiccu/
  22. MAINTAINER:=Ondrej Caletka <ondrej@caletka.cz>
  23. endef
  24. define Build/Configure
  25. $(SED) "s,strip,/bin/true," $(PKG_BUILD_DIR)/unix-console/Makefile
  26. endef
  27. define Build/Compile
  28. $(MAKE) -C $(PKG_BUILD_DIR) \
  29. CC="$(TARGET_CC)" OS_NAME="Linux" OS_VERSION="$(LINUX_VERSION)" \
  30. EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
  31. EXTRA_LDFLAGS="$(TARGET_LDFLAGS) -pthread" \
  32. DEBUG=0
  33. endef
  34. define Package/aiccu/conffiles
  35. /etc/config/aiccu
  36. endef
  37. define Package/aiccu/install
  38. $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/netifd/proto
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
  40. $(INSTALL_BIN) ./files/aiccu.sh $(1)/lib/netifd/proto/aiccu.sh
  41. endef
  42. $(eval $(call BuildPackage,aiccu))