2006-06-27 08:35:46 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-12-12 12:03:48 +08:00
|
|
|
# $Id$
|
2005-12-09 18:02:08 +08:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ipsec-tools
|
2006-12-16 00:15:35 +08:00
|
|
|
PKG_VERSION:=0.6.6
|
2005-12-09 18:02:08 +08:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2006-05-11 03:06:22 +08:00
|
|
|
PKG_SOURCE_URL:=@SF/ipsec-tools
|
2006-12-16 00:15:35 +08:00
|
|
|
PKG_MD5SUM:=e908f3cf367e31c7902df5ab16fbe5c3
|
2005-12-09 18:02:08 +08:00
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
2006-09-25 04:49:31 +08:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-05-16 08:32:57 +08:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-07-30 22:42:05 +08:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2005-12-09 18:02:08 +08:00
|
|
|
|
2006-05-11 03:06:22 +08:00
|
|
|
define Package/ipsec-tools
|
2006-09-23 21:47:09 +08:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=@LINUX_2_6 +libopenssl
|
|
|
|
TITLE:=IPsec management tools
|
|
|
|
URL:=http://ipsec-tools.sourceforge.net/
|
2006-05-11 03:06:22 +08:00
|
|
|
endef
|
2005-12-09 18:02:08 +08:00
|
|
|
|
2006-05-11 03:06:22 +08:00
|
|
|
define Build/Configure
|
2006-12-16 00:15:35 +08:00
|
|
|
(cd $(PKG_BUILD_DIR); touch \
|
|
|
|
configure.ac \
|
|
|
|
aclocal.m4 \
|
|
|
|
Makefile.in \
|
|
|
|
config.h.in \
|
|
|
|
configure \
|
|
|
|
);
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-kernel-headers="$(LINUX_DIR)/include" \
|
|
|
|
--without-readline \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
|
|
|
--without-libradius \
|
|
|
|
--without-libpam \
|
|
|
|
--enable-dpd \
|
|
|
|
--enable-natt \
|
2005-12-09 18:02:08 +08:00
|
|
|
);
|
2006-05-11 03:06:22 +08:00
|
|
|
endef
|
2005-12-09 18:02:08 +08:00
|
|
|
|
2006-12-16 00:15:35 +08:00
|
|
|
# override CFLAGS holding "-Werror" that break builds on compile warnings
|
2006-05-16 08:32:57 +08:00
|
|
|
define Build/Compile
|
2006-12-16 00:15:35 +08:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-09-23 21:47:09 +08:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-12-16 00:15:35 +08:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
all install
|
2006-05-16 08:32:57 +08:00
|
|
|
endef
|
|
|
|
|
2006-05-11 03:06:22 +08:00
|
|
|
define Package/ipsec-tools/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-06-19 02:30:40 +08:00
|
|
|
install -m0600 $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2006-05-12 00:00:43 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-05-12 00:00:43 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
|
2006-05-11 03:06:22 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ipsec-tools))
|