3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=d0242a943c82c0cbf28005966ff35e21
10 PKG_SOURCE_URL
:=@SF
/ipsec-tools
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,IPSEC_TOOLS
,ipsec-tools
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CFLAGS
="$(TARGET_CFLAGS)" \
30 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
31 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
56 --with-kernel-headers
="$(LINUX_DIR)/include" \
58 --with-openssl
="$(STAGING_DIR)/usr" \
64 $(PKG_BUILD_DIR
)/.built
:
65 rm -rf
$(PKG_INSTALL_DIR
)
66 mkdir
-p
$(PKG_INSTALL_DIR
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
69 DESTDIR
="$(PKG_INSTALL_DIR)" \
74 install -d
-m0755
$(IDIR_IPSEC_TOOLS
)/etc
75 $(CP
) $(PKG_BUILD_DIR
)/src
/racoon
/samples
/racoon.conf
$(IDIR_IPSEC_TOOLS
)/etc
/
76 install -d
-m0755
$(IDIR_IPSEC_TOOLS
)/usr
/lib
/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libipsec.so.
* $(IDIR_IPSEC_TOOLS
)/usr
/lib
/
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libracoon.so.
* $(IDIR_IPSEC_TOOLS
)/usr
/lib
/
79 install -d
-m0755
$(IDIR_IPSEC_TOOLS
)/usr
/sbin
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/plainrsa-gen
$(IDIR_IPSEC_TOOLS
)/usr
/sbin
/
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoon
$(IDIR_IPSEC_TOOLS
)/usr
/sbin
/
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/racoonctl
$(IDIR_IPSEC_TOOLS
)/usr
/sbin
/
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/setkey
$(IDIR_IPSEC_TOOLS
)/usr
/sbin
/
84 $(RSTRIP
) $(IDIR_IPSEC_TOOLS
)
85 $(IPKG_BUILD
) $(IDIR_IPSEC_TOOLS
) $(PACKAGE_DIR
)