-
Notifications
You must be signed in to change notification settings - Fork 6
/
build-keepalived.sh
executable file
·45 lines (39 loc) · 969 Bytes
/
build-keepalived.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash -e
#
# Copyright 2016-2020 (c) Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
PKG_NAME=keepalived
PKG_VERSION=2.0.20
PKG_SOURCE="$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_SOURCE_URL="http://www.keepalived.org/software/$PKG_SOURCE"
PKG_SOURCE_MD5SUM=a5966e8433b60998709c4a922a407bac
PKG_DEPENDS='libnl3 net-snmp openssl'
PKG_PLATFORM=linux
. "$PWD/env.sh"
# clear up -I$INSTALL_PREFIX/include to avoid libipvs to include
# netlink/netlink.h from libnl1
EXTRA_CFLAGS=()
CONFIGURE_ARGS+=(
--enable-sha1
--without-init # do not install any types of initscripts
--disable-silent-rules
)
configure_static_build() {
configure_static_build_default
# requires static libraries from perl
CONFIGURE_ARGS+=(
--disable-snmp
)
# configure.ac does not know about this
MAKE_VARS+=(
LIBS="-lcrypto -ldl"
)
}
configure_static_build_off() {
CONFIGURE_ARGS+=(
--enable-snmp
)
}