Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2014 19:38:45 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r354359 - head/japanese/hns
Message-ID:  <201405171938.s4HJcjdS039852@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat May 17 19:38:44 2014
New Revision: 354359
URL: http://svnweb.freebsd.org/changeset/ports/354359
QAT: https://qat.redports.org/buildarchive/r354359/

Log:
  - Add staging support
  - Switch to PLIST_FILES, PORTDATA

Deleted:
  head/japanese/hns/pkg-plist
Modified:
  head/japanese/hns/Makefile

Modified: head/japanese/hns/Makefile
==============================================================================
--- head/japanese/hns/Makefile	Sat May 17 19:34:49 2014	(r354358)
+++ head/japanese/hns/Makefile	Sat May 17 19:38:44 2014	(r354359)
@@ -13,21 +13,14 @@ COMMENT=	Hyper NIKKI System, a CGI syste
 USES=		perl5
 NO_BUILD=	yes
 
-NO_STAGE=	yes
-do-install:
-	@if [ -d ${DATADIR} ]; then ${RM} -rf ${DATADIR}; fi
-	${MKDIR} ${DATADIR}
-	${CP} -pR ${WRKSRC}/ ${DATADIR}
-	${CHOWN} -R 0:0 ${DATADIR}
-	${INSTALL_SCRIPT} ${WRKDIR}/hns-setup ${PREFIX}/bin/hns-setup
-	${INSTALL_SCRIPT} ${WRKSRC}/contrib/todayhns/todayhns ${PREFIX}/bin/todayhns
+PLIST_FILES=	bin/hns-setup bin/todayhns
+PORTDATA=	*
 
-post-install:
-	@cd ${WRKSRC} && ${FIND} . -type f -o -type l | \
-		${SED} 's,^\.,share/${PORTNAME},' | ${SORT} >> ${TMPPLIST}
-	@cd ${WRKSRC} && ${FIND} . -type d | \
-		${SED} 's,^\.,@dirrm share/${PORTNAME},' | ${SORT} -r \
-			>> ${TMPPLIST}
-	@${CAT} ${PKGMESSAGE}
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${CP} -pR ${WRKSRC}/ ${STAGEDIR}${DATADIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/hns-setup ${STAGEDIR}${PREFIX}/bin/hns-setup
+	${INSTALL_SCRIPT} ${WRKSRC}/contrib/todayhns/todayhns \
+		${STAGEDIR}${PREFIX}/bin/todayhns
 
 .include <bsd.port.mk>



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