Merge branch 'master' of git+ssh://openadk.org/git/openadk
[openadk.git] / package / openswan / Makefile
bloba70454d1544abae8acce6f3387aa1a76eaeb47b0
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
6 PKG_NAME:= openswan
7 PKG_VERSION:= 2.6.41
8 PKG_RELEASE:= 1
9 PKG_HASH:= f9ebb395cb0f717dc43942662ab65161035a99dbf8e680c1d1511d4de130d0fb
10 PKG_DESCR:= ipsec software
11 PKG_SECTION:= net/security
12 PKG_DEPENDS:= ip libgmp libpthread
13 PKG_BUILDDEP:= gmp
14 PKG_URL:= http://www.openswan.org/
15 PKG_SITES:= http://www.openswan.org/download/
16 PKG_NOPARALLEL:= 1
18 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
20 # GLOB_BRACE usage
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}))
27 CONFIG_STYLE:= manual
28 XAKE_FLAGS+= KERNELSRC="${LINUX_DIR}" \
29 IPSECDIR="/usr/lib/ipsec" \
30 INC_USRLOCAL="/usr" \
31 MODPROBE="insmod" \
32 OSDEP="linux" \
33 WERROR="" \
34 BUILDENV="linux"
35 ALL_TARGET:= programs
37 openswan-install:
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