e149f130adbc9bf072831abe81392f21d1d93a33
[openwrt.git] / package / isakmpd / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=isakmpd
12 PKG_VERSION:=20041012
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/i/isakmpd/
17 PKG_MD5SUM:=e6d25a9e232fb186e1a48dc06453bd57
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/kernel.mk
25
26 define Package/isakmpd
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=@LINUX_2_6 +libopenssl +keynote +libgmp
30 TITLE:=IPsec management tools
31 URL:=http://isakmpd.sourceforge.net/
32 endef
33
34 define Build/Compile
35 CFLAGS="$(TARGET_CFLAGS)" \
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 $(TARGET_CONFIGURE_OPTS) \
38 LINUX_DIR="$(LINUX_DIR)" \
39 EXTRA_CPPFLAGS="-I$(STAGING_DIR)/usr/include/openssl -I$(STAGING_DIR)/usr/include/keynote -I$(STAGING_DIR)/usr/include " \
40 EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
41
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 STAGING_DIR="$(STAGING_DIR)" \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 INSTALL="install -c" \
46 install-bin
47 endef
48
49 define Package/isakmpd/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
52 endef
53
54 $(eval $(call BuildPackage,isakmpd))
This page took 0.047275 seconds and 3 git commands to generate.