[Midnightbsd-cvs] mports: mports/irc: Add bnc.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Jan 21 16:09:04 EST 2008


Log Message:
-----------
Add bnc.

Modified Files:
--------------
    mports/irc:
        Makefile (r1.8 -> r1.9)

Added Files:
-----------
    mports/irc/bnc:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/irc/bnc/files:
        patch-aa (r1.1)
        patch-ab (r1.1)

-------------- next part --------------
--- /dev/null
+++ irc/bnc/pkg-descr
@@ -0,0 +1,3 @@
+IRC Proxy Daemon that supports virtual hosting.
+
+Instructions in work/bnc*/README.
--- /dev/null
+++ irc/bnc/pkg-plist
@@ -0,0 +1,5 @@
+bin/bnc
+bin/bncchk
+bin/bncsetup
+bin/mkpasswd
+etc/bnc.conf.sample
--- /dev/null
+++ irc/bnc/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for:   bnc
+# Date created:        January 21, 2008
+# Whom:                Lucas Holt <luke at midnightbsd.org>
+#
+# $MidnightBSD: mports/irc/bnc/Makefile,v 1.1 2008/01/21 21:09:02 laffer1 Exp $
+#
+
+PORTNAME=	bnc
+PORTVERSION=	2.9.4
+CATEGORIES=	irc
+MASTER_SITES=	http://www.gotbnc.com/files/
+DISTNAME=	${PORTNAME}${PORTVERSION}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	A simple IRC relay proxy with support for virtual hosting
+LICENSE=	gpl2
+
+GNU_CONFIGURE=	YES
+
+post-patch:
+	${SED} 's, at PREFIX@,${PREFIX},g' ${WRKSRC}/bncsetup > ${WRKSRC}/bncsetup.new
+	${MV} ${WRKSRC}/bncsetup.new ${WRKSRC}/bncsetup
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/bnc ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/bncchk ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/bncsetup ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/mkpasswd ${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/example.conf ${PREFIX}/etc/bnc.conf.sample
+
+.include <bsd.port.mk>
--- /dev/null
+++ irc/bnc/distinfo
@@ -0,0 +1,3 @@
+MD5 (bnc2.9.4.tar.gz) = 190486d2346415e30f6381377e82eb3b
+SHA256 (bnc2.9.4.tar.gz) = af0e95c97feb1f2d231c570a658be8e42a91aafab6e6dfeb04b7e9fcc360b74b
+SIZE (bnc2.9.4.tar.gz) = 76896
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/irc/Makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -L irc/Makefile -L irc/Makefile -u -r1.8 -r1.9
--- irc/Makefile
+++ irc/Makefile
@@ -5,6 +5,7 @@
 
     SUBDIR += bitchx
     SUBDIR += bitlbee
+    SUBDIR += bnc
     SUBDIR += irssi
     SUBDIR += irssi-scripts
     SUBDIR += ngircd
--- /dev/null
+++ irc/bnc/files/patch-ab
@@ -0,0 +1,37 @@
+--- bncsetup.orig	Wed Mar 17 07:31:19 1999
++++ bncsetup	Thu Mar 18 01:51:47 1999
+@@ -12,15 +12,9 @@
+   exit $1
+ }
+ 
+-if ! [ -e ./mkpasswd ]
+-then
+-  echo "You need to Make the package before you can use this script"
+-  echo "(required ./mkpasswd)"
+-  bsclean 0
+-fi
+ 
+ echo "BAD\$" > $TMPFILE
+-echo "Test" | ./mkpasswd -s >> $TMPFILE
++echo "Test" | mkpasswd -s >> $TMPFILE
+ CRCYS=$(cat $TMPFILE | grep '\$' | tail -1 )
+ 
+ 
+@@ -149,13 +143,13 @@
+ 
+ if [ x$ERRORLEVEL = x0 ]
+ then 
+-  if [ -x ./mkpasswd ]
++  if [ -x @PREFIX@/bin/mkpasswd ]
+   then
+-    SUPERPASS="+"$(echo "$SUPERPASS" | ./mkpasswd -s)
+-    BNCPASS="+"$(echo "$BNCPASS" | ./mkpasswd -s)
++    SUPERPASS="+"$(echo "$SUPERPASS" | mkpasswd -s)
++    BNCPASS="+"$(echo "$BNCPASS" | mkpasswd -s)
+   else
+     clear
+-    echo "You have not did ./configure and make so there is no ./mkpasswd"
++    echo "You have not did ./configure and make so there is no mkpasswd"
+     echo "This program is required to produce the encryption"
+     bsclean 0
+   fi
--- /dev/null
+++ irc/bnc/files/patch-aa
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	Fri Jun 15 14:29:22 2001
++++ Makefile.in	Fri Jun 15 14:29:40 2001
+@@ -6,7 +6,7 @@
+ STRIP = strip
+ CC = gcc
+ 
+-ALL: bnc mkpasswd
++all: bnc mkpasswd
+ 
+ mkpasswd:mkpasswd.c
+ 	${CC} ${OPTS} ${COPT} ${LIBS} -o mkpasswd mkpasswd.c


More information about the Midnightbsd-cvs mailing list