aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-08-03 09:15:42 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-08-03 09:15:42 +0000
commit9b99cd50418662abb6e7b27207ed751aa1cdb230 (patch)
tree9462fab72e6797ecad14f122df00c2e400356a88
parent700f83ad9f05be3d5225e194507ecd9f7bd60929 (diff)
- Add staging support
- Convert to new options framework - Switch to PLIST_FILES
Notes
Notes: svn path=/head/; revision=363861
-rw-r--r--sysutils/rsyncmanager/Makefile20
-rw-r--r--sysutils/rsyncmanager/pkg-message1
-rw-r--r--sysutils/rsyncmanager/pkg-plist2
3 files changed, 8 insertions, 15 deletions
diff --git a/sysutils/rsyncmanager/Makefile b/sysutils/rsyncmanager/Makefile
index 0fa648cca55c..b1e1f2e146a2 100644
--- a/sysutils/rsyncmanager/Makefile
+++ b/sysutils/rsyncmanager/Makefile
@@ -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>
diff --git a/sysutils/rsyncmanager/pkg-message b/sysutils/rsyncmanager/pkg-message
index a8232c8e2e37..677591e20248 100644
--- a/sysutils/rsyncmanager/pkg-message
+++ b/sysutils/rsyncmanager/pkg-message
@@ -7,4 +7,3 @@ To use rsyncmanager, be sure to include
rsyncmanager_enable="YES"
in rc.conf
-
diff --git a/sysutils/rsyncmanager/pkg-plist b/sysutils/rsyncmanager/pkg-plist
deleted file mode 100644
index 5b310d9abe22..000000000000
--- a/sysutils/rsyncmanager/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-bin/rsyncmanager.rb
-etc/rsyncmanager.xml.sample