diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-24 15:15:06 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-24 15:15:06 +0000 |
commit | 0c978582aa5cd4fb4f98be0b2df524f828a22870 (patch) | |
tree | 384c80d449d8074de1e55a1a075164ba1a90abf9 /japanese/samba/scripts | |
parent | update to hackbot-2.19 (diff) |
Update to 2.2.7a-ja-1.0.
PR: ports/48615
Submitted by: NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=76401
Diffstat (limited to 'japanese/samba/scripts')
-rw-r--r-- | japanese/samba/scripts/configure.samba | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/japanese/samba/scripts/configure.samba b/japanese/samba/scripts/configure.samba new file mode 100644 index 000000000000..80af4c823d43 --- /dev/null +++ b/japanese/samba/scripts/configure.samba @@ -0,0 +1,97 @@ +#!/bin/sh + +if [ -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc ]; then + exit +fi + +tempfile=`/usr/bin/mktemp -t checklist` + +if [ "${BATCH}" ]; then + if [ "${SAMBA_OPTIONS}" ]; then + set ${SAMBA_OPTIONS} + fi +else + /usr/bin/dialog --title "configuration options" --clear \ + --checklist "\n\ +Please select desired options:" -1 -1 12 \ +syslog "With syslog support" OFF \ +ssl "With ssl support" OFF \ +ldap "With LDAP2 support" OFF \ +nocups "Without CUPS" OFF \ +acl "With ACL support" OFF \ +utmp "With UTMP support" OFF \ +msdfs "With MSDFS support" OFF \ +quota "With Quota support" OFF \ +recycle "With Recycle Bin" OFF \ +audit "With Audit" OFF \ +winbind "With Winbind" OFF \ +wbauth "With Winbind Auth Challenge" OFF \ +2> $tempfile + + retval=$? + + if [ -s $tempfile ]; then + set `cat $tempfile` + fi + rm -f $tempfile + + case $retval in + 0) if [ -z "$*" ]; then + echo "Nothing selected" + fi + ;; + 1) echo "Cancel pressed." + exit 1 + ;; + esac +fi + +${MKDIR} ${WRKDIRPREFIX}${REALCURDIR} +echo "SCRIPT_RUN=yes" >${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + +while [ "$1" ]; do + case $1 in + \"syslog\") + echo "WITH_SYSLOG=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"ssl\") + echo "WITH_SSL=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"ldap\") + echo "WITH_LDAP=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"nocups\") + echo "WITHOUT_CUPS=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"acl\") + echo "WITH_ACL_SUPPORT=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"utmp\") + echo "WITH_UTMP=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"msdfs\") + echo "WITH_MSDFS=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"quota\") + echo "WITH_QUOTAS=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"recycle\") + echo "WITH_RECYCLE=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"audit\") + echo "WITH_AUDIT=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"winbind\") + echo "WITH_WINBIND=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + \"wbauth\") + echo "WITH_WINBIND_AUTH_CHALLENGE=YES" >>${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + ;; + *) + echo "Invalid option: $1" + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + exit 1 + ;; + esac + shift +done |