aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/sysrc
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-25 23:32:41 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-25 23:32:41 +0800
commit65f1f6c6e9a10162ed99104f0662606b2ca5fc55 (patch)
tree99261aa9ca257e10763b054c2b3ef72b26dfd836 /sysutils/sysrc
parentf44f7a088fa4e96b24e05dbbb26e77b5a3b263e3 (diff)
downloadfreebsd-ports-gnome-65f1f6c6e9a10162ed99104f0662606b2ca5fc55.tar.gz
freebsd-ports-gnome-65f1f6c6e9a10162ed99104f0662606b2ca5fc55.tar.zst
freebsd-ports-gnome-65f1f6c6e9a10162ed99104f0662606b2ca5fc55.zip
Support staging
Diffstat (limited to 'sysutils/sysrc')
-rw-r--r--sysutils/sysrc/Makefile27
-rw-r--r--sysutils/sysrc/pkg-plist8
2 files changed, 16 insertions, 19 deletions
diff --git a/sysutils/sysrc/Makefile b/sysutils/sysrc/Makefile
index 06953567f8c2..d71beb1d3dc7 100644
--- a/sysutils/sysrc/Makefile
+++ b/sysutils/sysrc/Makefile
@@ -13,25 +13,14 @@ LICENSE= BSD
NO_BUILD= yes
-MAN8= ${PORTNAME}.8
-
-PLIST_FILES= sbin/${PORTNAME} \
- share/${PORTNAME}/common.subr \
- share/${PORTNAME}/${PORTNAME}.subr \
- libexec/${PORTNAME}/include/messages.subr
-
-PLIST_DIRS= share/${PORTNAME} \
- libexec/${PORTNAME}/include \
- libexec/${PORTNAME}
-
-NO_STAGE= yes
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/
- ${MKDIR} ${PREFIX}/share/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/common.subr ${PREFIX}/share/${PORTNAME}/
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.subr ${PREFIX}/share/${PORTNAME}/
- ${MKDIR} ${PREFIX}/libexec/${PORTNAME}/include
- ${INSTALL_DATA} ${WRKSRC}/messages.subr ${PREFIX}/libexec/${PORTNAME}/include/
- ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8/
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/common.subr ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.subr ${STAGEDIR}${DATADIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/include
+ ${INSTALL_DATA} ${WRKSRC}/messages.subr \
+ ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/include
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>
diff --git a/sysutils/sysrc/pkg-plist b/sysutils/sysrc/pkg-plist
new file mode 100644
index 000000000000..feb04935f44a
--- /dev/null
+++ b/sysutils/sysrc/pkg-plist
@@ -0,0 +1,8 @@
+libexec/sysrc/include/messages.subr
+man/man8/sysrc.8.gz
+sbin/sysrc
+%%DATADIR%%/common.subr
+%%DATADIR%%/sysrc.subr
+@dirrm %%DATADIR%%
+@dirrm libexec/sysrc/include
+@dirrm libexec/sysrc