Bug 170592 - Last changee of net-mgmt/ng_ipacct broke its installation
Summary: Last changee of net-mgmt/ng_ipacct broke its installation
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Doug Barton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 09:50 UTC by Eugene Grosbein
Modified: 2012-08-13 11:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein 2012-08-13 09:50:01 UTC
	SVN revision 302141 labeled
	"Move the rc.d scripts of the form *.sh.in to *.in"
	broke net-mgmt/ng_ipacct installation.

Fix: 

Unknown
How-To-Repeat: # make -dl -C /usr/ports/net-mgmt/ng_ipacct all install
true
/usr/bin/sed -e s!%%PREFIX%%!/usr/local!g -e s!%%LOCALBASE%%!/usr/local!g -e s!%%DATADIR%%!/usr/local/share/ng_ipacct!g -e s!%%DOCSDIR%%!/usr/local/share/doc/ng_ipacct!g -e s!%%EXAMPLESDIR%%!/usr/local/share/examples/ng_ipacct!g -e s!%%WWWDIR%%!/usr/local/www/ng_ipacct!g -e s!%%ETCDIR%%!/usr/local/etc/ng_ipacct!g -e '/^@comment /d' /usr/local/ports/net-mgmt/ng_ipacct/files/pkg-message.in > /var/tmp/usr/local/ports/net-mgmt/ng_ipacct/work/pkg-message
/usr/bin/sed -e s!%%PREFIX%%!/usr/local!g -e s!%%LOCALBASE%%!/usr/local!g -e s!%%DATADIR%%!/usr/local/share/ng_ipacct!g -e s!%%DOCSDIR%%!/usr/local/share/doc/ng_ipacct!g -e s!%%EXAMPLESDIR%%!/usr/local/share/examples/ng_ipacct!g -e s!%%WWWDIR%%!/usr/local/www/ng_ipacct!g -e s!%%ETCDIR%%!/usr/local/etc/ng_ipacct!g -e '/^@comment /d' /usr/local/ports/net-mgmt/ng_ipacct/files/ng_ipacct.in > /var/tmp/usr/local/ports/net-mgmt/ng_ipacct/work/ng_ipacct
cannot create /var/tmp/usr/local/ports/net-mgmt/ng_ipacct/work/ng_ipacct: Is a directory
*** Error code 2
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-13 09:50:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->skv

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-08-13 11:23:06 UTC
Author: dougb
Date: Mon Aug 13 10:22:57 2012
New Revision: 302462
URL: http://svn.freebsd.org/changeset/ports/302462

Log:
  Fix problem introduced in r302141. The directory for the  unpacked source
  files is unversioned, so it conflicts with the name of the rc.d script in
  WRKDIR after SUB_FILES is applied.
  
  PR:		ports/170592
  Submitted by:	Eugene Grosbein <eugen@eg.sd.rdtc.ru>

Modified:
  head/net-mgmt/ng_ipacct/Makefile

Modified: head/net-mgmt/ng_ipacct/Makefile
==============================================================================
--- head/net-mgmt/ng_ipacct/Makefile	Mon Aug 13 08:38:27 2012	(r302461)
+++ head/net-mgmt/ng_ipacct/Makefile	Mon Aug 13 10:22:57 2012	(r302462)
@@ -25,7 +25,7 @@ OPTIONS=	MEM_ZONE "Use UMA zone allocato
 KMODDIR=	/boot/modules
 PLIST_SUB+=	KMODDIR=${KMODDIR:S!^/!!}
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 MAKE_ENV=	BINDIR="${PREFIX}/sbin" KMODDIR=${KMODDIR}
 
 MAN8=		ipacctctl.8
@@ -41,6 +41,9 @@ SUB_FILES=	pkg-message
 CFLAGS+=	-DMEM_USE_ZONE
 .endif
 
+post-extract:
+	@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
+
 post-install:
 	@${MKDIR} ${PREFIX}/include/netgraph
 	${INSTALL_DATA} ${WRKSRC}/ng_ipacct/ng_ipacct.h ${PREFIX}/include/netgraph
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Doug Barton freebsd_committer freebsd_triage 2012-08-13 11:23:11 UTC
State Changed
From-To: open->closed


Fixed in r302462. 


Comment 4 Doug Barton freebsd_committer freebsd_triage 2012-08-13 11:23:11 UTC
Responsible Changed
From-To: skv->dougb


My bug, my fix.