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.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=@SF
/ipsec-tools
18 PKG_MD5SUM
:=e908f3cf367e31c7902df5ab16fbe5c3
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/ipsec-tools
25 DEPENDS
:=@LINUX_2_6
+libopenssl
26 TITLE
:=IPsec management tools
27 URL
:=http
://ipsec-tools.sourceforge.net
/
33 --with-kernel-headers
="$(LINUX_DIR)/include" \
35 --with-openssl
="$(STAGING_DIR)/usr" \
41 define Build
/Configure
42 (cd
$(PKG_BUILD_DIR
); touch \
49 $(call Build
/Configure
/Default
)
52 # override CFLAGS holding "-Werror" that break builds on compile warnings
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 CFLAGS
="$(TARGET_CFLAGS)" \
60 define Package
/ipsec-tools
/install
61 $(INSTALL_DIR
) $(1)/etc
62 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/src
/racoon
/samples
/racoon.conf
$(1)/etc
/
63 $(INSTALL_DIR
) $(1)/usr
/lib
/
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libipsec.so.
* $(1)/usr
/lib
/
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libracoon.so.
* $(1)/usr
/lib
/
66 $(INSTALL_DIR
) $(1)/usr
/sbin
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/plainrsa-gen
$(1)/usr
/sbin
/
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoon
$(1)/usr
/sbin
/
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoonctl
$(1)/usr
/sbin
/
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/setkey
$(1)/usr
/sbin
/
73 $(eval
$(call BuildPackage
,ipsec-tools
))