Skip site navigation (1)Skip section navigation (2)
Date:      27 Jan 2008 13:31:56 -0000
From:      Luiz Otavio O Souza <loos.br@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/120042: [mainteiner update] net-im/msn-proxy: port does not intall all needed files
Message-ID:  <20080127133156.8542.qmail@ad.com.br>
Resent-Message-ID: <200801271410.m0REA25Q006152@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         120042
>Category:       ports
>Synopsis:       [mainteiner update] net-im/msn-proxy: port does not intall all needed files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 27 14:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Luiz Otavio O Souza
>Release:        FreeBSD 7.0-BETA1 i386
>Organization:
>Environment:
System: FreeBSD server.rede.int.br 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Sat Oct 27 17:44:02 BRST 2007 root@server.rede.int.br:/usr/src/sys/i386/compile/FW i386


	
>Description:

	The current port does not install the needed php support neither the web files
>How-To-Repeat:
	
>Fix:

diff -urN msn-proxy-orig/Makefile msn-proxy/Makefile
--- msn-proxy-orig/Makefile	2008-01-27 10:09:09.000000000 -0200
+++ msn-proxy/Makefile	2008-01-27 11:31:44.000000000 -0200
@@ -9,7 +9,6 @@
 PORTVERSION=	0.5
 CATEGORIES=	net-im
 MASTER_SITES=	SF
-#DISTNAME=	msn-proxy-${PORTVERSION}
 
 MAINTAINER=	loos.br@gmail.com
 COMMENT=	Messenger proxy/control daemon
@@ -18,15 +17,37 @@
 
 USE_MYSQL=	yes
 
+SUB_FILES=	pkg-message
 WRKSRC=		${WRKDIR}/${PORTNAME}
+
 DOCS=		INSTALL
+MSNPROXYWWW=	ajax.inc.php al.inc.php bl.inc.php chat-to.php chat.php \
+		conf.php default.array.cmd.inc.php default.array.option.inc.php \
+		default.array.status.inc.php fl.inc.php group.inc.php \
+		header.inc.php index.php mysql.inc.php save_contact_op.php \
+		save_default_op.php save_msg.php save_user_op.php user.php \
+		view-to.php view.php
+MSNPROXYIMG=	ausente.gif notinlist.png ocupado.gif offline.gif online.gif \
+		send_im.gif webcam.png
+
+WANT_PHP_WEB=	yes
+USE_PHP=	mysql
 
 post-install:
+	@${MKDIR} ${WWWDIR}
+.for FILE in ${MSNPROXYWWW}
+	@cd ${WRKSRC}/php && ${INSTALL} -m 644 ${FILE} ${WWWDIR}
+.endfor
+	@${MKDIR} ${WWWDIR}/imagens
+.for FILE in ${MSNPROXYIMG}
+	@cd ${WRKSRC}/php/imagens && ${INSTALL} -m 644 ${FILE} ${WWWDIR}/imagens
+.endfor
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 .for FILE in ${DOCS}
 	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/${FILE}
 .endfor
 .endif
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -urN msn-proxy-orig/files/pkg-message.in msn-proxy/files/pkg-message.in
--- msn-proxy-orig/files/pkg-message.in	1969-12-31 21:00:00.000000000 -0300
+++ msn-proxy/files/pkg-message.in	2008-01-27 11:19:40.000000000 -0200
@@ -0,0 +1,24 @@
+------------------------------------------------
+msn-proxy post installation (basic) instructions
+------------------------------------------------
+
+On mysql create the database and the user to msn-proxy:
+> create database `msn-proxy`;
+> grant all privileges on `msn-proxy`.* to `msn-proxy`@localhost identified by 'secret';
+> flush privileges;
+
+Pay attention at "`" and "'" differences on mysql commands.
+
+At first run, msn-proxy will check and create the mysql tables, after that
+insert the default configuration (with your real proxy ip):
+
+> insert into defaults (internal_host) values ('192.168.0.1');
+
+Now the proxy should be ready to run, just redirect the msn clients to
+the proxy (all connections to the port 1863 should be redirect at your
+gateway / firewall).
+
+(text from %%DOCSDIR%%/INSTALL)
+
+------------------------------------------------
+
diff -urN msn-proxy-orig/pkg-plist msn-proxy/pkg-plist
--- msn-proxy-orig/pkg-plist	2008-01-27 10:09:09.000000000 -0200
+++ msn-proxy/pkg-plist	2008-01-27 11:15:22.000000000 -0200
@@ -7,8 +7,38 @@
 etc/msn-proxy/mysql/tables/contact_groups
 etc/msn-proxy/msn-proxy.conf
 bin/msn-proxy
+%%WWWDIR%%/ajax.inc.php
+%%WWWDIR%%/al.inc.php
+%%WWWDIR%%/bl.inc.php
+%%WWWDIR%%/chat-to.php
+%%WWWDIR%%/chat.php
+%%WWWDIR%%/conf.php
+%%WWWDIR%%/default.array.cmd.inc.php
+%%WWWDIR%%/default.array.option.inc.php
+%%WWWDIR%%/default.array.status.inc.php
+%%WWWDIR%%/fl.inc.php
+%%WWWDIR%%/group.inc.php
+%%WWWDIR%%/header.inc.php
+%%WWWDIR%%/index.php
+%%WWWDIR%%/mysql.inc.php
+%%WWWDIR%%/save_contact_op.php
+%%WWWDIR%%/save_default_op.php
+%%WWWDIR%%/save_msg.php
+%%WWWDIR%%/save_user_op.php
+%%WWWDIR%%/user.php
+%%WWWDIR%%/view-to.php
+%%WWWDIR%%/view.php
+%%WWWDIR%%/imagens/ausente.gif
+%%WWWDIR%%/imagens/notinlist.png
+%%WWWDIR%%/imagens/ocupado.gif
+%%WWWDIR%%/imagens/offline.gif
+%%WWWDIR%%/imagens/online.gif
+%%WWWDIR%%/imagens/send_im.gif
+%%WWWDIR%%/imagens/webcam.png
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrmtry etc/msn-proxy/mysql/tables
 @dirrmtry etc/msn-proxy/mysql
 @dirrmtry etc/msn-proxy
+@dirrmtry %%WWWDIR%%/imagens
+@dirrmtry %%WWWDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080127133156.8542.qmail>