mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
audio/timidity installs files with invalid uid and gid.
audio/timidity installs some files with invalid uid and gid. This is caused by installing the files directly from an archive. Tar with a root priviledge preserves owners and permissions by default. PR: ports/67397 Submitted by: Taoka Fumiyoshi <fmysh@iijmio-mail.jp>
This commit is contained in:
parent
34557987a9
commit
147273eda9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110472
@ -23,18 +23,16 @@ NO_CDROM= "Uses copyrighted patches"
|
||||
TIINS= goemon.tgz
|
||||
INSTALL_TARGET= install.all
|
||||
MAN1= timidity.1
|
||||
USE_REINPLACE= yes
|
||||
|
||||
post-patch:
|
||||
@${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' < \
|
||||
${WRKSRC}/linux_a.c > ${WRKSRC}/linux_a.c.new
|
||||
@${MV} ${WRKSRC}/linux_a.c.new ${WRKSRC}/linux_a.c
|
||||
${REINPLACE_CMD} -e 's,machine/soundcard.h,sys/soundcard.h,' \
|
||||
${WRKSRC}/linux_a.c
|
||||
|
||||
post-install:
|
||||
cd ${PREFIX}/lib/timidity && \
|
||||
${TAR} zxf ${DISTDIR}/${TIINS} && \
|
||||
${CP} goemon.cfg goemon.cfg.bak && \
|
||||
${SED} 's=dir goemon=dir ${PREFIX}/lib/timidity/goemon=' \
|
||||
< goemon.cfg.bak > goemon.cfg && \
|
||||
${RM} goemon.cfg.bak
|
||||
${TAR} --no-same-owner --no-same-permissions -zxf ${DISTDIR}/${TIINS} && \
|
||||
${REINPLACE_CMD} -i "" -e 's,dir goemon,dir ${PREFIX}/lib/timidity/goemon,' \
|
||||
goemon.cfg
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user