ports/105597: [patch] make ports/net-mgmt/ng_ipacct NanoBSD-friendly
Eugene Grosbein
eugen at kuzbass.ru
Thu Nov 16 06:20:04 UTC 2006
>Number: 105597
>Category: ports
>Synopsis: [patch] make ports/net-mgmt/ng_ipacct NanoBSD-friendly
>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: Thu Nov 16 06:20:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Eugene Grosbein
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
Svyaz Service JSC
>Environment:
System: FreeBSD kost.svzserv.kemerovo.su 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #13: Wed Nov 15 02:03:32 KRAT 2006 root at kost.svzserv.kemerovo.su:/usr/obj/usr/src/sys/KOST i386
>Description:
While building NanoBSD image it is suitable to use
prepackaged software and install packages to Nano's chroot area
using just simple command like 'cd Pkg; pkg_add -F *'
However, ng_ipacct port refuses to 'make package'
and if we try to use 'pkg_create -b' we obtain a package
that cannot be installed with pkg_add later because
pkg_add first unpacks package to temporary area and then
moves files to their place; pkg-plist of ng_ipacct
contains a record like '/boot/kernel/ng_ipacct.ko',
its leading '/' breaks this mechanics.
>How-To-Repeat:
cd /usr/ports/net-mgmt/ng_ipacct
make install
pkg_create -b ng_ipacct-20050731_2
make deinstall
pkg_add -v ng_ipacct-20050731_2.tbz
>Fix:
Lets make it possible to 'make package' when caller
known what he is doing and lets not break later pkg_add:
--- Makefile.orig Fri Sep 15 08:32:10 2006
+++ Makefile Thu Nov 16 13:00:55 2006
@@ -15,11 +15,13 @@
MAINTAINER= skv at FreeBSD.org
COMMENT= Netgraph IP accounting
+.ifndef WANT_PACKAGE
NO_PACKAGE= "Depends on kernel"
+.endif
OPTIONS= MEM_ZONE "Use UMA zone allocator (5.x only)" off
-PLIST_SUB+= KMODDIR=${KMODDIR}
+PLIST_SUB+= KMODDIR=${KMODDIR:S/^\///}
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV= BINDIR="${PREFIX}/sbin"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list