3 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
11 PKG_SOURCE_URL
:=@SF
/ipsec-tools
12 PKG_MD5SUM
:=d0242a943c82c0cbf28005966ff35e21
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 define Package
/ipsec-tools
23 TITLE
:=IPsec management tools
24 DESCRIPTION
:=IPsec management tools
25 URL
:=http
://ipsec-tools.sourceforge.net
/
28 define Build
/Configure
29 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
35 $(TARGET_CONFIGURE_OPTS
) \
36 CFLAGS
="$(TARGET_CFLAGS)" \
37 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
40 --target
=$(GNU_TARGET_NAME
) \
41 --host
=$(GNU_TARGET_NAME
) \
42 --build
=$(GNU_HOST_NAME
) \
48 --datadir=/usr
/share \
49 --includedir=/usr
/include \
50 --infodir=/usr
/share
/info \
52 --libexecdir
=/usr
/lib \
53 --localstatedir
=/var \
54 --mandir=/usr
/share
/man \
57 $(DISABLE_LARGEFILE
) \
63 --with-kernel-headers
="$(LINUX_DIR)/include" \
65 --with-openssl
="$(STAGING_DIR)/usr" \
72 $(call Build
/Compile
/Default
,install)
75 define Package
/ipsec-tools
/install
76 install -d
-m0755
$(1)/etc
77 install -d
-m0755
$(1)/usr
/lib
/
78 install -d
-m0755
$(1)/usr
/sbin
79 $(CP
) $(PKG_BUILD_DIR
)/src
/racoon
/samples
/racoon.conf
$(1)/etc
/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libipsec.so.
* $(1)/usr
/lib
/
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libracoon.so.
* $(1)/usr
/lib
/
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/plainrsa-gen
$(1)/usr
/sbin
/
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoon
$(1)/usr
/sbin
/
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoonctl
$(1)/usr
/sbin
/
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/setkey
$(1)/usr
/sbin
/
88 $(eval
$(call BuildPackage
,ipsec-tools
))