Re: spec file

Miek Gieben <[email protected]> Mon, 12 Jan 2004 12:43:10 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 10 Jan, @05:16, Boris wrote in "[hdup-user] spec file ..."]
> I'm trying to build an hdup RPM using the spec file provided in
> contrib/.  I needed to change the name of a couple of variables in
> src/Makefile to standard values -- sysconfdir instead of etcdir; sbindir
> instead of bindir for /usr/sbin.

As a debian fan myself, this doesn't ring a bell. Is the spec file flawed?
Is so, please submit a patch.

> Also, there seems to be some confusion in the makefile and specfile as
> to the standard location of hdup.conf.  The makefile installs it as
> /etc/hdup.conf , but the spec file also creates /etc/hdup/hdup.conf --
> any clues?

When I quickly glance at the specfile I see:
%config(noreplace) /etc/hdup/hdup.conf

And from the src/Makefile:
@[ -f ${etcdir}/hdup.conf ] || ${INSTALL} -m 600 ../hdup.conf ${etcdir}/hdup.conf

and
etcdir = /etc/hdup

So it looks like there in sync wrt location of hdup.conf...

grtz Miek