From dom@phmit.demon.co.uk  Tue Nov 24 02:40:59 1998
Received: from phmit.demon.co.uk (phmit.demon.co.uk [194.222.15.209])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA04704
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 24 Nov 1998 02:40:57 -0800 (PST)
          (envelope-from dom@phmit.demon.co.uk)
Received: from voodoo.pandhm.co.uk [10.100.35.12] 
	by phmit.demon.co.uk with esmtp (Exim 1.82 #1)
	id 0ziFuk-0000vt-00; Tue, 24 Nov 1998 10:41:46 +0000
Received: from dom by voodoo.pandhm.co.uk with local (Exim 1.92 #1)
	for FreeBSD-gnats-submit@freebsd.org
	id 0ziFtV-0005aN-00; Tue, 24 Nov 1998 10:40:29 +0000
Message-Id: <E0ziFtV-0005aN-00@voodoo.pandhm.co.uk>
Date: Tue, 24 Nov 1998 10:40:29 +0000
From: Dom Mitchell <dom@phmit.demon.co.uk>
Reply-To: dom@phmit.demon.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port of npadmin
X-Send-Pr-Version: 3.2

>Number:         8839
>Category:       ports
>Synopsis:       New port of npadmin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 24 02:50:00 PST 1998
>Closed-Date:    Sun Jan 17 19:39:57 PST 1999
>Last-Modified:  Sun Jan 17 19:44:03 PST 1999
>Originator:     Dominic Mitchell
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
Palmer & Harvey McLane Ltd.
>Environment:

FreeBSD voodoo.pandhm.co.uk 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Nov 16 05:09:28 GMT 1998     root@voodoo.pandhm.co.uk:/usr/src/sys/compile/VOODOO  i386

HP Network Printers, assorted (& messy).

>Description:

This port is a tool for remote administration of network printers via
SNMP.  It's quite handy for obtaining status reports & so on.

Note: This port depends on the previous port I submitted, of GNU getopt.
However, I'm not sure that I've specified the dependency correctly (or
the invocation to say where the getopt port port is installed to
npadmin's configure script).  In other words, please scrutinize this
port closely before committing it.

>How-To-Repeat:

The usual.

>Fix:
	
Here's the port:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	npadmin
#	npadmin/Makefile
#	npadmin/files
#	npadmin/files/md5
#	npadmin/pkg
#	npadmin/pkg/COMMENT
#	npadmin/pkg/DESCR
#	npadmin/pkg/PLIST
#	npadmin/patches
#	npadmin/patches/patch-aa
#	npadmin/patches/patch-ab
#
echo c - npadmin
mkdir -p npadmin > /dev/null 2>&1
echo x - npadmin/Makefile
sed 's/^X//' >npadmin/Makefile << 'END-of-npadmin/Makefile'
X# New ports collection makefile for:	npadmin
X# Version required:     0.7
X# Date created:		13 Nov 1998
X# Whom:			Dom Mitchell <dom@myrddin.demon.co.uk>
X#
X# $Id: Makefile,v 1.3 1998/07/03 23:21:56 steve Exp $
X#
X
XDISTNAME=	npadmin-0.7
XCATEGORIES=	print
XMASTER_SITES=   ftp://ftp.penguincomputing.com/pub/prtools/
X
XMAINTAINER=     dom@myrddin.demon.co.uk
X
XBUILD_DEPENDS=	${PREFIX}/lib/getopt.a:${PORTSDIR}/devel/getopt
X
XALL_TARGET=	npadmin
X
XMAN1=		npadmin.1
X
XCPPFLAGS+=	-I${PREFIX}/include
XCXXFLAGS+=	-I${PREFIX}/include
XLDFLAGS+=	-L${PREFIX}/lib
XLIBS+=		-lgetopt
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV+=	CXXFLAGS="${CXXFLAGS}" CPPFLAGS="${CPPFLAGS}" \
X		LDFLAGS="${LDFLAGS}" LIBS="${LIBS}"
X
X.include <bsd.port.mk>
END-of-npadmin/Makefile
echo c - npadmin/files
mkdir -p npadmin/files > /dev/null 2>&1
echo x - npadmin/files/md5
sed 's/^X//' >npadmin/files/md5 << 'END-of-npadmin/files/md5'
XMD5 (npadmin-0.7.tar.gz) = 9080ad7f93ff93972412f9ed7f6a0226
END-of-npadmin/files/md5
echo c - npadmin/pkg
mkdir -p npadmin/pkg > /dev/null 2>&1
echo x - npadmin/pkg/COMMENT
sed 's/^X//' >npadmin/pkg/COMMENT << 'END-of-npadmin/pkg/COMMENT'
XAn SNMP based command line network printer management tool.
END-of-npadmin/pkg/COMMENT
echo x - npadmin/pkg/DESCR
sed 's/^X//' >npadmin/pkg/DESCR << 'END-of-npadmin/pkg/DESCR'
XAn SNMP based command line network printer management tool.
END-of-npadmin/pkg/DESCR
echo x - npadmin/pkg/PLIST
sed 's/^X//' >npadmin/pkg/PLIST << 'END-of-npadmin/pkg/PLIST'
Xbin/npadmin
END-of-npadmin/pkg/PLIST
echo c - npadmin/patches
mkdir -p npadmin/patches > /dev/null 2>&1
echo x - npadmin/patches/patch-aa
sed 's/^X//' >npadmin/patches/patch-aa << 'END-of-npadmin/patches/patch-aa'
X--- Makefile.in.orig	Sat Nov 14 00:23:27 1998
X+++ Makefile.in	Sat Nov 14 00:23:35 1998
X@@ -20,7 +20,7 @@
X CC     = @CC@
X CXX    = @CXX@
X 
X-CXXFLAGS=-g @__needs_excepthand_flag@
X+CXXFLAGS=-g @__needs_excepthand_flag@ @CPPFLAGS@
X SOURCEFILES=ber.C beroid.C berseq.C oidseq.C session.C structfill.C \
X 	    grabrequest.C npadmin.C npahelpers.C printmib.C
X 
END-of-npadmin/patches/patch-aa
echo x - npadmin/patches/patch-ab
sed 's/^X//' >npadmin/patches/patch-ab << 'END-of-npadmin/patches/patch-ab'
X--- ber.C	Mon Nov  9 19:08:05 1998
X+++ ber.C.new	Sat Nov 14 00:26:33 1998
X@@ -1,3 +1,4 @@
X+#include <sys/types.h>
X #include <stdlib.h>
X #include <stdio.h>
X #include <string.h>
END-of-npadmin/patches/patch-ab
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Jan 17 19:39:57 PST 1999 
State-Changed-Why:  
New port committed, thanks! 
>Unformatted:
