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
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=@SF
/ipsec-tools
18 PKG_MD5SUM
:=d0242a943c82c0cbf28005966ff35e21
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/ipsec-tools
29 TITLE
:=IPsec management tools
30 DESCRIPTION
:=IPsec management tools
31 URL
:=http
://ipsec-tools.sourceforge.net
/
34 define Build
/Configure
35 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
41 $(TARGET_CONFIGURE_OPTS
) \
42 CFLAGS
="$(TARGET_CFLAGS)" \
43 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
44 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
46 --target
=$(GNU_TARGET_NAME
) \
47 --host
=$(GNU_TARGET_NAME
) \
48 --build
=$(GNU_HOST_NAME
) \
54 --datadir=/usr
/share \
55 --includedir=/usr
/include \
56 --infodir=/usr
/share
/info \
58 --libexecdir
=/usr
/lib \
59 --localstatedir
=/var \
60 --mandir=/usr
/share
/man \
63 $(DISABLE_LARGEFILE
) \
69 --with-kernel-headers
="$(LINUX_DIR)/include" \
71 --with-openssl
="$(STAGING_DIR)/usr" \
78 $(call Build
/Compile
/Default
,DESTDIR
="$(PKG_INSTALL_DIR)" all install)
81 define Package
/ipsec-tools
/install
82 install -d
-m0755
$(1)/etc
83 install -m0600
$(PKG_BUILD_DIR
)/src
/racoon
/samples
/racoon.conf
$(1)/etc
/
84 install -d
-m0755
$(1)/usr
/lib
/
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libipsec.so.
* $(1)/usr
/lib
/
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libracoon.so.
* $(1)/usr
/lib
/
87 install -d
-m0755
$(1)/usr
/sbin
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/plainrsa-gen
$(1)/usr
/sbin
/
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoon
$(1)/usr
/sbin
/
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoonctl
$(1)/usr
/sbin
/
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/setkey
$(1)/usr
/sbin
/
94 $(eval
$(call BuildPackage
,ipsec-tools
))