Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2013 04:28:03 +0000 (UTC)
From:      Thomas Abthorpe <tabthorpe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332807 - head/net-mgmt/arpwatch
Message-ID:  <201311050428.rA54S3gp093513@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tabthorpe
Date: Tue Nov  5 04:28:02 2013
New Revision: 332807
URL: http://svnweb.freebsd.org/changeset/ports/332807

Log:
  - Add stage support
  - Reassign to the heap

Modified:
  head/net-mgmt/arpwatch/Makefile

Modified: head/net-mgmt/arpwatch/Makefile
==============================================================================
--- head/net-mgmt/arpwatch/Makefile	Tue Nov  5 04:26:15 2013	(r332806)
+++ head/net-mgmt/arpwatch/Makefile	Tue Nov  5 04:28:02 2013	(r332807)
@@ -10,7 +10,7 @@ MASTER_SITES=	ftp://ftp.ee.lbl.gov/ \
 MASTER_SITE_SUBDIR=	distfiles
 DISTNAME=	${PORTNAME}-${PORTVERSION:C/\.([^\.]*)$/\1/}
 
-MAINTAINER=	tabthorpe@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Monitor arp & rarp requests
 
 
@@ -27,20 +27,19 @@ USE_RC_SUBR=	arpwatch
 MAKE_ARGS=	ARPDIR=${ARPDIR}
 .endif
 
-NO_STAGE=	yes
 post-install:
-	if [ ! -d ${PREFIX}/arpwatch ]; then				\
-		${MKDIR} ${PREFIX}/arpwatch;				\
-		${CHMOD} 755 ${PREFIX}/arpwatch;			\
-		${CHOWN} root:operator ${PREFIX}/arpwatch;		\
+	if [ ! -d ${STAGEDIR}${PREFIX}/arpwatch ]; then				\
+		${MKDIR} ${STAGEDIR}${PREFIX}/arpwatch;				\
+		${CHMOD} 755 ${STAGEDIR}${PREFIX}/arpwatch;			\
+		${CHOWN} root:operator ${STAGEDIR}${PREFIX}/arpwatch;		\
 	fi
-	${TOUCH} ${PREFIX}/arpwatch/arp.dat
-	${CHMOD} 644 ${PREFIX}/arpwatch/arp.dat
+	${TOUCH} ${STAGEDIR}${PREFIX}/arpwatch/arp.dat
+	${CHMOD} 644 ${STAGEDIR}${PREFIX}/arpwatch/arp.dat
 	for files in ethercodes.dat d.awk duplicates.awk euppertolower.awk e.awk p.awk; do \
-		${INSTALL_DATA} ${WRKSRC}/$$files ${PREFIX}/arpwatch;	\
+		${INSTALL_DATA} ${WRKSRC}/$$files ${STAGEDIR}${PREFIX}/arpwatch;	\
 	done
-	${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
-	${INSTALL_SCRIPT} ${WRKSRC}/massagevendor ${PREFIX}/arpwatch
+	${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${STAGEDIR}${PREFIX}/arpwatch
+	${INSTALL_SCRIPT} ${WRKSRC}/massagevendor ${STAGEDIR}${PREFIX}/arpwatch
 
 	@${CAT} ${PKGMESSAGE}
 



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