hauke 082490e71c keepalived: fixed build configuration
/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.28/uapi/" ; fi; )
bash: ac_cv_file__store_buildbot_slave_ramips_build_build_dir_target_mipsel_24kec+dsp_uClibc_0_9_33_2_linux_ramips_rt305x_linux_3_10_28_net_core_link_watch_c=yes: command not found
make[2]: *** [build/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/keepalived-1.1.19/.configured_] Error 127

Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@39662 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-21 21:24:53 +00:00

67 lines
1.7 KiB
Makefile

#
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=keepalived
PKG_VERSION:=1.1.19
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= http://www.keepalived.org/software
PKG_MD5SUM:=a35b8d9d462810f7650d292bd7457523
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk
define Package/keepalived
SECTION:=net
CATEGORY:=Network
TITLE:=Failover and monitoring daemon for LVS clusters
URL:=http://www.keepalived.org/
DEPENDS:=+libpopt +libopenssl
endef
define Package/keepalived/description
Failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
endef
define Package/keepalived/conffiles
/etc/keepalived/keepalived.conf
endef
acvar=$(subst -,_,$(subst .,_,$(subst /,_,$(1))))
CONFIGURE_ARGS+= \
--enable-shared \
--disable-static \
--disable-debug \
--disable-strip \
--disable-lvs \
--disable-lvs-syncd \
--with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)"
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
STRIP="/bin/true" \
all install
endef
define Package/keepalived/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/keepalived
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
endef
$(eval $(call BuildPackage,keepalived))