On Tue, Dec 14, 2004 at 09:51:13PM -0600, Jay Maynard wrote:
> On Wed, Dec 15, 2004 at 01:18:43AM +0000, Richard Hirst wrote:
> >   Loadable module default base directory is 
> > /var/tmp/hercules-3.02-root/usr/lib/hercules
> > Note it appears to be looking in the rpm temp build directory for
> > modules and documents.  I had to set LD_LIBRARY_PATH to /usr/lib/hercules
> > in order that CTCI devices were recognised.
>
> ...grumble...
> I knew there was a reason we put those messages in there.
>
> I'll take a look at the RPM build process, and update it if I can figure out
> where it went wrong.

I think this is what you want:

--- /mnt/levanta/rpm-build/SPECS/hercules-3.02-1.spec.ori       2004-12-15 
09:54:43.528404269 +0000
+++ /mnt/levanta/rpm-build/SPECS/hercules-3.02-1.spec   2004-12-15 
09:56:17.040764924 +0000
@@ -33,12 +33,11 @@
 %setup %{name}-%{version}

 %build
-DESTPREFiX=%{_prefix} ./configure --prefix=${RPM_BUILD_ROOT}%{_prefix} \
- --build=%{_target}
+./configure --prefix=%{_prefix}
 make

 %install
-make install
+make install DESTDIR=$RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/etc/hercules
 cp hercules.cnf $RPM_BUILD_ROOT/etc/hercules/sample.cnf



Seems to work for me, anyway.  The other thing you might consider
is packaging hercifc as mode 4751.  Not sure if everyone wants that
though.

Richard

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to