Date: Thu, 16 Nov 2006 13:12:14 +0700 (KRAT) From: Eugene Grosbein <eugen@kuzbass.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: skv@FreeBSD.org Subject: ports/105597: [patch] make ports/net-mgmt/ng_ipacct NanoBSD-friendly Message-ID: <200611160612.kAG6CE51018855@kost.svzserv.kemerovo.su> Resent-Message-ID: <200611160620.kAG6K3n1002323@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611160612.kAG6CE51018855>