diff --git a/net/bnc/Makefile b/net/bnc/Makefile new file mode 100644 index 00000000000..d14234c8b6e --- /dev/null +++ b/net/bnc/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/02/27 17:29:46 brad Exp $ + +DISTNAME= bnc2.8.4 +PKGNAME= bnc-2.8.4 +CATEGORIES= net +MASTER_SITES= http://gotbnc.com/files/ + +HOMEPAGE= http://gotbnc.com/ + +MAINTAINER= Brad Smith + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +CONFIGURE_STYLE= gnu + +post-patch: + @sed -e s#!!PREFIX!!#${PREFIX}#g \ + ${WRKSRC}/bncsetup > ${WRKSRC}/bncsetup.new + @mv ${WRKSRC}/bncsetup.new ${WRKSRC}/bncsetup + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bnc + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bnc + cd ${WRKBUILD}; ${INSTALL_PROGRAM} bnc mkpasswd ${PREFIX}/bin + cd ${WRKBUILD}; ${INSTALL_SCRIPT} bncchk bncsetup ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bnc + ${INSTALL_DATA} ${WRKSRC}/example.conf \ + ${PREFIX}/share/examples/bnc/bnc.conf.sample + +.include diff --git a/net/bnc/files/md5 b/net/bnc/files/md5 new file mode 100644 index 00000000000..6b57546162d --- /dev/null +++ b/net/bnc/files/md5 @@ -0,0 +1,3 @@ +MD5 (bnc2.8.4.tar.gz) = 15f197a4f04f2bcc7136ed635bff4afc +RMD160 (bnc2.8.4.tar.gz) = 5356df05c6e1b6c71f0cec36a2305beb1f50d551 +SHA1 (bnc2.8.4.tar.gz) = a400222af181695c80ec82224c626608c6910126 diff --git a/net/bnc/patches/patch-Makefile.in b/net/bnc/patches/patch-Makefile.in new file mode 100644 index 00000000000..d7616eab294 --- /dev/null +++ b/net/bnc/patches/patch-Makefile.in @@ -0,0 +1,18 @@ +--- Makefile.in.orig Sun Dec 31 03:19:39 2000 ++++ Makefile.in Tue Feb 27 11:50:17 2001 +@@ -1,12 +1,12 @@ + OBJS = bnc.o conf.o server.o cmds.o mtype.o + LIBS = @LIBS@ +-OPTS = -O3 ++OPTS = @CFLAGS@ + COPT = -Wall + OOPT = + STRIP = strip +-CC = gcc ++CC = @CC@ + +-ALL: bnc mkpasswd ++all: bnc mkpasswd + + mkpasswd:mkpasswd.c + ${CC} ${OPTS} ${COPT} ${LIBS} -o mkpasswd mkpasswd.c diff --git a/net/bnc/patches/patch-bncsetup b/net/bnc/patches/patch-bncsetup new file mode 100644 index 00000000000..c24c7687cd5 --- /dev/null +++ b/net/bnc/patches/patch-bncsetup @@ -0,0 +1,37 @@ +--- bncsetup.orig Tue Feb 27 11:25:23 2001 ++++ bncsetup Tue Feb 27 11:29:02 2001 +@@ -63,15 +63,8 @@ + + } + +-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" | !!PREFIX!!/bin/mkpasswd -s >> $TMPFILE + CRCYS=$(cat $TMPFILE | grep '\$' | tail -1 ) + + +@@ -201,13 +194,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" | !!PREFIX!!/bin/mkpasswd -s) ++ BNCPASS="+"$(echo "$BNCPASS" | !!PREFIX!!/bin/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 diff --git a/net/bnc/pkg/COMMENT b/net/bnc/pkg/COMMENT new file mode 100644 index 00000000000..388fe8c638a --- /dev/null +++ b/net/bnc/pkg/COMMENT @@ -0,0 +1 @@ +simple IRC relay proxy with support for virtual hosting diff --git a/net/bnc/pkg/DESCR b/net/bnc/pkg/DESCR new file mode 100644 index 00000000000..0c4b9d0e33e --- /dev/null +++ b/net/bnc/pkg/DESCR @@ -0,0 +1,3 @@ +IRC Proxy Daemon that supports virtual hosting. + +WWW: ${HOMEPAGE} diff --git a/net/bnc/pkg/PLIST b/net/bnc/pkg/PLIST new file mode 100644 index 00000000000..372fc5dc817 --- /dev/null +++ b/net/bnc/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/27 17:29:48 brad Exp $ +bin/bnc +bin/bncchk +bin/bncsetup +bin/mkpasswd +share/doc/bnc/README +share/examples/bnc/bnc.conf.sample +@dirrm share/doc/bnc +@dirrm share/examples/bnc