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 include $(TOPDIR
)/package
/rules.mk
17 define Package
/ipsec-tools
21 TITLE
:=IPsec management tools
22 DESCRIPTION
:=IPsec management tools
23 URL
:=http
://ipsec-tools.sourceforge.net
/
26 define Build
/Configure
27 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
33 $(TARGET_CONFIGURE_OPTS
) \
34 CFLAGS
="$(TARGET_CFLAGS)" \
35 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
36 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
38 --target
=$(GNU_TARGET_NAME
) \
39 --host
=$(GNU_TARGET_NAME
) \
40 --build
=$(GNU_HOST_NAME
) \
46 --datadir=/usr
/share \
47 --includedir=/usr
/include \
48 --infodir=/usr
/share
/info \
50 --libexecdir
=/usr
/lib \
51 --localstatedir
=/var \
52 --mandir=/usr
/share
/man \
55 $(DISABLE_LARGEFILE
) \
61 --with-kernel-headers
="$(LINUX_DIR)/include" \
63 --with-openssl
="$(STAGING_DIR)/usr" \
69 define Package
/ipsec-tools
/install
70 install -d
-m0755
$(1)/etc
71 install -d
-m0755
$(1)/usr
/lib
/
72 install -d
-m0755
$(1)/usr
/sbin
73 $(CP
) $(PKG_BUILD_DIR
)/src
/racoon
/samples
/racoon.conf
$(1)/etc
/
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libipsec.so.
* $(1)/usr
/lib
/
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libracoon.so.
* $(1)/usr
/lib
/
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/plainrsa-gen
$(1)/usr
/sbin
/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoon
$(1)/usr
/sbin
/
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoonctl
$(1)/usr
/sbin
/
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/setkey
$(1)/usr
/sbin
/
82 $(eval
$(call BuildPackage
,ipsec-tools
))