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.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/i/isakmpd/
16 PKG_MD5SUM:=e6d25a9e232fb186e1a48dc06453bd57
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/kernel.mk
23 define Package/isakmpd
26 DEPENDS:=@LINUX_2_6 +libopenssl +keynote +libgmp
27 TITLE:=IPsec management tools
28 URL:=http://isakmpd.sourceforge.net/
32 CFLAGS="$(TARGET_CFLAGS)" \
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 $(TARGET_CONFIGURE_OPTS) \
35 LINUX_DIR="$(LINUX_DIR)" \
36 EXTRA_CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/openssl -I$(STAGING_DIR)/usr/include/keynote" \
37 EXTRA_LDFLAGS="$(TARGET_LDFLAGS)"
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 INSTALL="install -c" \
45 define Package/isakmpd/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
50 $(eval $(call BuildPackage,isakmpd))