|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../keepalived/keepalived.conf
|
|
|
|
# Copyright (C) 2007 - 2012 The OpenSDE Project
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
# we patch configure.in
|
|
|
|
hook_add preconf 5 "aclocal ; autoconf"
|
|
|
|
|
|
|
|
if pkginstalled -f ipvsadm2 ; then
|
|
|
|
var_append makeopt ' ' "IPVS_FLAG=_WITH_LVS_"
|
|
|
|
else
|
|
|
|
var_append confopt ' ' "--disable-lvs"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# use the sanitized linux kernel headers
|
|
|
|
var_append extraconfopt ' ' "--with-kernel-dir=$( pkgprefix -r includedir linux-header )"
|