Update of /cvsroot/leaf/src/bering-uclibc4/source/keepalived
In directory
sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv17652/source/keepalived
Added Files:
buildtool.cfg buildtool.mk keepalived-1.1.20.tar.gz
keepalived.conf keepalived.init
Log Message:
keepalived updated to 1.1.20
--- NEW FILE: keepalived.conf ---
! Configuration File for keepalived
global_defs {
notification_email {
[email protected]
}
notification_email_from [email protected]
smtp_server 192.168.1.200
smtp_connect_timeout 30
lvs_id LVS_ATTR1
}
!vrrp_sync_group RWC1 BACKUP {
! VI_1
! VI_2
! }
vrrp_instance VI_1 {
state MASTER
track_interface {
eth0
}
interface eth2
virtual_router_id 51
priority 150
advert_int 2
authentication {
auth_type PASS
auth_pass SECRETPASS
}
virtual_ipaddress {
192.168.1.210
}
}
vrrp_instance VI_2 {
state SLAVE
track_interface {
eth0
}
interface eth2
virtual_router_id 52
priority 100
advert_int 2
authentication {
auth_type PASS
auth_pass SECRETPASS
}
virtual_ipaddress {
192.168.1.211
}
}
--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
Server = cvs4-sourceforge
Revision = HEAD
Directory = keepalived
</File>
<File keepalived-1.1.20.tar.gz>
Server = cvs4-sourceforge
Revision = HEAD
Directory = keepalived
envname = KEEPALIVED_SOURCE
</File>
#<File keepalived.opensslwarning.patch.gz>
# Server = cvs4-sourceforge
# Revision = HEAD
# Directory = keepalived
# envname = KEEPALIVED_PATCH1
#</File>
<File keepalived.init>
Server = cvs4-sourceforge
Revision = HEAD
Directory = keepalived
</File>
<File keepalived.conf>
Server = cvs4-sourceforge
Revision = HEAD
Directory = keepalived
</File>
<Package>
<kpalived>
Version = 1.1.20
Revision = 1
Help <<EOF
keepalived package for healthcheck and failover (HSRP)
Homepage: http://keepalived.sourceforge.net
Requires: libpopt.lrp, libssl.lrp, libcrpto.lrp
LEAF package by __PACKAGER__, __BUILDDATE__
EOF
<Permissions>
Files = 644
Directories = 755
</Permissions>
<Owner>
Files = root:root
Directories = root:root
</Owner>
<Contents>
<File>
Filename = etc/keepalived/keepalived.conf
Source = etc/keepalived/keepalived.conf
Description = keepalived config file
Type = conf
Type = local
Type = binary
</File>
<File>
Filename = etc/init.d/keepalived
Source = etc/init.d/keepalived
Description = keepalived daemon init file
Type = binary
Permissions = 755
</File>
<File>
Source = usr/sbin/keepalived
Filename = usr/sbin/keepalived
Type = binary
Permissions = 755
</File>
<File>
Source = usr/bin/genhash
Filename = usr/bin/genhash
Type = binary
Permissions = 755
</File>
</Contents>
</kpalived>
</Package>
--- NEW FILE: buildtool.mk ---
#############################################################
#
# keepalived
#
# $Id: buildtool.mk,v 1.1 2010/08/07 12:06:26 nitr0man Exp $
#############################################################
include $(MASTERMAKEFILE)
KEEPALIVED_DIR:=$(shell $(BT_TGZ_GETDIRNAME) $(KEEPALIVED_SOURCE) 2>/dev/null )
ifeq ($(KEEPALIVED_DIR),)
KEEPALIVED_DIR:=$(shell cat DIRNAME)
endif
KEEPALIVED_TARGET_DIR:=$(BT_BUILD_DIR)/keepalived
$(KEEPALIVED_DIR)/.source:
zcat $(KEEPALIVED_SOURCE) | tar -xvf -
# (cd $(KEEPALIVED_DIR); zcat ../$(KEEPALIVED_PATCH1) | patch -p1)
echo $(KEEPALIVED_DIR) > DIRNAME
touch $(KEEPALIVED_DIR)/.source
$(KEEPALIVED_DIR)/.configured: $(KEEPALIVED_DIR)/.source
(cd $(KEEPALIVED_DIR); rm -rf config.cache; autoconf; \
CPPFLAGS="-I$(BT_STAGING_DIR)/include
-I$(BT_STAGING_DIR)/usr/include" \
LDFLAGS="-L $(BT_STAGING_DIR)/lib -L $(BT_STAGING_DIR)/usr/lib"
\
LD_RUN_PATH="$(BT_STAGING_DIR)/lib:$(BT_STAGING_DIR)/usr/lib" \
CFLAGS="$(BT_COPT_FLAGS)" \
CC=$(TARGET_CC) \
LD=$(TARGET_LD) \
./configure \
--prefix=/usr \
--build=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
--with-kernel-dir=$(BT_LINUX_DIR) \
);
touch $(KEEPALIVED_DIR)/.configured
$(KEEPALIVED_DIR)/.build: $(KEEPALIVED_DIR)/.configured
make CC=$(TARGET_CC) -C $(KEEPALIVED_DIR) all
-mkdir -p $(KEEPALIVED_TARGET_DIR)/etc/keepalived
-mkdir -p $(KEEPALIVED_TARGET_DIR)/etc/init.d
-mkdir -p $(KEEPALIVED_TARGET_DIR)/usr/bin
-mkdir -p $(KEEPALIVED_TARGET_DIR)/usr/sbin
-$(BT_STRIP) $(BT_STRIP_BINOPTS) $(KEEPALIVED_DIR)/bin/genhash
-$(BT_STRIP) $(BT_STRIP_BINOPTS) $(KEEPALIVED_DIR)/bin/keepalived
cp keepalived.init $(KEEPALIVED_TARGET_DIR)/etc/init.d/keepalived
cp keepalived.conf
$(KEEPALIVED_TARGET_DIR)/etc/keepalived/keepalived.conf
cp -f $(KEEPALIVED_DIR)/bin/genhash $(KEEPALIVED_TARGET_DIR)/usr/bin/
cp -f $(KEEPALIVED_DIR)/bin/keepalived
$(KEEPALIVED_TARGET_DIR)/usr/sbin/
cp -a -f $(KEEPALIVED_TARGET_DIR)/* $(BT_STAGING_DIR)
touch $(KEEPALIVED_DIR)/.build
source: $(KEEPALIVED_DIR)/.source
build: $(KEEPALIVED_DIR)/.build
clean:
-rm -f $(KEEPALIVED_DIR)/.build
-rm -f $(KEEPALIVED_DIR)/.configured
-make -C $(KEEPALIVED_DIR) clean
-rm -rf $(KEEPALIVED_TARGET_DIR)
srcclean:
-rm -rf $(KEEPALIVED_DIR)
--- NEW FILE: keepalived.init ---
#! /bin/sh
#
# keepalived LVS cluster monitor daemon.
#
# Written by Andres Salomon <[email protected]>
#
RCDLINKS="2,S50 3,S50 4,S50 5,S50 0,K50 1,K50 6,K50 "
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/keepalived
NAME=keepalived
DESC=keepalived
set -e
test -f $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
reload|force-reload)
echo "Reloading $DESC configuration file."
start-stop-daemon --stop --quiet --signal 1 --pidfile \
/var/run/$NAME.pid --exec $DAEMON
;;
restart)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
echo "$NAME."
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}"
>&2
exit 1
;;
esac
exit 0
--- NEW FILE: keepalived-1.1.20.tar.gz ---
(This appears to be a binary file; contents omitted.)
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits