1
0

Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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:=16
  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)-$(BUILD_VARIANT)/$(PKG_NAME)
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/aiccu/Default
  19. TITLE:=SixXS IPv6 Connectivity Client ($(1))
  20. SECTION:=net
  21. CATEGORY:=Network
  22. VARIANT:=$(2)
  23. DEPENDS:=+libpthread +ip +kmod-sit +kmod-tun $(3)
  24. URL:=http://www.sixxs.net/tools/aiccu/
  25. MAINTAINER:=Ondrej Caletka <ondrej@caletka.cz>
  26. endef
  27. Package/aiccu=$(call Package/aiccu/Default,without GNUTLS support,default)
  28. Package/aiccu-gnutls=$(call Package/aiccu/Default,with GNUTLS support,gnutls,+libgnutls)
  29. define Build/Configure
  30. $(SED) "s,strip,/bin/true," $(PKG_BUILD_DIR)/unix-console/Makefile
  31. endef
  32. ifeq ($(BUILD_VARIANT),gnutls)
  33. CONFIG_AICCU_GNUTLS:=y
  34. endif
  35. define Build/Compile
  36. $(MAKE) -C $(PKG_BUILD_DIR) \
  37. CC="$(TARGET_CC)" OS_NAME="Linux" OS_VERSION="$(LINUX_VERSION)" \
  38. EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
  39. EXTRA_LDFLAGS="$(TARGET_LDFLAGS) -pthread" \
  40. $(if $(CONFIG_AICCU_GNUTLS),HAVE_GNUTLS=1) \
  41. DEBUG=0
  42. endef
  43. define Package/aiccu/conffiles
  44. /etc/config/aiccu
  45. endef
  46. Package/aiccu-gnutls/conffiles=$(call Package/aiccu/conffiles)
  47. define Package/aiccu/install
  48. $(INSTALL_DIR) $(1)/usr/sbin $(1)/lib/netifd/proto $(1)/etc/hotplug.d/ntp
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
  50. $(INSTALL_BIN) ./files/aiccu.sh $(1)/lib/netifd/proto/aiccu.sh
  51. $(INSTALL_DATA) ./files/aiccu.hotplug $(1)/etc/hotplug.d/ntp/10-aiccu
  52. endef
  53. Package/aiccu-gnutls/install=$(call Package/aiccu/install,$(1))
  54. $(eval $(call BuildPackage,aiccu))
  55. $(eval $(call BuildPackage,aiccu-gnutls))