Bug 67397 - audio/timidity installs files with invalid uid and gid.
Summary: audio/timidity installs files with invalid uid and gid.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-30 23:00 UTC by fmysh
Modified: 2004-05-31 05:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fmysh 2004-05-30 23:00:29 UTC
	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.

Fix: Add --no-same-owner and --no-same-permissions options.



post-install:
        cd ${PREFIX}/lib/timidity && \
-       ${TAR} zxf ${DISTDIR}/${TIINS} && \
+       ${TAR} --no-same-owner --no-same-permissions -zxf ${DISTDIR}/${TIINS} && \
        ${CP} goemon.cfg goemon.cfg.bak && \
        ${SED} 's=dir goemon=dir ${PREFIX}/lib/timidity/goemon=' \
           < goemon.cfg.bak > goemon.cfg && \--X4IkclGZ3qhBiH5OnUXkNNGaibKtjdG3FFRIaA5trjn75l6M
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.orig       Mon May 31 06:30:31 2004
+++ Makefile    Mon May 31 06:31:01 2004
@@ -31,7 +31,7 @@
How-To-Repeat: 
# make install
# ls -lR /usr/local/lib/timidity
total 32
drwxr-xr-x  5 508   100    4608 Sep 14  1997 goemon
-rw-r--r--  1 508   100    6478 May 31 06:54 goemon.cfg
-rw-r--r--  1 root  wheel  2770 May 31 06:54 gravis.cfg
-rw-r--r--  1 root  wheel  1826 May 31 06:54 gsdrum.cfg
-rw-r--r--  1 root  wheel   517 May 31 06:54 midia.cfg
-rw-r--r--  1 root  wheel  2316 May 31 06:54 mt32.cfg
-rw-r--r--  1 root  wheel  2558 May 31 06:54 timidity.cfg
-rw-r--r--  1 root  wheel  1132 May 31 06:54 wowpats.cfg

/usr/local/lib/timidity/goemon:
total 10712
-rw-r--r--  1 508  100   20707 May 25  1996 acbass.pat
-rw-r--r--  1 508  100   19623 May 25  1996 accordn.pat
-rw-r--r--  1 508  100  119705 May 25  1996 acguitar2.pat
(SNIP)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2004-05-31 05:30:58 UTC
State Changed
From-To: open->closed

Commited, thanks!