binutils: fix default
[openadk.git] / package / openswan / Makefile
bloba752e897d2e3bec107dc6b39f7af697a2febb11b
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.49.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= b9690e8c6ff524732cd2a729a8a08f5d2acedff41cb97303b82946d039de55f0
10 PKG_DESCR:= ipsec software
11 PKG_SECTION:= net/security
12 PKG_DEPENDS:= libgmp
13 PKG_BUILDDEP:= gmp
14 PKG_NEEDS:= threads
15 PKG_URL:= http://www.openswan.org/
16 PKG_SITES:= http://www.openswan.org/download/
17 PKG_NOPARALLEL:= 1
19 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
21 # GLOB_BRACE usage
22 PKG_LIBC_DEPENDS:= uclibc-ng glibc
24 include ${ADK_TOPDIR}/mk/package.mk
26 $(eval $(call PKG_template,OPENSWAN,openswan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
28 CONFIG_STYLE:= manual
29 XAKE_FLAGS+= KERNELSRC="${LINUX_DIR}" \
30 IPSECDIR="/usr/lib/ipsec" \
31 INC_USRLOCAL="/usr" \
32 MODPROBE="insmod" \
33 OSDEP="linux" \
34 WERROR="" \
35 BUILDENV="linux"
36 ALL_TARGET:= programs
38 openswan-install:
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