mirror of
https://git.freebsd.org/ports.git
synced 2025-05-30 01:46:55 -04:00
Convert pastebinit to have STAGEDIR support.
Tested with poudriere
This commit is contained in:
parent
b8ef32ac23
commit
6a26e6b45e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328304
1 changed files with 2 additions and 3 deletions
|
@ -22,7 +22,6 @@ OPTIONS_DEFINE= PASTEBINS
|
|||
PASTEBINS_DESC= Install default pastebins
|
||||
OPTIONS_DEFAULT= PASTEBINS
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MPASTEBINS}
|
||||
|
@ -33,9 +32,9 @@ post-patch:
|
|||
${REINPLACE_CMD} -e 's|/usr/share/pastebin.d|${DATADIR}/pastebin.d|' \
|
||||
${WRKSRC}/pastebinit
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
.if ${PORT_OPTIONS:MPASTEBINS}
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} pastebin.d ${DATADIR})
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} pastebin.d ${STAGEDIR}${DATADIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue