Hello Sam,

I've tried to compile and install Courier 0.73.1 from sources on FreeBSD 9.2 and encountered two small quirks.

First is error in differentiating between standalone and bundled Courier versions of SqWebMail which leads to incorrect path to makemime in sqwebmaild. Patch for Makefile.in attached.

Second is wrong (for FreeBSD mkdir) method for determining mkdir version at line 2727 of main configure script ("$as_dir/$ac_prog$ac_exec_ext" -- version). BSD mkdir doesn't interpret --version argument and just outputs usage string (usage: mkdir [-pv] [-m mode] directory_name ...). Though it could be easily circumvented by setting MKDIR_P="/bin/mkdir -p" in configure environment.

--
Alexei.
--- /courier/libs/sqwebmail/Makefile.in.orig    2013-12-24 03:48:48.000000000 
+0400
+++ /courier/libs/sqwebmail/Makefile.in 2014-02-15 19:48:48.000000000 +0400
@@ -1288,7 +1288,7 @@
        echo '#define SOCKDIR "$(localstatedir)"' >>htmllibdir.h
        echo '#define SHAREDINDEXFILE "$(sysconfdir)/shared/index"' 
>>htmllibdir.h
        echo '#define SQWEBPASSWD "$(pkglibexecdir)/sqwebpasswd"' >>htmllibdir.h
-       if test -d $(srcdir)/../courier \
+       if test -d $(srcdir)/../../courier \
                ; then \
                echo '#define HOSTNAMEFILE "$(sysconfdir)/defaultdomain"' 
>>htmllibdir.h \
                ; echo '#define MAKEMIME "$(bindir)/makemime"' >>htmllibdir.h \
@@ -1336,7 +1336,7 @@
        @echo '-----------------------------------------------------------' 
>>sqwebmail.msg
        @echo 'You must now add the following command to your system startup 
script:' >>sqwebmail.msg
        @echo '' >>sqwebmail.msg
-       @if test -d $(srcdir)/../courier \
+       @if test -d $(srcdir)/../../courier \
                ; then \
        echo '$(sbindir)/webmaild start' >>sqwebmail.msg ; else \
        echo '$(libexecdir)/sqwebmaild.rc start' >>sqwebmail.msg ; fi
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to