Subject: pkg/21644: Updated package chat/dircproxy to 1.0.5 + USE_PKGINSTALL
To: None <gnats-bugs@gnats.netbsd.org>
From: None <juan@xtraeme.unixbsd.org>
List: netbsd-bugs
Date: 05/22/2003 17:32:38
>Number:         21644
>Category:       pkg
>Synopsis:       Updated package chat/dircproxy to 1.0.5 + USE_PKGINSTALL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 22 15:34:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Juan RP
>Release:        NetBSD 1.6T
>Organization:
Juan RP		jrp@hispabsd.org
--
>Environment:
System: NetBSD Nocturno 1.6T NetBSD 1.6T (Nocturno) #3: Mon May 19 23:19:23 CEST 2003 juan@Nocturno:/home/juan/release/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:

Dircproxy 1.0.5 is the latest stable version of this package.

Changes:

Version 1.0.5 - Thu Nov 21 14:15:00 GMT 2002

        * Default value of 'refuse_modes' config directive changed from
          "+r" to "".

Version 1.0.4 - Mon Sep  9 13:45:00 BST 2002

        * Just bug fixes.  No changes to worry about.

Version 1.0.3 - Fri Feb  8 17:45:00 GMT 2002

        * New 'pid_file', 'allow_users' and 'allow_kill' config
          directives.
        * New -p command line parameter (adjusts pid_file).
        * Included contrib scripts, cronchk.sh and privmsg-log.pl

Version 1.0.2 - Tue Jan  1 18:15:00 GMT 2001

        * New 'server_keepalive' config directive.

--

Now uses USE_PKGINSTALL and has a script to start/stop dircproxy.
Also install the documentation into the right PATH. 
The MESSAGE file is not needed anymore.

>How-To-Repeat:
>Fix:


diff -buNr dircproxy/MESSAGE dircproxy.new/MESSAGE
--- dircproxy/MESSAGE	2001-11-11 07:17:26.000000000 +0100
+++ dircproxy.new/MESSAGE	1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.2 2001/11/11 06:17:26 hubertf Exp $
-
-Example configuration is in ${PREFIX}/share/dircproxy/dircproxyrc.
-
-===========================================================================
diff -buNr dircproxy/Makefile dircproxy.new/Makefile
--- dircproxy/Makefile	2002-10-30 11:24:57.000000000 +0100
+++ dircproxy.new/Makefile	2003-05-22 17:15:38.000000000 +0200
@@ -1,13 +1,39 @@
 # $NetBSD: Makefile,v 1.2 2002/10/30 10:24:57 kleink Exp $
 
-DISTNAME=	dircproxy-1.0.1
+DISTNAME=	dircproxy-1.0.5
 CATEGORIES=	chat
-MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=dircproxy/}
+MASTER_SITES=   http://www.dircproxy.net/download/stable/
 
 MAINTAINER=     sb125499@ohiou.edu
 HOMEPAGE=	http://www.dircproxy.net/
 COMMENT=	detachable internet relay chat proxy server
 
 GNU_CONFIGURE=	YES
+USE_PERL5=	build
+USE_PKGINSTALL=	YES
+
+REPLACE_PERL=	${WRKSRC}/contrib/log.pl \
+	      	${WRKSRC}/contrib/privmsg.pl
+
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+
+RCD_SCRIPTS=	dircproxy
+
+DOCDIR=		${PREFIX}/share/doc/dircproxy
+EGDIR=		${PREFIX}/share/examples/dircproxy
+CONF_FILES=	${EGDIR}/dircproxy.conf.default ${PKG_SYSCONFDIR}/dircproxy.conf
+
+do-install:	
+	${INSTALL_DATA_DIR} ${DOCDIR}
+	${INSTALL_DATA_DIR} ${EGDIR}
+	${INSTALL_DATA_DIR} ${PREFIX}/share/dircproxy
+	${INSTALL_DATA} ${WRKSRC}/conf/dircproxyrc \
+		${EGDIR}/dircproxy.conf.default
+	cd ${WRKSRC} && ${INSTALL_DATA} README* INSTALL FAQ PROTOCOL ${DOCDIR}
+	cd ${WRKSRC}/doc && ${INSTALL_MAN} dircproxy.1 dircproxy-crypt.1 \
+		${PREFIX}/man/man1
+	${INSTALL_PROGRAM} ${WRKSRC}/src/dircproxy ${PREFIX}/sbin
+	cd ${WRKSRC}/contrib && ${INSTALL_SCRIPT} log.pl privmsg-log.pl \
+		cronchk.sh ${PREFIX}/share/dircproxy
 
 .include "../../mk/bsd.pkg.mk"
diff -buNr dircproxy/PLIST dircproxy.new/PLIST
--- dircproxy/PLIST	2001-10-31 21:06:20.000000000 +0100
+++ dircproxy.new/PLIST	2003-05-22 17:21:10.000000000 +0200
@@ -1,8 +1,18 @@
 @comment $NetBSD: PLIST,v 1.1 2001/10/31 20:06:20 zuntum Exp $
-bin/dircproxy
-bin/dircproxy-crypt
-man/man1/dircproxy.1
+etc/rc.d/dircproxy
 man/man1/dircproxy-crypt.1
-share/dircproxy/dircproxyrc
+man/man1/dircproxy.1
+sbin/dircproxy
+share/dircproxy/cronchk.sh
 share/dircproxy/log.pl
+share/dircproxy/privmsg-log.pl
+share/doc/dircproxy/FAQ
+share/doc/dircproxy/INSTALL
+share/doc/dircproxy/PROTOCOL
+share/doc/dircproxy/README
+share/doc/dircproxy/README.dcc-via-ssh
+share/doc/dircproxy/README.inetd
+share/examples/dircproxy/dircproxy.conf.default
+@dirrm share/examples/dircproxy
+@dirrm share/doc/dircproxy
 @dirrm share/dircproxy
diff -buNr dircproxy/distinfo dircproxy.new/distinfo
--- dircproxy/distinfo	2001-10-15 17:16:23.000000000 +0200
+++ dircproxy.new/distinfo	2003-05-22 16:42:17.000000000 +0200
@@ -1,4 +1,4 @@
 $NetBSD: distinfo,v 1.1.1.1 2001/10/15 15:16:23 agc Exp $
 
-SHA1 (dircproxy-1.0.1.tar.gz) = bb285c32172d436d5e29595e843dfccfe9eaa069
-Size (dircproxy-1.0.1.tar.gz) = 204509 bytes
+SHA1 (dircproxy-1.0.5.tar.gz) = eaf159d2a1303f82e079940b381c0e71b9b90c28
+Size (dircproxy-1.0.5.tar.gz) = 217965 bytes
diff -buNr dircproxy/files/dircproxy.sh dircproxy.new/files/dircproxy.sh
--- dircproxy/files/dircproxy.sh	1970-01-01 01:00:00.000000000 +0100
+++ dircproxy.new/files/dircproxy.sh	2003-05-22 17:06:43.000000000 +0200
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $NetBSD$
+#
+
+# PROVIDE: dircproxy
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="dircproxy"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+command_args="-f \$required_files"
+pidfile="/var/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/$name.conf"
+
+load_rc_config $name
+run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted: