mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
. Add staging support and remove NO_STAGE.
This commit is contained in:
parent
a3a55cc0b9
commit
87fcc32fc7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355695
@ -21,7 +21,6 @@ NO_BUILD= yes
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
|
||||
|
||||
@ -30,27 +29,27 @@ do-configure:
|
||||
${WRKSRC}/kernellib/doc/kernel/kernel.dgd
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
|
||||
@${INSTALL_DATA} ${WRKSRC}/kernellib/doc/kernel/kernel.dgd \
|
||||
${PREFIX}/etc/${PORTNAME}/
|
||||
@${MKDIR} ${DATADIR}/kernel
|
||||
${STAGEDIR}${PREFIX}/etc/${PORTNAME}/
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/kernel
|
||||
.for DIR in include kernel usr
|
||||
@cd ${WRKSRC}/kernellib && ${COPYTREE_SHARE} ${DIR} ${DATADIR}/kernel
|
||||
@cd ${WRKSRC}/kernellib && ${COPYTREE_SHARE} ${DIR} ${STAGEDIR}${DATADIR}/kernel
|
||||
.endfor
|
||||
@# Install an RC script for dgd-kernel
|
||||
@${CAT} ${FILESDIR}/dgd-kernel.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
|
||||
-e "s:%%DATADIR%%:${DATADIR}:" > \
|
||||
${PREFIX}/etc/rc.d/dgd-kernel.sh.sample
|
||||
@${CHMOD} a+x ${PREFIX}/etc/rc.d/dgd-kernel.sh.sample
|
||||
${STAGEDIR}${PREFIX}/etc/rc.d/dgd-kernel.sh.sample
|
||||
@${CHMOD} a+x ${STAGEDIR}${PREFIX}/etc/rc.d/dgd-kernel.sh.sample
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@cd ${WRKSRC}/kernellib && ${COPYTREE_SHARE} doc ${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
@cd ${WRKSRC}/kernellib && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@# Need a temporary directory for certain files
|
||||
@${MKDIR} ${DATADIR}/tmp
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/tmp
|
||||
@# Set mudlib ownership
|
||||
-@${CHOWN} -h -R mud:mud ${DATADIR}
|
||||
-@${CHOWN} -h -R mud:mud ${STAGEDIR}${DATADIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user