Re: Bring enbd back in Debian?
"Peter T. Breuer" <[email protected]> Sun, 19 Mar 2006 08:40:28 +0100 (MET)
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
I believe that I've now rearranged the configure.in and Makefile.in
files sufficiently that you can get what you need by editing the top
level Makefile so that it sets the environment variables
confdir (/etc)
piddir (/var/run)
statedir (/var/state/enbd)
as it calls the configure script.
That will then make a build Makefile in which those variables are
embedded as at the point configure was run and are also passed to the
compile in the compile line ...
CPPFLAGS := -DCONFDIR="\"$(confdir)\"" \
-DPIDDIR="\"$(piddir)\"" \
-DSTATEDIR="\"$(statedir)\""
It then remains to get those values into the init script, but I've
arranged for it to look in /etc/default/enbd (or /etc/sysconfig/enbd),
where you can set the variables
CONFDIR
PIDDIR
STATEDIR
It would be nice to pass the data to the top level Makefile without
editing it. It calls
./configure --srcdir="$(VPATH)" --with-kernel-srcdir="$(LINUXDIR)"
and I suspect one could add a --build=$(BUILD_ARCH) parameter, which I
also suspect might read a configure.debian file placed somewhere, but my
quick scan of the info file for autoconf has not enlightened me.
Peter