ports/51817: net/kpopup: fixing the path of smbclient.

Thierry Thomas thierry at pompo.net
Mon May 5 22:52:26 UTC 2003


>Number:         51817
>Category:       ports
>Synopsis:       net/kpopup: fixing the path of smbclient.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 05 15:50:10 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 5.0-RELEASE-p7 i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #0: Mon Apr 7 18:47:47 CEST 2003 thierry at ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-030112 i386


	
>Description:
	By default kpopup is looking for smbclient in /usr/bin, but it is
	under $LOCALBASE/bin.

>How-To-Repeat:
	- install net/kpopup on a standard FreeBSD machine;
	- try to send a message => it won't find smbclient.

>Fix:
	Please apply the following patch.

	Note: there is a new file, files/patch-kpopup_misc.h.

--- kpopup.diff begins here ---
diff -urN net/kpopup.orig/Makefile net/kpopup/Makefile
--- net/kpopup.orig/Makefile	Wed Apr 30 15:20:05 2003
+++ net/kpopup/Makefile	Mon May  5 18:52:39 2003
@@ -21,8 +21,9 @@
 USE_REINPLACE=	yes
 
 post-patch:
-	${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,' ${WRKSRC}/kpopup/misc.cpp \
+	@${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,' ${WRKSRC}/kpopup/misc.cpp \
 		${WRKSRC}/kpopup/make_popup.cpp ${WRKSRC}/kpopup/main.cpp
+	@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/kpopup/misc.h
 
 post-install:
 	@${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%PREFIX%%,${PREFIX},g'
diff -urN net/kpopup.orig/files/patch-kpopup_misc.h net/kpopup/files/patch-kpopup_misc.h
--- net/kpopup.orig/files/patch-kpopup_misc.h	Thu Jan  1 01:00:00 1970
+++ net/kpopup/files/patch-kpopup_misc.h	Mon May  5 18:47:52 2003
@@ -0,0 +1,11 @@
+--- ./kpopup/misc.h.orig	Sun Aug 26 17:44:03 2001
++++ ./kpopup/misc.h	Mon May  5 09:47:04 2003
+@@ -20,7 +20,7 @@
+ #include "kpopup.h"
+ 
+ #undef DEBUG
+-#define SMBPATH "/usr/bin" //Path of smbclient
++#define SMBPATH "%%LOCALBASE%%/bin" //Path of smbclient
+ #define TMPPOPUPFILE "/tmp/kpopup-message"
+ #define SETSIG(sig, fun, fla)	sa.sa_handler = fun; \
+     sa.sa_flags = fla; \
--- kpopup.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list