summaryrefslogtreecommitdiffstats
path: root/japanese/samba/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-09-01 09:10:24 +0000
committerknu <knu@FreeBSD.org>2001-09-01 09:10:24 +0000
commit54f3c561023d6787980bb8dc869a4c19bf83cdb7 (patch)
tree71c12e7b91146bacb6fb265738bd948855fd44f0 /japanese/samba/Makefile
parent38b6c7fa19509a144e0cfc7b5917ea791fd9994a (diff)
downloadFreeBSD-ports-54f3c561023d6787980bb8dc869a4c19bf83cdb7.zip
FreeBSD-ports-54f3c561023d6787980bb8dc869a4c19bf83cdb7.tar.gz
Update to samba-2.0.10-ja-1.1.
PR: ports/29917 Submitted by: NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (MAINTAINER) Add a hack to remove or preserve smbpasswd wisely. Approved by: MAINTAINER
Diffstat (limited to 'japanese/samba/Makefile')
-rw-r--r--japanese/samba/Makefile28
1 files changed, 9 insertions, 19 deletions
diff --git a/japanese/samba/Makefile b/japanese/samba/Makefile
index 3e32bb3..f8f9a5a 100644
--- a/japanese/samba/Makefile
+++ b/japanese/samba/Makefile
@@ -7,7 +7,6 @@
PORTNAME= samba
PORTVERSION= ${SAMBA_VERSION}.j${SAMBA_JA_VERSION}
-PORTREVISION= 1
CATEGORIES= japanese net
MASTER_SITES= ftp://ftp.samba.gr.jp/pub/samba-jp/%SUBDIR%/ \
ftp://ftp.iij.ad.jp/pub/SAMBA/samba-jp/%SUBDIR%/ \
@@ -22,10 +21,8 @@ MAINTAINER= nakaji@jp.FreeBSD.org
BUILD_DEPENDS= msgfmt:${PORTSDIR}/devel/gettext
-Y2K= http://us1.samba.org/samba/docs/sambay2k.html
-
SAMBA_VERSION= 2.0.10
-SAMBA_JA_VERSION= 1.0
+SAMBA_JA_VERSION= 1.1
# directories
VARDIR= /var
@@ -87,24 +84,17 @@ post-install:
> ${SAMPLE_CONFIG} ; \
fi
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/source/script/mksmbpasswd.sh ${PREFIX}/bin/make_smbpasswd
- if [ ! -d ${SAMBA_PRIVATE} ] ; then \
- ${MKDIR} ${SAMBA_PRIVATE} ; \
- ${CHOWN} root:wheel ${SAMBA_PRIVATE} ; \
- fi
- ${CHMOD} 700 ${SAMBA_PRIVATE}
- if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then \
- ${CAT} /etc/passwd | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \
- ${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd ; \
+
+ ${MKDIR} -p -m 500 ${SAMBA_PRIVATE}
+ ${CHOWN} root:wheel ${SAMBA_PRIVATE}
+ ${CAT} /etc/passwd | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd.default
+ if [ ! -e ${SAMBA_PRIVATE}/smbpasswd ]; then \
+ ${CP} -p ${SAMBA_PRIVATE}/smbpasswd.default ${SAMBA_PRIVATE}/smbpasswd ; \
fi
- ${CHMOD} 500 ${SAMBA_PRIVATE}
+ ${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd*
+
${CHOWN} root:wheel ${PREFIX}/bin/smbpasswd
${CHMOD} 111 ${PREFIX}/bin/smbpasswd
-.if defined(PACKAGE_BUILDING)
- ${ECHO} "private/smbpasswd" >> ${TMPPLIST}
- ${ECHO} "@dirrm private" >> ${TMPPLIST}
-.else
- ${ECHO} "@unexec echo \"Warning: If you will *NOT* use this package anymore, please remove %D/private/smbpasswd manually.\"" >> ${TMPPLIST}
-.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/samba
OpenPOWER on IntegriCloud