Bug 66521 - add new make flag for cyrus-sasl2 ports
Summary: add new make flag for cyrus-sasl2 ports
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-11 13:30 UTC by Krzysztof Stryjek
Modified: 2004-05-12 17:14 UTC (History)
0 users

See Also:


Attachments
file.diff (1.11 KB, patch)
2004-05-11 13:30 UTC, Krzysztof Stryjek
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Stryjek 2004-05-11 13:30:19 UTC
	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).
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-05-11 17:11:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ume

Over to maintainer.
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2004-05-12 17:12:32 UTC
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.