2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 4619 2006-08-22 09:50:02Z florian $
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
17 PKG_MD5SUM:=b569066ac2ba1356c2112b118a7d74d0
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/kernel.mk
25 define Package/keynote
28 DEPENDS:=@LINUX_2_6 +libopenssl
29 TITLE:=Simple and flexible trust-management system
31 KeyNote is a simple and flexible trust-management system designed to work \\\
32 well for a variety of large- and small- scale Internet-based applications.\\\
33 It provides a single, unified language for both local policies and \\\
35 URL:=http://www1.cs.columbia.edu/~angelos/keynote.html
38 define Build/Configure
39 $(call Build/Configure/Default, \
46 $(call Build/Compile/Default, \
47 CFLAGS="\$$$$(EXTRA_CFLAGS) \$$$$(EXTRA_LDFLAGS)" \
51 define Build/InstallDev
52 mkdir -p $(STAGING_DIR)/usr/include
53 $(CP) $(PKG_BUILD_DIR)/{assertion,header,keynote,signature}.h $(STAGING_DIR)/usr/include/
54 mkdir -p $(STAGING_DIR)/usr/lib
55 $(CP) $(PKG_BUILD_DIR)/libkeynote.a $(STAGING_DIR)/usr/lib/
58 define Build/UninstallDev
59 rm -rf $(STAGING_DIR)/usr/include/keynote \
60 $(STAGING_DIR)/usr/lib/libkeynote.a
63 define Package/keynote/install
64 install -d -m0755 $(1)/usr/sbin
65 $(CP) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
68 $(eval $(call BuildPackage,keynote))