Re: [spamdyke-users] Bug: ./configure doesn't respect --prefix

2016-05-11 Thread Sam Clippinger via spamdyke-users
I'll get that added to the next release, thanks!

-- Sam Clippinger




On May 10, 2016, at 5:37 AM, Jonas Pasche via spamdyke-users 
 wrote:

> Hey there,
> 
> while the configure script of the current version tells that it would be
> able to handle an installation prefix ...
> 
> $ ./configure --help | grep prefix | head -1
>  --prefix=PREFIX install architecture-independent files in PREFIX
> 
> ... this simply doesn't work, as the install paths in Makefile.in are
> hardcoded. I'd suggest the attached patch against the current version of
> spamdyke which replaces the hardcoded paths with the variable. Sam,
> could you possibly include this in future versions?
> 
> Thanks,
> Jonas
> 
> ___
> spamdyke-users mailing list
> spamdyke-users@spamdyke.org
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users

___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users


[spamdyke-users] Bug: ./configure doesn't respect --prefix

2016-05-10 Thread Jonas Pasche via spamdyke-users
Hey there,

while the configure script of the current version tells that it would be
able to handle an installation prefix ...

$ ./configure --help | grep prefix | head -1
  --prefix=PREFIX install architecture-independent files in PREFIX

... this simply doesn't work, as the install paths in Makefile.in are
hardcoded. I'd suggest the attached patch against the current version of
spamdyke which replaces the hardcoded paths with the variable. Sam,
could you possibly include this in future versions?

Thanks,
Jonas

--- spamdyke-5.0.1/spamdyke/Makefile.in.orig	2015-04-30 02:53:36.0 +0200
+++ spamdyke-5.0.1/spamdyke/Makefile.in	2016-05-10 11:37:02.985242423 +0200
@@ -21,6 +21,7 @@
 CFLAGS := @CFLAGS@ -funsigned-char @CPPFLAGS@
 LDFLAGS := @LDFLAGS@
 LIBS := @LIBS@
+prefix := @prefix@
 
 OFILES := spamdyke.o configuration.o dns.o environment.o usage.o search_fs.o exec.o base64.o tls.o log.o config_test.o md5.o filter.o cdb.o
 
@@ -29,9 +30,9 @@
 	@STRIP_CMD@
 
 install: spamdyke
-	cp spamdyke /usr/local/bin/spamdyke-@PACKAGE_VERSION@
-	rm -f /usr/local/bin/spamdyke
-	ln -s /usr/local/bin/spamdyke-@PACKAGE_VERSION@ /usr/local/bin/spamdyke
+	cp spamdyke $(prefix)/bin/spamdyke-@PACKAGE_VERSION@
+	rm -f $(prefix)/bin/spamdyke
+	ln -s $(prefix)/bin/spamdyke-@PACKAGE_VERSION@ /usr/local/bin/spamdyke
 
 spamdyke.o: spamdyke.c spamdyke.h Makefile config.h
 	$(CC) $(CFLAGS) $(DEFS) -c spamdyke.c
___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users