Add I18N knob.

This patch originally developed by miraclelinux.com team for v3.0.2a.
I integrated it to apply to v3.0.4.  All complains about this knob
should be sent to me, not maintainer nor miraclelinux.com team.

No response from:	maintainer
This commit is contained in:
Jun Kuriyama 2004-06-03 07:57:07 +00:00
parent 6b541fd303
commit 69bc4a83a9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110732
6 changed files with 34 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= samba
PORTVERSION= 3.0.4
PORTREVISION?= 1
PORTREVISION?= 2
PORTEPOCH?= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SAMBA}
@ -70,7 +70,8 @@ OPTIONS= LDAP "With LDAP support" on \
SAM_PGSQL "With PostgreSQL smbpasswd backend" off \
SAM_OLD_LDAP "With Samba2.x LDAP smbpasswd backend" off \
PAM_SMBPASS "With SMB PAM module" off \
POPT "With installed POPT library" on
POPT "With installed POPT library" on \
I18N "With i18n patch" off
.endif
.include <bsd.port.pre.mk>
@ -247,6 +248,17 @@ WINBIND_FILTER= ${SED} -e 's|%%WINBIND%%||g'
WINBIND_FILTER= ${GREP} -v '^%%WINBIND%%'
.endif
.if defined(WITH_I18N)
# Based on patch from miraclelinux.com.
# http://www.miraclelinux.com/english/technet/samba30/index.html
PATCH_SITES= http://dist.bsdlab.org/
PATCHFILES= samba-${PORTVERSION}-i18n-20040521.bz2
PATCH_DIST_STRIP= -p1
PLIST_SUB+= I18N=""
.else
PLIST_SUB+= I18N="@comment "
.endif
PLIST_SUB+= RC_DIR=${RC_DIR} \
SAMBA_LOGDIR=${SAMBA_LOGDIR} \
SAMBA_LOCKDIR=${SAMBA_LOCKDIR}

View File

@ -1,2 +1,4 @@
MD5 (samba-3.0.4.tar.gz) = 0156265c1e95ac662deef386f615504f
SIZE (samba-3.0.4.tar.gz) = 15046252
MD5 (samba-3.0.4-i18n-20040521.bz2) = 24158c2fd00b47ff5b0bcad23cae16e1
SIZE (samba-3.0.4-i18n-20040521.bz2) = 18982

View File

@ -45,6 +45,7 @@ lib/samba/vfs/default_quota.so
lib/samba/vfs/expand_msdfs.so
lib/samba/vfs/extd_audit.so
lib/samba/vfs/fake_perms.so
%%I18N%%lib/samba/vfs/hex.so
lib/samba/vfs/netatalk.so
lib/samba/vfs/readonly.so
lib/samba/vfs/recycle.so

View File

@ -7,7 +7,7 @@
PORTNAME= samba
PORTVERSION= 3.0.4
PORTREVISION?= 1
PORTREVISION?= 2
PORTEPOCH?= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SAMBA}
@ -70,7 +70,8 @@ OPTIONS= LDAP "With LDAP support" on \
SAM_PGSQL "With PostgreSQL smbpasswd backend" off \
SAM_OLD_LDAP "With Samba2.x LDAP smbpasswd backend" off \
PAM_SMBPASS "With SMB PAM module" off \
POPT "With installed POPT library" on
POPT "With installed POPT library" on \
I18N "With i18n patch" off
.endif
.include <bsd.port.pre.mk>
@ -247,6 +248,17 @@ WINBIND_FILTER= ${SED} -e 's|%%WINBIND%%||g'
WINBIND_FILTER= ${GREP} -v '^%%WINBIND%%'
.endif
.if defined(WITH_I18N)
# Based on patch from miraclelinux.com.
# http://www.miraclelinux.com/english/technet/samba30/index.html
PATCH_SITES= http://dist.bsdlab.org/
PATCHFILES= samba-${PORTVERSION}-i18n-20040521.bz2
PATCH_DIST_STRIP= -p1
PLIST_SUB+= I18N=""
.else
PLIST_SUB+= I18N="@comment "
.endif
PLIST_SUB+= RC_DIR=${RC_DIR} \
SAMBA_LOGDIR=${SAMBA_LOGDIR} \
SAMBA_LOCKDIR=${SAMBA_LOCKDIR}

View File

@ -1,2 +1,4 @@
MD5 (samba-3.0.4.tar.gz) = 0156265c1e95ac662deef386f615504f
SIZE (samba-3.0.4.tar.gz) = 15046252
MD5 (samba-3.0.4-i18n-20040521.bz2) = 24158c2fd00b47ff5b0bcad23cae16e1
SIZE (samba-3.0.4-i18n-20040521.bz2) = 18982

View File

@ -45,6 +45,7 @@ lib/samba/vfs/default_quota.so
lib/samba/vfs/expand_msdfs.so
lib/samba/vfs/extd_audit.so
lib/samba/vfs/fake_perms.so
%%I18N%%lib/samba/vfs/hex.so
lib/samba/vfs/netatalk.so
lib/samba/vfs/readonly.so
lib/samba/vfs/recycle.so