Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2006 17:32:03 +0700 (KRAT)
From:      Eugene Grosbein <eugen@kuzbass.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92763: [patch] make data directory location of ports/net-mgmt/arpwatch configurable
Message-ID:  <200602031032.k13AW31u062569@www.svzserv.kemerovo.su>
Resent-Message-ID: <200602031040.k13Ae3Zw057439@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602031032.k13AW31u062569>