pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import bip-0.8.9 as wip/bip.



Module Name:	pkgsrc-wip
Committed By:	Petar Bogdanovic <petar%smokva.net@localhost>
Pushed By:	petar
Date:		Sat Oct 17 22:29:48 2015 +0200
Changeset:	d2a23c18031e731098510390fda1bd2db6d1a2ac

Added Files:
	bip/DESCR
	bip/Makefile
	bip/PLIST
	bip/distinfo
	bip/options.mk
	bip/patches/patch-Makefile.in
	bip/patches/patch-src_util.c

Log Message:
Import bip-0.8.9 as wip/bip.

Bip is an IRC proxy, which means it keeps connected to your preferred
IRC servers, can store the logs for you, and even send them back to your
IRC client(s) upon connection.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d2a23c18031e731098510390fda1bd2db6d1a2ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 bip/DESCR                     |  3 +++
 bip/Makefile                  | 26 ++++++++++++++++++++++++++
 bip/PLIST                     |  8 ++++++++
 bip/distinfo                  |  7 +++++++
 bip/options.mk                | 14 ++++++++++++++
 bip/patches/patch-Makefile.in | 15 +++++++++++++++
 bip/patches/patch-src_util.c  | 38 ++++++++++++++++++++++++++++++++++++++
 7 files changed, 111 insertions(+)

diffs:
diff --git a/bip/DESCR b/bip/DESCR
new file mode 100644
index 0000000..c69a559
--- /dev/null
+++ b/bip/DESCR
@@ -0,0 +1,3 @@
+Bip is an IRC proxy, which means it keeps connected to your preferred
+IRC servers, can store the logs for you, and even send them back to your
+IRC client(s) upon connection.
diff --git a/bip/Makefile b/bip/Makefile
new file mode 100644
index 0000000..d4cd02c
--- /dev/null
+++ b/bip/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME=		bip-0.8.9
+CATEGORIES=		chat
+MASTER_SITES=		https://projects.duckcorp.org/attachments/download/61/
+
+OWNER=			petar%smokva.net@localhost
+HOMEPAGE=		https://bip.milkypond.org/
+COMMENT=		IRC proxy
+LICENSE=		gnu-gpl-v2
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_LANGUAGES=		c
+
+HAS_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--prefix=${PREFIX}
+CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
+
+.include "options.mk"
+
+EGDIR=			${PREFIX}/share/examples/bip
+MAKE_ENV+=		PKGSRC_BIP_EGDIR=${EGDIR}
+INSTALLATION_DIRS+=	${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/bip/PLIST b/bip/PLIST
new file mode 100644
index 0000000..4e0d04b
--- /dev/null
+++ b/bip/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+bin/bip
+bin/bipmkpw
+man/man1/bip.1
+man/man1/bipmkpw.1
+man/man5/bip.conf.5
+share/examples/bip/bip.conf
+share/examples/bip/bip.vim
diff --git a/bip/distinfo b/bip/distinfo
new file mode 100644
index 0000000..43cf04b
--- /dev/null
+++ b/bip/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (bip-0.8.9.tar.gz) = 6c6828dde0ec9c41237bac42a679aa8237bdeffe
+RMD160 (bip-0.8.9.tar.gz) = 709f56d6b09cbd28f64e8614a899bfdd3e18fad2
+Size (bip-0.8.9.tar.gz) = 256711 bytes
+SHA1 (patch-Makefile.in) = 1ae208c3f19b6519636d6c63a7fff576b1e06143
+SHA1 (patch-src_util.c) = 7d0d2516cb21e0b2b8fed76e1e78b0d16aac0c3f
diff --git a/bip/options.mk b/bip/options.mk
new file mode 100644
index 0000000..d67e328
--- /dev/null
+++ b/bip/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.bip
+PKG_SUPPORTED_OPTIONS=		ssl
+PKG_SUGGESTED_OPTIONS=		ssl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mssl)
+.include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-openssl=${BUILDLINK_PREFIX.openssl}
+.else
+CONFIGURE_ARGS+=	--without-openssl
+.endif
diff --git a/bip/patches/patch-Makefile.in b/bip/patches/patch-Makefile.in
new file mode 100644
index 0000000..a34dc3b
--- /dev/null
+++ b/bip/patches/patch-Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Use pkgsrc EGDIR.
+
+--- Makefile.in.orig	2013-10-19 13:58:07.000000000 +0000
++++ Makefile.in
+@@ -341,7 +341,7 @@ AM_YFLAGS = -d
+ BUILT_SOURCES = src/conf.c src/conf.h src/lex.c
+ AM_CFLAGS = -Wall -Wextra -Werror
+ dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1
+-examplesdir = $(prefix)/share/doc/bip/examples/
++examplesdir = $(PKGSRC_BIP_EGDIR)
+ dist_examples_DATA = samples/bip.conf samples/bip.vim
+ EXTRA_DIST = \
+ 	BUGS \
diff --git a/bip/patches/patch-src_util.c b/bip/patches/patch-src_util.c
new file mode 100644
index 0000000..4b0b738
--- /dev/null
+++ b/bip/patches/patch-src_util.c
@@ -0,0 +1,38 @@
+$NetBSD$
+
+Fix ctype(3) usage.
+
+--- src/util.c.orig	2012-01-25 10:23:16.000000000 +0000
++++ src/util.c
+@@ -88,11 +88,11 @@ char *bip_strdup(const char *str)
+ int is_valid_nick(char *str)
+ {
+ 	char *tmp;
+-	if (!str || !isalpha(*str))
++	if (!str || !isalpha(*(int*)str))
+ 		return 0;
+ 
+ 	tmp = str;
+-	while (*tmp != '\0' && (isalnum(*tmp) || *tmp == '-' || *tmp == '[' ||
++	while (*tmp != '\0' && (isalnum(*(int*)tmp) || *tmp == '-' || *tmp == '[' ||
+ 			*tmp == ']' || *tmp == '\\' || *tmp == '`' ||
+ 			*tmp == '^' || *tmp == '{' || *tmp == '}' ||
+ 			*tmp == '|' || *tmp == '_' ))
+@@ -559,7 +559,7 @@ static unsigned char hash_func(const cha
+ 	unsigned long hash = 5381; /* 5381 & 0xff makes more sense */
+ 
+ 	while ((c = *pkey++))
+-		hash = ((hash << 5) + hash) ^ toupper(c);
++		hash = ((hash << 5) + hash) ^ toupper((int)c);
+ 	return (unsigned char)hash;
+ }
+ 
+@@ -738,7 +738,7 @@ char *bip_strmaydup(char *s)
+ void strucase(char *s)
+ {
+ 	while (*s) {
+-		*s = toupper(*s);
++		*s = toupper(*(int*)s);
+ 		s++;
+ 	}
+ }


Home | Main Index | Thread Index | Old Index