- Add optional patch that changes smbclient invocation to match arguments

that samba3 expects

PR:		ports/77015
Submitted by:	Taik0 <suikogaiden@gmail.com>
Approved by:	maintainer timeout (5 months)
This commit is contained in:
Pav Lucistnik 2005-07-20 15:44:05 +00:00
parent 4d491b3bca
commit aa8f85b209
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139714
4 changed files with 32 additions and 0 deletions

View file

@ -25,6 +25,10 @@ USE_GNOME= gtk12
USE_X_PREFIX= yes
USE_REINPLACE= yes
.if defined(WITH_SAMBA3)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-samba3
.endif
post-patch:
${REINPLACE_CMD} -e "s#/doc/#/share/doc/#" ${WRKSRC}/Makefile

View file

@ -0,0 +1,12 @@
diff -ur send.c send.c
--- send.c Tue Mar 14 03:45:05 2000
+++ send.c Wed Feb 2 17:05:46 2005
@@ -92,7 +92,7 @@
/* -- launch smbclient and read output from pipe -- */
//sprintf (command_line, "( %s cat %s ) | smbclient -M \"%s\" -U \"%s\" -n \"%s\" \"%s\"", (MULTI_RECIPIENTS ? prefix : ""), temp_filename, head_text, user_rc.samba_username, user_rc.samba_nbiosname, user_rc.samba_misc);
- sprintf (command_line, "( %s cat %s ) | smbclient -M \"%s\" -U \"%s\" -n \"%s\" \"%s\" 2>&1", (MULTI_RECIPIENTS ? prefix : ""), temp_filename, head_text, user_rc.samba_username, user_rc.samba_nbiosname, user_rc.samba_misc);
+ sprintf (command_line, "( %s cat %s ) | smbclient -M \"%s\" -U \"%s\" -n \"%s\" 2>&1", (MULTI_RECIPIENTS ? prefix : ""), temp_filename, head_text, user_rc.samba_username, user_rc.samba_nbiosname);
output = popen (command_line, "r");

View file

@ -25,6 +25,10 @@ USE_GNOME= gtk12
USE_X_PREFIX= yes
USE_REINPLACE= yes
.if defined(WITH_SAMBA3)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-samba3
.endif
post-patch:
${REINPLACE_CMD} -e "s#/doc/#/share/doc/#" ${WRKSRC}/Makefile

View file

@ -0,0 +1,12 @@
diff -ur send.c send.c
--- send.c Tue Mar 14 03:45:05 2000
+++ send.c Wed Feb 2 17:05:46 2005
@@ -92,7 +92,7 @@
/* -- launch smbclient and read output from pipe -- */
//sprintf (command_line, "( %s cat %s ) | smbclient -M \"%s\" -U \"%s\" -n \"%s\" \"%s\"", (MULTI_RECIPIENTS ? prefix : ""), temp_filename, head_text, user_rc.samba_username, user_rc.samba_nbiosname, user_rc.samba_misc);
- sprintf (command_line, "( %s cat %s ) | smbclient -M \"%s\" -U \"%s\" -n \"%s\" \"%s\" 2>&1", (MULTI_RECIPIENTS ? prefix : ""), temp_filename, head_text, user_rc.samba_username, user_rc.samba_nbiosname, user_rc.samba_misc);
+ sprintf (command_line, "( %s cat %s ) | smbclient -M \"%s\" -U \"%s\" -n \"%s\" 2>&1", (MULTI_RECIPIENTS ? prefix : ""), temp_filename, head_text, user_rc.samba_username, user_rc.samba_nbiosname);
output = popen (command_line, "r");