Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2003 10:30:33 +0000 (GMT)
From:      Dominic Mitchell <dom@happygiraffe.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dwcjr@FreeBSD.org
Subject:   ports/50044: allow samba to be built automatically
Message-ID:  <20030316103033.143D85C63@happygiraffe.net>

next in thread | raw e-mail | index | archive | help

>Number:         50044
>Category:       ports
>Synopsis:       allow samba to be built automatically
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 02:40:12 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dominic Mitchell
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ppe.happygiraffe.net 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Tue Feb 18 15:02:55 GMT 2003 root@ppe.happygiraffe.net:/usr/obj/usr/src/sys/PPE i386


>Description:
	This patch allows samba to be built non interactively by
	specifying the required options in /etc/make.conf.  Previously,
	this also required BATCH to be set, which I generally don't want to do.
	The mail/postfix port works in a similiar manner.
>How-To-Repeat:
	echo "SAMBA_OPTIONS=ssl" >>/etc/make.conf
	cd /usr/ports/net/samba
	make
>Fix:

	Here's the patch:

diff -urN /usr/ports/net/samba/scripts/configure.samba samba/scripts/configure.samba
--- /usr/ports/net/samba/scripts/configure.samba	Sun Mar 16 10:24:37 2003
+++ samba/scripts/configure.samba	Sun Mar 16 10:25:39 2003
@@ -6,9 +6,11 @@
 
 tempfile=`/usr/bin/mktemp -t checklist`
 
-if [ "${BATCH}" ]; then
+if [ "${BATCH}" -o "${SAMBA_OPTIONS}" ]; then
 	if [ "${SAMBA_OPTIONS}" ]; then
-		set ${SAMBA_OPTIONS}
+		set -- ${SAMBA_OPTIONS}
+	else
+		set --
 	fi
 else
 	/usr/bin/dialog --title "configuration options" --clear \
@@ -51,40 +53,40 @@
 
 while [ "$1" ]; do
 	case $1 in
-		\"syslog\")
+		*syslog*)
 			echo "WITH_SYSLOG=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"ssl\")
+		*ssl*)
 			echo "WITH_SSL=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"ldap\")
+		*ldap*)
 			echo "WITH_LDAP=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"nocups\")
+		*nocups*)
 			echo "WITHOUT_CUPS=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"acl\")
+		*acl*)
 			echo "WITH_ACL_SUPPORT=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"utmp\")
+		*utmp*)
 			echo "WITH_UTMP=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"msdfs\")
+		*msdfs*)
 			echo "WITH_MSDFS=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"quota\")
+		*quota*)
 			echo "WITH_QUOTAS=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"recycle\")
+		*recycle*)
 			echo "WITH_RECYCLE=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"audit\")
+		*audit*)
 			echo "WITH_AUDIT=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"winbind\")
+		*winbind*)
 			echo "WITH_WINBIND=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
-		\"wbauth\")
+		*wbauth*)
 			echo "WITH_WINBIND_AUTH_CHALLENGE=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
 			;;
 		*)
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030316103033.143D85C63>