Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=keynote
  10. PKG_VERSION:=2.3
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
  14. PKG_MD5SUM:=b569066ac2ba1356c2112b118a7d74d0
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/keynote
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=@LINUX_2_6 +libopenssl
  20. TITLE:=Simple and flexible trust-management system
  21. URL:=http://www1.cs.columbia.edu/~angelos/keynote.html
  22. endef
  23. define Package/keynote/description
  24. KeyNote is a simple and flexible trust-management system designed to work
  25. well for a variety of large- and small- scale Internet-based applications.
  26. It provides a single, unified language for both local policies and
  27. credentials.
  28. endef
  29. CONFIGURE_ARGS += \
  30. --enable-static \
  31. --enable-shared
  32. MAKE_FLAGS += \
  33. CFLAGS="$(TARGET_CFLAGS)"
  34. define Build/InstallDev
  35. mkdir -p $(1)/usr/include/keynote
  36. $(CP) $(PKG_BUILD_DIR)/{assertion,header,keynote,signature}.h $(1)/usr/include/keynote/
  37. mkdir -p $(1)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/libkeynote.a $(1)/usr/lib/
  39. endef
  40. define Package/keynote/install
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
  43. endef
  44. $(eval $(call BuildPackage,keynote))