diff options
author | vsevolod <vsevolod@FreeBSD.org> | 2005-10-05 23:47:12 +0800 |
---|---|---|
committer | vsevolod <vsevolod@FreeBSD.org> | 2005-10-05 23:47:12 +0800 |
commit | ce774bf58e68b48a29b0bb12046fdb8ba51f8696 (patch) | |
tree | d51195e553f3f93f41c01b3ad614f6a698495556 /net-im | |
parent | 9dc82945b631ba5598320edca194f43a26059d26 (diff) | |
download | freebsd-ports-gnome-ce774bf58e68b48a29b0bb12046fdb8ba51f8696.tar.gz freebsd-ports-gnome-ce774bf58e68b48a29b0bb12046fdb8ba51f8696.tar.zst freebsd-ports-gnome-ce774bf58e68b48a29b0bb12046fdb8ba51f8696.zip |
Add net/mcabber - a small jabber console client.
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/mcabber/Makefile | 32 | ||||
-rw-r--r-- | net-im/mcabber/distinfo | 2 | ||||
-rw-r--r-- | net-im/mcabber/files/patch-src_Makefile.in | 11 | ||||
-rw-r--r-- | net-im/mcabber/files/patch-src_main.c | 30 | ||||
-rw-r--r-- | net-im/mcabber/pkg-descr | 16 |
5 files changed, 91 insertions, 0 deletions
diff --git a/net-im/mcabber/Makefile b/net-im/mcabber/Makefile new file mode 100644 index 000000000000..d1bd9e565ebf --- /dev/null +++ b/net-im/mcabber/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: mcabber +# Date created: 2005-10-05 +# Whom: vsevolod +# +# $FreeBSD$ +# + +PORTNAME= mcabber +PORTVERSION= 0.6.8 +CATEGORIES= net +MASTER_SITES= http://www.lilotux.net/~mikael/mcabber/files/ + +MAINTAINER= vsevolod@FreeBSD.org +COMMENT= Small Jabber console client + +USE_BZIP2= yes +GNU_CONFIGURE= yes +USE_OPENSSL= yes +USE_ICONV= yes +USE_GETTEXT= yes +USE_GNOME= glib20 + +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +MAN1= mcabber.1 +PLIST_FILES= bin/mcabber %%EXAMPLESDIR%%/mcabberrc +PLIST_DIRS= %%EXAMPLESDIR%% + +post-install: + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/mcabberrc.example ${EXAMPLESDIR}/mcabberrc + +.include <bsd.port.mk> diff --git a/net-im/mcabber/distinfo b/net-im/mcabber/distinfo new file mode 100644 index 000000000000..3082d6f37792 --- /dev/null +++ b/net-im/mcabber/distinfo @@ -0,0 +1,2 @@ +MD5 (mcabber-0.6.8.tar.bz2) = e0c9333ec0ab17b57b16980832989849 +SIZE (mcabber-0.6.8.tar.bz2) = 301041 diff --git a/net-im/mcabber/files/patch-src_Makefile.in b/net-im/mcabber/files/patch-src_Makefile.in new file mode 100644 index 000000000000..63a19d8ae7b6 --- /dev/null +++ b/net-im/mcabber/files/patch-src_Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Wed Oct 5 19:02:57 2005 ++++ src/Makefile.in Wed Oct 5 19:03:19 2005 +@@ -162,7 +162,7 @@ + settings.c settings.h hooks.c hooks.h \ + histolog.c histolog.h utils.c utils.h list.h + +-LDADD = -lglib-2.0 -lncurses -lpanel \ ++LDADD = $(GLIB_LIBS) -lncurses -lpanel \ + ../libjabber/liblibjabber.a ../connwrap/libconnwrap.a + + INCLUDES = $(GLIB_CFLAGS) diff --git a/net-im/mcabber/files/patch-src_main.c b/net-im/mcabber/files/patch-src_main.c new file mode 100644 index 000000000000..ffb60cda567d --- /dev/null +++ b/net-im/mcabber/files/patch-src_main.c @@ -0,0 +1,30 @@ +--- src/main.c.orig Wed Oct 5 19:12:04 2005 ++++ src/main.c Wed Oct 5 19:17:36 2005 +@@ -143,7 +143,7 @@ + char *password, *p; + size_t passsize = 128; + struct termios orig, new; +- int nread; ++ char* nread; + + /* Turn echoing off and fail if we can't. */ + if (tcgetattr(fileno(stdin), &orig) != 0) return; +@@ -152,15 +152,15 @@ + if (tcsetattr(fileno(stdin), TCSAFLUSH, &new) != 0) return; + + /* Read the password. */ +- password = NULL; ++ password = (char *)malloc(passsize); + printf("Please enter password: "); +- nread = getline(&password, &passsize, stdin); ++ nread = fgets(password, passsize, stdin); + + /* Restore terminal. */ + tcsetattr(fileno(stdin), TCSAFLUSH, &orig); + printf("\n"); + +- if (nread == -1 || !password) return; ++ if (nread == NULL || !password) return; + + for (p = (char*)password; *p; p++) + ; diff --git a/net-im/mcabber/pkg-descr b/net-im/mcabber/pkg-descr new file mode 100644 index 000000000000..ea032191fd7e --- /dev/null +++ b/net-im/mcabber/pkg-descr @@ -0,0 +1,16 @@ +Mcabber is a small Jabber console client. + +Here are some of the features of mcabber: + o SSL support. + + o History logging: If enabled (see the CONFIGURATION FILE section), + mcabber can save discussions to history log files. + + o Commands completion: If possible, mcabber will try to complete your + command line if you hit the Tab key. + + o External actions: Some events (like receiving a message) can trig- + ger an external action, for example a shell script (you need to + enable it in your configuration file). + +WWW: http://www.lilotux.net/~mikael/mcabber/ |