cyrus-sals2 is very useful port for making authentication. It is wide used with postfix. So it's very useful to change it's default running directory to on of postfix subdirectories (vide: http://ezine.daemonnews.org/200306/postfix-sasl.html). Fix: Here are patches for cyrus-sal2 ports Makefiles: cyrus-sasl2: ------------------------------------------- cut here ----------------------------- cyrus-sasl2-saslauthd: ------------------------------------------- cut here ----------------------------- I think it's better solution, that patching Makefiles before every building. Greetings from Poland wtp + cyrus (at) bsdguru (dot) org--M9KkdPB3pbljjQSnOvXyzh4OXOBJ2evJeahgKMvBNcTpImDS Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- Makefile.orig Sat May 8 04:07:41 2004 +++ Makefile Tue May 11 11:47:48 2004 @@ -51,8 +51,7 @@ --enable-static \ --enable-auth-sasldb \ --with-openssl=${OPENSSLBASE} \ - --with-rc4=openssl \ - --with-saslauthd + --with-rc4=openssl .if defined(WITH_BDB_VER) .if ${WITH_BDB_VER} == 3 @@ -176,6 +175,12 @@ CONFIGURE_ARGS+=--disable-krb4 EBONES= "@comment " .endif + +.if !defined(SASLAUTHD_RUNPATH) +SASLAUTHD_RUNPATH=/var/state/saslauthd +.endif + +CONFIGURE_ARGS+= --with-saslauthd=${SASLAUTHD_RUNPATH} CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \ OPENSSLINC=${OPENSSLINC} \ ------------------------------------------- cut here ----------------------------- How-To-Repeat: well, follow http://prioris.mini.pw.edu.pl/~gregory/articles/errata.html (i don't know why, but during writing this PR server at prioris.mini.pw.edu.pl did not respond).
Responsible Changed From-To: freebsd-ports-bugs->ume Over to maintainer.
State Changed From-To: open->closed I've just committed the change but I didn't use your patch. > cyrus-sals2 is very useful port for making authentication. It is > wide used with postfix. So it's very useful to change it's default > running directory to on of postfix subdirectories Yes, I know. But, cyrus-sasl2 is not only for postfix. You can configure the loaction of runpath easily at runtime by specifying saslauthd_runpath in your /etc/rc.conf for saslauthd, and by specifying smtpd.conf for postfix. So, changing default location of runpath at build time is little worth. > Here are patches for cyrus-sal2 ports Makefiles: Thanks but it is incomplete. Thought you didn't touch pkg-plist, since we need pkg-plist to be in sync with installed things, it is hard to do mkdir against ${SASLAUTHD_RUNPATH}, and it is harmful to do rmdir automatically against ${SASLAUTHD_RUNPATH}. So, I made not to mkdir runpath when it is not default location.