Support staging
This commit is contained in:
parent
a2f44201a8
commit
820d4024b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346896
1 changed files with 7 additions and 6 deletions
|
@ -16,16 +16,17 @@ RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
|
|||
NO_BUILD= yes
|
||||
PLIST_FILES= sbin/autobackupmysql.sh
|
||||
|
||||
NO_STAGE= yes
|
||||
do-extract:
|
||||
${MKDIR} ${WRKSRC}
|
||||
${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}
|
||||
@${MKDIR} ${WRKSRC}
|
||||
@${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/autobackupmysql.sh
|
||||
@${REINPLACE_CMD} -e 's|${LOCALBASE}/etc|${PREFIX}/etc|g' ${WRKSRC}/autobackupmysql.sh
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
||||
${WRKSRC}/autobackupmysql.sh
|
||||
@${REINPLACE_CMD} -e 's|${LOCALBASE}/etc|${PREFIX}/etc|g' \
|
||||
${WRKSRC}/autobackupmysql.sh
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${PREFIX}/sbin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/sbin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue