diff options
author | 2004-07-13 02:14:15 +0000 | |
---|---|---|
committer | 2004-07-13 02:14:15 +0000 | |
commit | 9d2cd0c7aa4b748446bf98614780c590572f5f16 (patch) | |
tree | 2371df52b0be446c424464eb681e476d18f82e4b /media-sound/mpg321 | |
parent | Stable on Mac OS X (diff) | |
download | gentoo-2-9d2cd0c7aa4b748446bf98614780c590572f5f16.tar.gz gentoo-2-9d2cd0c7aa4b748446bf98614780c590572f5f16.tar.bz2 gentoo-2-9d2cd0c7aa4b748446bf98614780c590572f5f16.zip |
postrm removes the symlink now.
Diffstat (limited to 'media-sound/mpg321')
-rw-r--r-- | media-sound/mpg321/ChangeLog | 6 | ||||
-rw-r--r-- | media-sound/mpg321/mpg321-0.2.10-r1.ebuild | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/media-sound/mpg321/ChangeLog b/media-sound/mpg321/ChangeLog index 34d4c22252a2..968e072fb2e0 100644 --- a/media-sound/mpg321/ChangeLog +++ b/media-sound/mpg321/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-sound/mpg321 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/ChangeLog,v 1.18 2004/07/12 08:04:38 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/ChangeLog,v 1.19 2004/07/13 02:14:15 eradicator Exp $ + + 12 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> + mpg321-0.2.10-r1.ebuild: + postrm removes the symlink now. 12 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> : Make ebuild play nicer with GRP. diff --git a/media-sound/mpg321/mpg321-0.2.10-r1.ebuild b/media-sound/mpg321/mpg321-0.2.10-r1.ebuild index cffe9779e987..198849d8e8c1 100644 --- a/media-sound/mpg321/mpg321-0.2.10-r1.ebuild +++ b/media-sound/mpg321/mpg321-0.2.10-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/mpg321-0.2.10-r1.ebuild,v 1.20 2004/07/12 08:04:38 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/mpg321-0.2.10-r1.ebuild,v 1.21 2004/07/13 02:14:15 eradicator Exp $ IUSE="" @@ -31,13 +31,15 @@ src_install () { pkg_postinst() { # We create a symlink for /usr/bin/mpg123 if it doesn't already exist if ! [ -f /usr/bin/mpg123 ]; then - ln -s mpg321 /usr/bin/mpg123 + ln -s mpg321 ${ROOT}/usr/bin/mpg123 fi } pkg_postrm() { - # We can't delete it here because it would break upgrades. - if [ -L /usr/bin/mpg123 ]; then - einfo "The /usr/bin/mpg123 symlink still exists. You may wish to remove it." + # We delete the symlink if it's nolonger valid. + if [ -L "${ROOT}/usr/bin/mpg123" ] && [ ! -x "${ROOT}/usr/bin/mpg123" ]; then + einfo "We are removing the ${ROOT}/usr/bin/mpg123 symlink since it is no longer valid." + einfo "If you are using another virtual/mpg123 program, you should setup the appropriate symlink." + rm ${ROOT}/usr/bin/mpg123 fi } |