1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 69fe7a71e54aaf0ea93b874db4963057c1ff4904b3617b36f2c9be2010c23331
10 PKG_DESCR
:= ipsec software
11 PKG_SECTION
:= net
/security
15 PKG_URL
:= http
://www.openswan.org
/
16 PKG_SITES
:= https
://github.com
/xelerance
/Openswan
/archive
/refs
/tags/
19 DISTFILES
:= v
${PKG_VERSION}.
tar.gz
20 WRKDIST
= $(WRKDIR
)/Openswan-
$(PKG_VERSION
)
22 include ${ADK_TOPDIR}/mk
/package.mk
24 $(eval
$(call PKG_template
,OPENSWAN
,openswan
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
27 XAKE_FLAGS
+= KERNELSRC
="${LINUX_DIR}" \
28 IPSECDIR
="/usr/lib/ipsec" \
34 ARCH
=$(ADK_TARGET_KARCH
) \
39 ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr
/lib
/ipsec
40 ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
41 ${INSTALL_DIR} ${IDIR_OPENSWAN}/etc
/ipsec.d
42 ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr
/sbin
43 ${INSTALL_DATA} ${WRKINST}/etc
/ipsec.conf
${IDIR_OPENSWAN}/etc
/
44 ${CP} ${WRKINST}/etc
/ipsec.d
/* ${IDIR_OPENSWAN}/etc
/ipsec.d
45 ${CP} ${WRKINST}/usr
/lib
/ipsec
/* ${IDIR_OPENSWAN}/usr
/lib
/ipsec
46 ${CP} ${WRKINST}/usr
/libexec
/ipsec
/* ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
47 rm ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
/setup
48 ${INSTALL_BIN} ${WRKINST}/etc
/rc.d
/init.d
/ipsec \
49 ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
/setup
50 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/ipsec
${IDIR_OPENSWAN}/usr
/sbin
52 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk