]> git.wh0rd.org Git - dump.git/commitdiff
Get the install paths from configure.
authorStelian Pop <stelian@popies.net>
Fri, 6 Apr 2001 10:09:39 +0000 (10:09 +0000)
committerStelian Pop <stelian@popies.net>
Fri, 6 Apr 2001 10:09:39 +0000 (10:09 +0000)
CHANGES
MCONFIG.in
configure
configure.in
dump.spec
dump/Makefile.in
restore/Makefile.in
rmt/Makefile.in

diff --git a/CHANGES b/CHANGES
index 8710d0b7a213a2bfed61ed613133793b60208f41..942238c68e05cddd9ce0a2edda97cf7ef7985ce9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.107 2001/03/20 09:14:57 stelian Exp $
+$Id: CHANGES,v 1.108 2001/04/06 10:09:39 stelian Exp $
 
 Changes between versions 0.4b21 and 0.4b22 (released ????????????????)
 ======================================================================
@@ -30,6 +30,9 @@ Changes between versions 0.4b21 and 0.4b22 (released ????????????????)
        ext2fs COMPAT flags, time_t cleanups, added libext2 version
        in dump usage text) by Andreas Dilger <adilger@turbolinux.com>.
 
+6.     Made --prefix option work in configure. All the install path
+       are now based on the configure parameters.
+
 Changes between versions 0.4b20 and 0.4b21 (released January 13, 2001)
 ======================================================================
 
index 200d402116671bbdb234b5c9353cde353ea94195..ec8c3dcf3224f4fd22d99b7ae6d667d8d8764f89 100644 (file)
@@ -24,8 +24,10 @@ MANMODE=     @MANMODE@
 INSTALLBIN=    $(INSTALL) -o $(BINOWNER) -g $(BINGRP) -m $(BINMODE)
 INSTALLMAN=    $(INSTALL) -o $(MANOWNER) -g $(MANGRP) -m $(MANMODE)
 
-BINDIR=                /sbin
-MANDIR=                /usr/man/man8
+prefix=                @prefix@
+exec_prefix=   @exec_prefix@
+SBINDIR=       @sbindir@
+MANDIR=                @mandir@/man8
 
 DUMPDATESPATH= @DUMPDATESPATH@
 #
index 738d98257719feb16ed5eac559b347193301829c..7b7fc23818c3c04bc8b5ee131235ce68aef326fd 100755 (executable)
--- a/configure
+++ b/configure
@@ -1532,7 +1532,7 @@ if test "${with_dumpdatespath+set}" = set; then
   echo "$ac_t""DUMPDATESPATH is $withval" 1>&6
 DUMPDATESPATH=$withval
 else
-  DUMPDATESPATH="/etc/dumpdates"
+  DUMPDATESPATH="${sysconfdir}/dumpdates"
 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
 
 fi
index 8769174da07f2c1cb0a4bb32478c91304615a57a..6f8e57b99a150cdd8fad9212e72af0d6284c811a 100644 (file)
@@ -259,7 +259,7 @@ AC_ARG_WITH([dumpdatespath],
 [  --with-dumpdatespath=PATH  select path for dumpdates file],
 AC_MSG_RESULT(DUMPDATESPATH is $withval)
 DUMPDATESPATH=$withval,
-DUMPDATESPATH="/etc/dumpdates"
+DUMPDATESPATH="${sysconfdir}/dumpdates"
 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
 )dnl
 AC_SUBST(DUMPDATESPATH)
index 539bcc927e73917162b9e11ab10585c0553ed640..aecb5ddbcecb670047a971c563967a4ac96714d8 100644 (file)
--- a/dump.spec
+++ b/dump.spec
@@ -73,7 +73,7 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}%{_sbindir}
 mkdir -p %{buildroot}%{_mandir}/man8
 
-%makeinstall BINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn)
+%makeinstall SBINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn)
 
 cp dump/dump.static %{buildroot}%{_sbindir}
 cp restore/restore.static %{buildroot}%{_sbindir}
index 06925e9f56c46b7da7e32a524b65c07134baa1c6..555d3db4f14bbee9a1d439b7e429f72513666d7f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.5 2001/02/21 16:13:05 stelian Exp $
+# $Id: Makefile.in,v 1.6 2001/04/06 10:09:40 stelian Exp $
 
 top_srcdir=    @top_srcdir@
 srcdir=                @srcdir@
@@ -11,12 +11,12 @@ LIBS=               $(GLIBS) @ZLIB@
 DEPLIBS=       ../compat/lib/libcompat.a
 
 PROG=          dump
-LINKS=         ${BINDIR}/dump ${BINDIR}/rdump
+LINKS=         ${SBINDIR}/dump ${SBINDIR}/rdump
 SRCS=          itime.c main.c optr.c tape.c traverse.c unctime.c
 OBJS=          itime.o main.o optr.o tape.o traverse.o unctime.o \
                ../common/dumprmt.o
 MAN8=          dump.8
-MLINKS=                dump.8 $(MANDIR)/rdump.8
+MLINKS=                $(MANDIR)/dump.8 $(MANDIR)/rdump.8
 
 all::          $(PROG) dump.8
 
@@ -29,13 +29,14 @@ dump.8:             dump.8.in
            -e "s|__VERSION__|$(VERSION)|g" $< > $@
 
 install::      all
-       $(INSTALLBIN) $(PROG) $(BINDIR)
+       $(INSTALL) -d $(SBINDIR) $(MANDIR)
+       $(INSTALLBIN) $(PROG) $(SBINDIR)
        $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR)
        @set $(LINKS) $(MLINKS); \
        while test $$# -ge 2; do \
-               l=$(DESTDIR)$$1; \
+               l=$$1; \
                shift; \
-               t=$(DESTDIR)$$1; \
+               t=$$1; \
                shift; \
                echo $$t -\> $$l; \
                $(RM) -f $$t; \
index af0b5936996d96574565908099e0c4c4267d8c73..397302fdc725c0e31e2e2931faae4f6931c33113 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.6 2001/02/21 16:13:05 stelian Exp $
+# $Id: Makefile.in,v 1.7 2001/04/06 10:09:40 stelian Exp $
 
 top_srcdir=    @top_srcdir@
 srcdir=                @srcdir@
@@ -11,13 +11,13 @@ LIBS=               $(GLIBS) -le2p @READLINE@ @ZLIB@
 DEPLIBS=       ../compat/lib/libcompat.a
 
 PROG=          restore
-LINKS=         ${BINDIR}/restore ${BINDIR}/rrestore
+LINKS=         ${SBINDIR}/restore ${SBINDIR}/rrestore
 SRCS=          dirs.c interactive.c main.c restore.c symtab.c tape.c \
                utilities.c
 OBJS=          dirs.o interactive.o main.o restore.o symtab.o tape.o \
                utilities.o ../common/dumprmt.o
 MAN8=          restore.8
-MLINKS=                restore.8 $(MANDIR)/rrestore.8
+MLINKS=                $(MANDIR)/restore.8 $(MANDIR)/rrestore.8
 
 all::          $(PROG) restore.8
 
@@ -29,13 +29,14 @@ restore.8:  restore.8.in
            -e "s|__VERSION__|$(VERSION)|g" $< > $@
 
 install::      all
-       $(INSTALLBIN) $(PROG) $(BINDIR)
+       $(INSTALL) -d $(SBINDIR) $(MANDIR)
+       $(INSTALLBIN) $(PROG) $(SBINDIR)
        $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR)
        @set $(LINKS) $(MLINKS); \
        while test $$# -ge 2; do \
-               l=$(DESTDIR)$$1; \
+               l=$$1; \
                shift; \
-               t=$(DESTDIR)$$1; \
+               t=$$1; \
                shift; \
                echo $$t -\> $$l; \
                $(RM) -f $$t; \
index e0983021e60e382ec7d3190c5a0a081d0b244c35..b3a0a4b64ca1dff0849d08862f3977c477c6bde2 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.4 1999/10/11 13:31:14 stelian Exp $
+# $Id: Makefile.in,v 1.5 2001/04/06 10:09:40 stelian Exp $
 
 top_srcdir=    @top_srcdir@
 srcdir=                @srcdir@
@@ -30,7 +30,8 @@ rmt.8:                rmt.8.in
            -e "s|__VERSION__|$(VERSION)|g" $< > $@
 
 install::      all
-       $(INSTALLBIN) $(PROG) $(BINDIR)
+       $(INSTALL) -d $(SBINDIR) $(MANDIR)
+       $(INSTALLBIN) $(PROG) $(SBINDIR)
        $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR)
 
 clean::