Fix install target assuming directory name in tarball

Add regex's for PORTNAME in appropriate places

PR:		30244
Submitted by:	fullermd@over-yonder.net
This commit is contained in:
David W. Chapman Jr. 2001-09-17 04:22:40 +00:00
parent c4efad7479
commit d3ae2b193b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47900

View File

@ -25,11 +25,11 @@ pre-patch:
pre-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@ ${MKDIR} ${PREFIX}/listar
@ ${CP} -R ${WRKDIR}/${DISTNAME}/* ${PREFIX}/listar
@ ${RM} -R ${PREFIX}/listar/src/
@ ${RM} -R ${PREFIX}/listar/debian/
@ ${CHOWN} -R listar:listar ${PREFIX}/listar/*
@ ${MKDIR} ${PREFIX}/${PORTNAME}
@ ${CP} -R ${WRKDIR}/${PORTNAME}-1.0.0/* ${PREFIX}/listar
@ ${RM} -R ${PREFIX}/${PORTNAME}/src/
@ ${RM} -R ${PREFIX}/${PORTNAME}/debian/
@ ${CHOWN} -R listar:listar ${PREFIX}/${PORTNAME}/*
post-install: