Date: Sat, 1 Apr 2006 02:15:10 GMT From: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/95186: NEW PORT] net-im/cli-msn: Command line msn messenger Message-ID: <200604010215.k312FALL073591@www.freebsd.org> Resent-Message-ID: <200604010220.k312KEsN095109@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 95186 >Category: ports >Synopsis: NEW PORT] net-im/cli-msn: Command line msn messenger >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Apr 01 02:20:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jose Alonso Cardenas Marquez >Release: FreeBSD 6.1-PRERELEASE i386 >Organization: BSDPeru (http://www.bsd.org.pe) >Environment: FreeBSD HellFire.BSD.org.pe 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Tue Mar 21 23:44:35 PET 2006 >Description: - Added unofficial patches, these allow to read msn.conf from userhome directory CLI-MSN is a UNIX Command Line implementation of the MSN Messenger Client, coded purely in C with the ability to work in almost any UNIX/Linux variation. The desire for the creation of CLI-MSN came when little or no command-line based messengers were found to be available that implemented MSN Messenger. The client itself accepts commands based on that of an IRC clients nature (/cmd). Currently in the process of working out the file transfer. WWW: http://mor-pah.net/ >How-To-Repeat: >Fix: --- cli-msn-2.2.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cli-msn # cli-msn/pkg-descr # cli-msn/Makefile # cli-msn/files # cli-msn/files/pkg-message.in # cli-msn/files/patch-src_conf.c # cli-msn/files/patch-src_defs.c # cli-msn/distinfo # echo c - cli-msn mkdir -p cli-msn > /dev/null 2>&1 echo x - cli-msn/pkg-descr sed 's/^X//' >cli-msn/pkg-descr << 'END-of-cli-msn/pkg-descr' XCLI-MSN is a UNIX Command Line implementation of the MSN Messenger Client, Xcoded purely in C with the ability to work in almost any UNIX/Linux variation. XThe desire for the creation of CLI-MSN came when little or no command-line Xbased messengers were found to be available that implemented MSN Messenger. X XThe client itself accepts commands based on that of an IRC clients nature X(/cmd). Currently in the process of working out the file transfer. X XWWW: http://mor-pah.net/ END-of-cli-msn/pkg-descr echo x - cli-msn/Makefile sed 's/^X//' >cli-msn/Makefile << 'END-of-cli-msn/Makefile' X# New ports collection makefile for: climsn X# Date created: 2006-03-31 X# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> X# X# $FreeBSD$ X# X XPORTNAME= msn XPORTVERSION= 2.2 XCATEGORIES= net-im XMASTER_SITES= http://mor-pah.net/code/ XPKGNAMEPREFIX= cli- XDISTNAME= CLI-MSN-${PORTVERSION} X XMAINTAINER= acardenas@bsd.org.pe XCOMMENT= Command line msn messenger X XLIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl X XUSE_GMAKE= yes XGNU_CONFIGURE= yes XCPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_LIBS} XLDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib XCONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} XCONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" X XSUB_FILES= pkg-message XPLIST_FILES= bin/cli-msn \ X share/${PKGNAMEPREFIX}${PORTNAME}/msn.conf \ X share/${PKGNAMEPREFIX}${PORTNAME}/curl-ca-bundle.crt XPLIST_DIRS= share/${PKGNAMEPREFIX}${PORTNAME} XDATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME} X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/msn ${PREFIX}/bin/cli-msn X Xpost-install: X ${MKDIR} ${DATADIR} X ${INSTALL_DATA} ${WRKSRC}/msn.conf ${WRKSRC}/curl-ca-bundle.crt ${DATADIR} X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-cli-msn/Makefile echo c - cli-msn/files mkdir -p cli-msn/files > /dev/null 2>&1 echo x - cli-msn/files/pkg-message.in sed 's/^X//' >cli-msn/files/pkg-message.in << 'END-of-cli-msn/files/pkg-message.in' X############################################################################### X X1) Create ~/.msn directory X X # mkdir ~/.msn X X2) Copy %%DATADIR%% files to ~/.msn directory X X # cp %%DATADIR%%/* ~/.msn X X3) Modify ~/.msn/msn.conf ( user, pass, cert ) X X # MSN Login name X user 'user@domain.com' X pass 'password' X cert '/path/to/curl-ca-bundle.crt' X X4) Run cli-msn X5) Enjoy it ;) X X############################################################################### END-of-cli-msn/files/pkg-message.in echo x - cli-msn/files/patch-src_conf.c sed 's/^X//' >cli-msn/files/patch-src_conf.c << 'END-of-cli-msn/files/patch-src_conf.c' X--- src/conf.c Mon Dec 19 16:25:35 2005 X+++ src/conf.c Fri Mar 31 20:56:39 2006 X@@ -6,6 +6,7 @@ X */ X X #include <stdio.h> X+#include <stdlib.h> X #include <string.h> X #include "headers/defs.h" X #include "headers/conf.h" X@@ -15,15 +16,35 @@ X int ctr, tmp; X int flag = 0; X FILE *fp; X+ char *homedir; X char ch; X+ char home_directory[255]; X char pre[255]; /* Temp Buffer for config lines */ X char _confstr[MAX_NO_LINES][MAX_LINE_LENGTH]; /* Temp buffer for valid config lines */ X+ X+ homedir = getenv("HOME"); X+ if (homedir == NULL) X+ { X+ homedir = getenv("USER"); X+ if (homedir == NULL) X+ { X+ homedir = getenv("USERNAME"); X+ if (homedir == NULL) X+ { X+ cli_msg( stderr, "Could not find user's home directory!\n" ); X+ } X+ } X+ strcpy(home_directory,"/home/"); X+ } X+ X+ strcpy(home_directory,homedir); X+ strcat(home_directory,"/.msn/msn.conf"); X X- if ( (fp = fopen(CONF_LOCATION, "r")) != NULL ){ X+ if ( (fp = fopen(home_directory, "r")) != NULL ){ X cli_msg("Reading msn.conf...\n"); X } X else { X- cli_msg("No config file found at: %s\n", CONF_LOCATION); X+ cli_msg("No config file found at: %s\n", home_directory); X cli_msg("Continuing with command line args and defaults\n"); X return; X } END-of-cli-msn/files/patch-src_conf.c echo x - cli-msn/files/patch-src_defs.c sed 's/^X//' >cli-msn/files/patch-src_defs.c << 'END-of-cli-msn/files/patch-src_defs.c' X--- src/headers/defs.h Wed Jan 4 10:52:17 2006 X+++ src/headers/defs.h Fri Mar 31 20:29:12 2006 X@@ -1,7 +1,6 @@ X #define VERSION "CLI-MSN-2.2" X #define MAX_LINE_LENGTH 255 /* Config File line length */ X #define MAX_NO_LINES 4 /* Config File No. Lines */ X-#define CONF_LOCATION "msn.conf" /* Default locality of msn.conf */ X #define MAX_LIST_SIZE 150 X #define MAX_ACCOUNT_LEN 130 X #define MAX_NICK_LEN 130 END-of-cli-msn/files/patch-src_defs.c echo x - cli-msn/distinfo sed 's/^X//' >cli-msn/distinfo << 'END-of-cli-msn/distinfo' XMD5 (CLI-MSN-2.2.tar.gz) = 0e75a3cfb86d71acde63623169488180 XSHA256 (CLI-MSN-2.2.tar.gz) = ff46c6445ea415f41535bfb2dd8338f84fec794414a60fbe3ad5a9286742ed42 XSIZE (CLI-MSN-2.2.tar.gz) = 215672 END-of-cli-msn/distinfo exit --- cli-msn-2.2.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604010215.k312FALL073591>