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.

56 lines
1.5 KiB

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