2006-06-27 03:35:46 +03: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 06:03:48 +02:00
|
|
|
# $Id$
|
2005-12-09 12:02:08 +02:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2007-03-16 22:21:39 +02:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2005-12-09 12:02:08 +02:00
|
|
|
|
|
|
|
PKG_NAME:=ipsec-tools
|
2007-10-13 17:12:26 +03:00
|
|
|
PKG_VERSION:=0.7
|
2005-12-09 12:02:08 +02:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2006-05-10 22:06:22 +03:00
|
|
|
PKG_SOURCE_URL:=@SF/ipsec-tools
|
2007-10-13 17:12:26 +03:00
|
|
|
PKG_MD5SUM:=c0a586924edde35264ecfe94ad1c261f
|
2005-12-09 12:02:08 +02:00
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-12-09 12:02:08 +02:00
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Package/ipsec-tools
|
2006-09-23 16:47:09 +03:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=@LINUX_2_6 +libopenssl
|
|
|
|
TITLE:=IPsec management tools
|
|
|
|
URL:=http://ipsec-tools.sourceforge.net/
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
2005-12-09 12:02:08 +02:00
|
|
|
|
2007-02-26 01:34:57 +02:00
|
|
|
CONFIGURE_ARGS += \
|
2007-08-19 09:32:34 +03:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-kernel-headers="$(LINUX_DIR)/include" \
|
|
|
|
--without-readline \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
|
|
|
--without-libradius \
|
|
|
|
--without-libpam \
|
|
|
|
--enable-dpd \
|
|
|
|
--enable-hybrid \
|
2007-10-13 17:12:26 +03:00
|
|
|
--enable-security-context=no \
|
2007-12-09 18:33:30 +02:00
|
|
|
--enable-natt \
|
2007-12-09 20:52:56 +02:00
|
|
|
--enable-adminport \
|
|
|
|
--enable-ipv6
|
2007-02-26 01:34:57 +02:00
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR); touch \
|
|
|
|
configure.ac \
|
|
|
|
aclocal.m4 \
|
|
|
|
Makefile.in \
|
|
|
|
config.h.in \
|
|
|
|
configure \
|
2005-12-09 12:02:08 +02:00
|
|
|
);
|
2007-02-26 01:34:57 +02:00
|
|
|
$(call Build/Configure/Default)
|
2007-08-19 09:32:34 +03:00
|
|
|
echo "#undef HAVE_SHADOW_H" >> $(PKG_BUILD_DIR)/config.h
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
2005-12-09 12:02:08 +02:00
|
|
|
|
2006-12-15 18:15:35 +02:00
|
|
|
# override CFLAGS holding "-Werror" that break builds on compile warnings
|
2006-05-16 03:32:57 +03:00
|
|
|
define Build/Compile
|
2006-12-15 18:15:35 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-09-23 16:47:09 +03:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-12-15 18:15:35 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
all install
|
2006-05-16 03:32:57 +03:00
|
|
|
endef
|
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Package/ipsec-tools/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2007-01-05 17:36:58 +02:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
|
2007-08-19 09:32:34 +03:00
|
|
|
$(SED) 's|@sysconfdir_x@|/etc|g' $(1)/etc/racoon.conf
|
|
|
|
$(INSTALL_DIR) $(1)/etc/racoon
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/racoon/samples/psk.txt $(1)/etc/racoon/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-05-11 19:00:43 +03: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 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-05-11 19:00:43 +03: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-10 22:06:22 +03:00
|
|
|
endef
|
|
|
|
|
2007-08-19 09:32:34 +03:00
|
|
|
define Package/ipsec-tools/conffiles
|
|
|
|
/etc/racoon.conf
|
|
|
|
/etc/racoon/psk.txt
|
|
|
|
endef
|
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
$(eval $(call BuildPackage,ipsec-tools))
|