Re: [[email protected]: problem with hdup 2.0.8-1]

Miek Gieben <[email protected]> Thu, 30 Jun 2005 12:42:53 +0200
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
--qGV0fN9tzfkG3CxV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

[On 30 Jun, @12:14, Miek Gieben wrote in "Re: [hdup-user] [torsten@torst ..."]
> Which looks okay, but requires the --sysconfdir switch. Any ideas how
> to make the plain configure work correctly?

I like the following more (because it doesn't change the ./configure
without options):
It is highly likely that these 3 patches will be in 2.0.9.

regards, Miek

===================================================================
--- configure.ac        (revision 103)
+++ configure.ac        (working copy)
@@ -57,7 +57,16 @@
 #AC_FUNC_STAT
 #AC_CHECK_FUNCS([mkdir rmdir strchr strrchr strstr])

-AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir")
+#echo $sysconfdir
+#echo $prefix
+if test $prefix = "NONE"; then
+       if test $sysconfdir = '${prefix}/etc'; then
+               sysconfdir="/etc"
+       fi
+fi
+#echo $sysconfdir
+#echo $prefix
+#AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir")

 AC_CONFIG_FILES([Makefile
                  src/Makefile

===================================================================
--- src/Makefile.in     (revision 103)
+++ src/Makefile.in     (working copy)
@@ -16,7 +16,7 @@
 exec_prefix = @exec_prefix@
 sbindir = @sbindir@
 mandir = @mandir@
-sysconfdir = @prefix@/etc
+sysconfdir = @sysconfdir@
 ######################################
 ######################################
 .PHONY:        clean install all uninstall
Index: src/hdup.h.in

===================================================================
--- src/hdup.h.in       (revision 103)
+++ src/hdup.h.in       (working copy)
@@ -22,8 +22,7 @@
 #define LZOP_PROG      "@lzop@"
 #define SPLIT_PROG      "@split@"
 #define UNSPLIT_PROG    "@cat@"
-#define ETCFILE         "@prefix@/etc/hdup/hdup.conf"
-/* /usr/local/etc#"/etc/hdup/hdup.conf") */
+#define ETCFILE         "@sysconfdir@/hdup/hdup.conf"
 #define REMOTE_HDUP     "@prefix@/sbin/hdup"
 #define REMOTE_HDUP_OPT ""      /* default is empty */
 #define FILELIST        "/filelist"
Index: ChangeLog


--qGV0fN9tzfkG3CxV
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCw8ytw7f5Q7GEU6ERAkX1AJ0fyM4ALpNHjAxqiavkBeszPgh+wACgjoVW
KY1vwCNAuqv2AfiSIOS13nc=
=WKiC
-----END PGP SIGNATURE-----

--qGV0fN9tzfkG3CxV--