From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 3 10:40:04 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ACD616A420 for ; Fri, 3 Feb 2006 10:40:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C35F243D48 for ; Fri, 3 Feb 2006 10:40:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k13Ae3oG057440 for ; Fri, 3 Feb 2006 10:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k13Ae3Zw057439; Fri, 3 Feb 2006 10:40:03 GMT (envelope-from gnats) Resent-Date: Fri, 3 Feb 2006 10:40:03 GMT Resent-Message-Id: <200602031040.k13Ae3Zw057439@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Grosbein Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7E8316A420 for ; Fri, 3 Feb 2006 10:32:10 +0000 (GMT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AD5443D75 for ; Fri, 3 Feb 2006 10:32:06 +0000 (GMT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.3/8.13.3) with ESMTP id k13AW3IR062570 for ; Fri, 3 Feb 2006 17:32:03 +0700 (KRAT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.3/8.13.3/Submit) id k13AW31u062569; Fri, 3 Feb 2006 17:32:03 +0700 (KRAT) (envelope-from eugen) Message-Id: <200602031032.k13AW31u062569@www.svzserv.kemerovo.su> Date: Fri, 3 Feb 2006 17:32:03 +0700 (KRAT) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/92763: [patch] make data directory location of ports/net-mgmt/arpwatch configurable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 10:40:04 -0000 >Number: 92763 >Category: ports >Synopsis: [patch] make data directory location of ports/net-mgmt/arpwatch configurable >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Feb 03 10:40:02 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 6.0-STABLE i386 >Organization: Svyaz-Service JSC >Environment: System: FreeBSD www.svzserv.kemerovo.su 4.11-STABLE FreeBSD 4.11-STABLE #6: Fri May 6 15:41:05 KRAST 2005 eu@www.svzserv.kemerovo.su:/home4/obj/home/src/sys/WWW i386 Really, this is independent of base system version. Developed and tested with 6.0-STABLE. >Description: ports/net-mgmt/arpwatch uses /usr/local/arpwatch for its data. That's bad for NanoBSD that keeps /usr/local read-only. >How-To-Repeat: Build NanoBSD with arpwatch from ports and boot. arpwatch complains that /usr/local is read-only file system. >Fix: The following patch makes it possible to build the package for NanoBSD in the following way: make ARPDIR=/var/arpwatch package diff -urN arpwatch.orig/Makefile arpwatch/Makefile --- arpwatch.orig/Makefile Fri Feb 3 17:18:20 2006 +++ arpwatch/Makefile Fri Feb 3 17:19:36 2006 @@ -24,6 +24,10 @@ USE_RC_SUBR= arpwatch.sh +.ifdef ARPDIR +MAKE_ARGS= ARPDIR=${ARPDIR} +.endif + post-install: if [ ! -d ${PREFIX}/arpwatch ]; then \ ${MKDIR} ${PREFIX}/arpwatch; \ diff -urN arpwatch.orig/files/patch-ab arpwatch/files/patch-ab --- arpwatch.orig/files/patch-ab Sat Aug 22 02:09:19 1998 +++ arpwatch/files/patch-ab Fri Feb 3 17:15:21 2006 @@ -1,7 +1,16 @@ ---- Makefile.in.orig Wed Jul 29 06:16:45 1998 -+++ Makefile.in Fri Aug 21 10:57:51 1998 -@@ -44,7 +44,7 @@ - CC = @CC@ +--- Makefile.in.orig Thu Jun 15 08:39:55 2000 ++++ Makefile.in Fri Feb 3 17:12:51 2006 +@@ -31,7 +31,7 @@ + # Pathname of directory to install the man page + MANDEST = @mandir@ + # Pathname of directory to install database file +-ARPDIR = $(prefix)/arpwatch ++ARPDIR ?= $(prefix)/arpwatch + + # VPATH + srcdir = @srcdir@ +@@ -45,7 +45,7 @@ + PROG = arpwatch CCOPT = @V_CCOPT@ INCLS = -I. @V_INCLS@ -DEFS = -DDEBUG @DEFS@ -DARPDIR=\"$(ARPDIR)\" -DPATH_SENDMAIL=\"$(SENDMAIL)\" @@ -9,7 +18,7 @@ # Standard CFLAGS CFLAGS = $(CCOPT) $(DEFS) $(INCLS) -@@ -109,8 +109,8 @@ +@@ -110,8 +110,8 @@ $(CC) $(CFLAGS) -o $@ zap.o intoa.o -lutil install: force >Release-Note: >Audit-Trail: >Unformatted: