Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2014 09:15:42 +0000 (UTC)
From:      Pawel Pekala <pawel@svn.freebsd.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363861 - head/sysutils/rsyncmanager
Message-ID:  <53ddfdbe.6aca.30855cdd@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sun Aug  3 09:15:42 2014
New Revision: 363861
URL: http://svnweb.freebsd.org/changeset/ports/363861
QAT: https://qat.redports.org/buildarchive/r363861/

Log:
  - Add staging support
  - Convert to new options framework
  - Switch to PLIST_FILES

Deleted:
  head/sysutils/rsyncmanager/pkg-plist
Modified:
  head/sysutils/rsyncmanager/Makefile
  head/sysutils/rsyncmanager/pkg-message

Modified: head/sysutils/rsyncmanager/Makefile
==============================================================================
--- head/sysutils/rsyncmanager/Makefile	Sun Aug  3 09:03:15 2014	(r363860)
+++ head/sysutils/rsyncmanager/Makefile	Sun Aug  3 09:15:42 2014	(r363861)
@@ -16,26 +16,22 @@ USE_RUBY_FEATURES=	ruby18
 
 NO_BUILD=	yes
 
+PLIST_FILES=	bin/rsyncmanager.rb etc/rsyncmanager.xml.sample
 PORTDOCS=	README
 
 USE_RC_SUBR=	${PORTNAME}
 SUB_LIST=	RUBY_WITHOUT_SUFFIX="${RUBY_WITHOUT_SUFFIX}"
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 post-extract:
 	@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}.rb ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/documentation/${PORTNAME}.xml ${PREFIX}/etc/${PORTNAME}.xml.sample
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for docfile in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/documentation/${docfile} ${DOCSDIR}
-.endfor
-.endif
-
-post-install:
-	@${CAT} ${PKGMESSAGE}
+	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}.rb ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/documentation/${PORTNAME}.xml \
+		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.xml.sample
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/documentation/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/sysutils/rsyncmanager/pkg-message
==============================================================================
--- head/sysutils/rsyncmanager/pkg-message	Sun Aug  3 09:03:15 2014	(r363860)
+++ head/sysutils/rsyncmanager/pkg-message	Sun Aug  3 09:15:42 2014	(r363861)
@@ -7,4 +7,3 @@ To use rsyncmanager, be sure to include
 rsyncmanager_enable="YES"
 
 in rc.conf
-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53ddfdbe.6aca.30855cdd>