nuke $Id$ in /packages as well
[packages.git] / net / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=isakmpd
11 PKG_VERSION:=20041012
12 PKG_RELEASE:=1
13
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
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/kernel.mk
22
23 define Package/isakmpd
24   SECTION:=net
25   CATEGORY:=Network
26   DEPENDS:=@LINUX_2_6 +libopenssl +keynote +libgmp
27   TITLE:=IPsec management tools
28   URL:=http://isakmpd.sourceforge.net/
29 endef
30
31 define Build/Compile
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)"
38
39         $(MAKE) -C $(PKG_BUILD_DIR) \
40                 DESTDIR="$(PKG_INSTALL_DIR)" \
41                 INSTALL="install -c" \
42                 install-bin
43 endef
44
45 define Package/isakmpd/install
46         $(INSTALL_DIR) $(1)/usr/sbin
47         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
48 endef
49
50 $(eval $(call BuildPackage,isakmpd))