Fix package name and install locations

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2009-09-17 15:16:24 -04:00
parent 21dab5b24c
commit 9931f5f4e7
4 changed files with 13 additions and 13 deletions

View File

@ -35,11 +35,11 @@ fence_virt: ${fence_virt_SOURCES:.c=.o}
$(CC) $(CFLAGS) -c -o $@ $^ $(INCLUDES) $(CC) $(CFLAGS) -c -o $@ $^ $(INCLUDES)
install: all install: all
if [ ! -d ${sbindir} ]; then \ if [ ! -d ${DESTDIR}/${sbindir} ]; then \
install -d ${sbindir} ; \ install -d ${DESTDIR}/${sbindir} ; \
fi fi
install -m755 ${TARGET} ${sbindir} install -m755 ${TARGET} ${DESTDIR}/${sbindir}
ln -snf ${sbindir}/${TARGET} ${sbindir}/${LINK} cp -a ${LINK} ${DESTDIR}/${sbindir}
clean: clean:
rm -f ${TARGET} ${LINK} *.o *.d *~ rm -f ${TARGET} ${LINK} *.o *.d *~

View File

@ -48,6 +48,6 @@ clean:
rm -f ${TARGETS} *~ *.o testprog config.tab.c config.tab.h config.c rm -f ${TARGETS} *~ *.o testprog config.tab.c config.tab.h config.c
install: install:
if [ ! -f /etc/fence_virt.conf ]; then \ if [ ! -f ${DESTDIR}/etc/fence_virt.conf ]; then \
install -m 0644 example.conf /etc/fence_virt.conf; \ install -m 0644 example.conf ${DESTDIR}/etc/fence_virt.conf; \
fi fi

View File

@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59) AC_PREREQ(2.59)
AC_INIT(fence_virt, 0.1, lon@metamorphism.com) AC_INIT(fence-virt, 0.1, lon@metamorphism.com)
AC_CONFIG_SRCDIR([server/main.c]) AC_CONFIG_SRCDIR([server/main.c])
AC_CONFIG_HEADER([include/config.h]) AC_CONFIG_HEADER([include/config.h])

View File

@ -115,15 +115,15 @@ checkpoint.so: ${checkpoint_so_SOURCES:.c=.o}
$(CC) $(CFLAGS) -c -o $@ $^ $(INCLUDES) $(CC) $(CFLAGS) -c -o $@ $^ $(INCLUDES)
install: all install: all
if [ ! -d ${sbindir} ]; then \ if [ ! -d ${DESTDIR}/${sbindir} ]; then \
install -d ${sbindir} ; \ install -d ${DESTDIR}/${sbindir} ; \
fi fi
install -m755 ${TARGETS} ${sbindir} install -m755 ${TARGETS} ${DESTDIR}/${sbindir}
ifeq ($(with_modules),yes) ifeq ($(with_modules),yes)
if [ ! -d ${MODULE_PATH} ]; then \ if [ ! -d ${DESTDIR}/${MODULE_PATH} ]; then \
install -d ${MODULE_PATH} ; \ install -d ${DESTDIR}/${MODULE_PATH} ; \
fi fi
install -m755 ${MODULES} ${MODULE_PATH} install -m755 ${MODULES} ${DESTDIR}/${MODULE_PATH}
endif endif
clean: clean: