svn commit: r354359 - head/japanese/hns

Pawel Pekala pawel at FreeBSD.org
Sat May 17 19:38:45 UTC 2014


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,^\., at 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>


More information about the svn-ports-all mailing list