Make symlink/compatibilty mode disabled by default

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2009-09-23 12:04:32 -04:00
parent 088799e2e7
commit 4f870c4fd0
6 changed files with 29 additions and 7 deletions

View File

@ -1,7 +1,7 @@
###############################################################################
###############################################################################
##
## Copyright (C) 2006 Red Hat, Inc.
## Copyright (C) 2009 Red Hat, Inc.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions

View File

@ -1,18 +1,21 @@
###############################################################################
###############################################################################
##
## Copyright (C) 2006 Red Hat, Inc.
## Copyright (C) 2009 Red Hat, Inc.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions
## of the GNU General Public License v.2.
## of the GNU General Public License v.2
##
###############################################################################
###############################################################################
include ../Makefile.top
# Serial mode
TARGET=fence_virt
# XVM/Multicast mode compatibility link
LINK=fence_xvm
fence_virt_SOURCES = mcast.c serial.c main.c options.c
@ -23,7 +26,15 @@ INCLUDES=-I../include `nss-config --cflags` `nspr-config --cflags` \
# nss sucks in way too much stuff
LIBS+=-lnss3 `xml2-config --libs`
all: ${TARGET} ${LINK}
TARGETS=${TARGET}
# From configure script
xvm_compat=@xvm_compat@
ifeq ($(xvm_compat),yes)
TARGETS+=${LINK}
endif
all: ${TARGETS}
fence_xvm: ${TARGET}
ln -snf $^ $@
@ -39,7 +50,9 @@ install: all
install -d ${DESTDIR}/${sbindir} ; \
fi
install -m755 ${TARGET} ${DESTDIR}/${sbindir}
ifeq ($(xvm_compat),yes)
cp -a ${LINK} ${DESTDIR}/${sbindir}
endif
clean:
rm -f ${TARGET} ${LINK} *.o *.d *~

View File

@ -1,7 +1,7 @@
###############################################################################
###############################################################################
##
## Copyright (C) 2006 Red Hat, Inc.
## Copyright (C) 2009 Red Hat, Inc.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions

View File

@ -1,7 +1,7 @@
###############################################################################
###############################################################################
##
## Copyright (C) 2006 Red Hat, Inc.
## Copyright (C) 2009 Red Hat, Inc.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions

View File

@ -98,6 +98,15 @@ AC_ARG_ENABLE(serial-plugin,
[ mod_serial=$enableval ], [ mod_serial=no ])
AC_SUBST(mod_serial)
#
# Compatibility symlink: disabled by default
#
AC_ARG_ENABLE(xvm-compat,
[AS_HELP_STRING([--enable-xvm-compat],
[Enable serial listener plugin])],
[ xvm_compat=$enableval ], [ xvm_compat=no ])
AC_SUBST(xvm_compat)
AC_CONFIG_FILES([Makefile.top
Makefile

View File

@ -1,7 +1,7 @@
###############################################################################
###############################################################################
##
## Copyright (C) 2006 Red Hat, Inc.
## Copyright (C) 2009 Red Hat, Inc.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions