aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba3
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2004-06-03 15:57:07 +0800
committerkuriyama <kuriyama@FreeBSD.org>2004-06-03 15:57:07 +0800
commit7269a0b777f7b353c683695f4fe5fdf5cc21f4a9 (patch)
treea1636743964cc1f826ec4befec8d6a90acf9790c /net/samba3
parent57782e43a5c5151867fbf7c42cfe717a2dc2a514 (diff)
downloadfreebsd-ports-gnome-7269a0b777f7b353c683695f4fe5fdf5cc21f4a9.tar.gz
freebsd-ports-gnome-7269a0b777f7b353c683695f4fe5fdf5cc21f4a9.tar.zst
freebsd-ports-gnome-7269a0b777f7b353c683695f4fe5fdf5cc21f4a9.zip
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
Diffstat (limited to 'net/samba3')
-rw-r--r--net/samba3/Makefile16
-rw-r--r--net/samba3/distinfo2
-rw-r--r--net/samba3/pkg-plist1
3 files changed, 17 insertions, 2 deletions
diff --git a/net/samba3/Makefile b/net/samba3/Makefile
index dd652f99c18d..82bf9e0185f2 100644
--- a/net/samba3/Makefile
+++ b/net/samba3/Makefile
@@ -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}
diff --git a/net/samba3/distinfo b/net/samba3/distinfo
index a98d10b11a62..a5b09ffb7604 100644
--- a/net/samba3/distinfo
+++ b/net/samba3/distinfo
@@ -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
diff --git a/net/samba3/pkg-plist b/net/samba3/pkg-plist
index f4f5b663fc3c..6a53e2d5a203 100644
--- a/net/samba3/pkg-plist
+++ b/net/samba3/pkg-plist
@@ -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