binutils: update to 2.43.1
[openadk.git] / package / openswan / Makefile
blob41ec00201e01a05917c7a42bff2f327f76bf7f47
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:= 3.0.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= 69fe7a71e54aaf0ea93b874db4963057c1ff4904b3617b36f2c9be2010c23331
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:= https://github.com/xelerance/Openswan/archive/refs/tags/
17 PKG_NOPARALLEL:= 1
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}))
26 CONFIG_STYLE:= manual
27 XAKE_FLAGS+= KERNELSRC="${LINUX_DIR}" \
28 IPSECDIR="/usr/lib/ipsec" \
29 INC_USRLOCAL="/usr" \
30 MODPROBE="insmod" \
31 OSDEP="linux" \
32 WERROR="" \
33 BUILDENV="linux" \
34 ARCH=$(ADK_TARGET_KARCH) \
35 V=1
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