Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 $(STAGING_DIR)/usr/include/keynote
  36. $(CP) $(PKG_BUILD_DIR)/{assertion,header,keynote,signature}.h $(STAGING_DIR)/usr/include/keynote/
  37. mkdir -p $(STAGING_DIR)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/libkeynote.a $(STAGING_DIR)/usr/lib/
  39. endef
  40. define Build/UninstallDev
  41. rm -rf $(STAGING_DIR)/usr/include/keynote \
  42. $(STAGING_DIR)/usr/lib/libkeynote.a
  43. endef
  44. define Package/keynote/install
  45. $(INSTALL_DIR) $(1)/usr/sbin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
  47. endef
  48. $(eval $(call BuildPackage,keynote))