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
:= f9ebb395cb0f717dc43942662ab65161035a99dbf8e680c1d1511d4de130d0fb
10 PKG_DESCR
:= ipsec software
11 PKG_SECTION
:= net
/security
12 PKG_DEPENDS
:= ip libgmp libpthread
14 PKG_URL
:= http
://www.openswan.org
/
15 PKG_SITES
:= http
://www.openswan.org
/download
/
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
21 PKG_LIBC_DEPENDS
:= uclibc glibc
23 include ${ADK_TOPDIR}/mk
/package.mk
25 $(eval
$(call PKG_template
,OPENSWAN
,openswan
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
28 XAKE_FLAGS
+= KERNELSRC
="${LINUX_DIR}" \
29 IPSECDIR
="/usr/lib/ipsec" \
38 ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr
/lib
/ipsec
39 ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
40 ${INSTALL_DIR} ${IDIR_OPENSWAN}/etc
/ipsec.d
41 ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr
/sbin
42 ${INSTALL_DATA} ${WRKINST}/etc
/ipsec.conf
${IDIR_OPENSWAN}/etc
/
43 ${CP} ${WRKINST}/etc
/ipsec.d
/* ${IDIR_OPENSWAN}/etc
/ipsec.d
44 ${CP} ${WRKINST}/usr
/lib
/ipsec
/* ${IDIR_OPENSWAN}/usr
/lib
/ipsec
45 ${CP} ${WRKINST}/usr
/libexec
/ipsec
/* ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
46 rm ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
/setup
47 ${INSTALL_BIN} ${WRKINST}/etc
/rc.d
/init.d
/ipsec \
48 ${IDIR_OPENSWAN}/usr
/libexec
/ipsec
/setup
49 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/ipsec
${IDIR_OPENSWAN}/usr
/sbin
51 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk