summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2006-10-16 19:25:49 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2006-10-16 19:25:49 +0000
commit681fbd15ee6185ca90a311cc4e6c296d31525e9a (patch)
tree465d2c92a3901e8980bc23a2cedbd1acaea4d5c3 /media-sound
parentRemoving old versions. (diff)
downloadgentoo-2-681fbd15ee6185ca90a311cc4e6c296d31525e9a.tar.gz
gentoo-2-681fbd15ee6185ca90a311cc4e6c296d31525e9a.tar.bz2
gentoo-2-681fbd15ee6185ca90a311cc4e6c296d31525e9a.zip
Removed xmcd because it is not maintained upstream, barely maintained here, and has security issues (bug #135251).
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/xmcd/ChangeLog62
-rw-r--r--media-sound/xmcd/Manifest31
-rw-r--r--media-sound/xmcd/files/digest-xmcd-3.3.24
-rw-r--r--media-sound/xmcd/files/xmcd-3.3.2-gentoo.patch289
-rw-r--r--media-sound/xmcd/metadata.xml5
-rw-r--r--media-sound/xmcd/xmcd-3.3.2.ebuild146
6 files changed, 0 insertions, 537 deletions
diff --git a/media-sound/xmcd/ChangeLog b/media-sound/xmcd/ChangeLog
deleted file mode 100644
index 6be44ce51671..000000000000
--- a/media-sound/xmcd/ChangeLog
+++ /dev/null
@@ -1,62 +0,0 @@
-# ChangeLog for media-sound/xmcd
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/xmcd/ChangeLog,v 1.18 2006/07/09 20:20:02 flameeyes Exp $
-
- 09 Jul 2006; Diego Pettenò <flameeyes@gentoo.org> xmcd-3.3.2.ebuild:
- Pinpoint virtual/x11 version to less than 7.
-
- 27 Jan 2006; Andrej Kacian <ticho@gentoo.org> xmcd-3.3.2.ebuild:
- Ported dependencies for modular X.
-
- 24 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> xmcd-3.3.2.ebuild:
- Little cleanups.
-
- 24 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> xmcd-3.3.2.ebuild:
- Don't call chown with root:root.
-
- 28 May 2005; Jan Brinkmann <luckyduck@gentoo.org>
- -files/xmcd-3.2.1-gentoo.patch, -xmcd-3.2.1-r1.ebuild, xmcd-3.3.2.ebuild:
- Dont make use of the deprecated oggvorbis useflag any longer, see #94254.
-
- 29 Sep 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.3.2.ebuild:
- Fixed patch to be correct version... see bug #65787.
-
- 15 Sep 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.3.2.ebuild:
- get_libdir updates. Fix bug #60734. Stable amd64.
-
- 18 Jun 2004; Jason Wever <weeve@gentoo.org> xmcd-3.3.2.ebuild:
- Stable on sparc.
-
- 01 Jun 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.3.2.ebuild:
- Stable x86.
-
- 10 May 2004; Daniel Ahlberg <aliz@gentoo.org> xmcd-3.3.2.ebuild:
- Added amd64 keyword, closing #49718.
-
- 02 May 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.3.2.ebuild:
- Added to ~sparc.
-
-*xmcd-3.3.2 (02 May 2004)
-
- 02 May 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.3.2.ebuild:
- Version bump. Closes bug #43939.
-
-*xmcd-3.2.1-r1 (20 Apr 2004)
-
- 20 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.2.1-r1.ebuild,
- xmcd-3.2.1.ebuild:
- Fixed gracenote->x86 use statent on install. QA fixes.
-
- 08 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org> xmcd-3.2.1.ebuild:
- Stable x86.
-
- 07 Mar 2004; David Holm <dholm@gentoo.org> xmcd-3.2.1.ebuild:
- Added to ~ppc.
-
-*xmcd-3.2.1 (04 Mar 2004)
-
- 04 Mar 2004; Jeremy Huddleston <eradicator@gentoo.org> metadata.xml,
- xmcd-3.2.1.ebuild, files/xmcd-3.2.1-gentoo.patch:
- Motif based CD player with CDDB2 support. Ebuild submitted by
- john.ross.hunt@comcast.net in bug #25113.
-
diff --git a/media-sound/xmcd/Manifest b/media-sound/xmcd/Manifest
deleted file mode 100644
index 00055dea0f13..000000000000
--- a/media-sound/xmcd/Manifest
+++ /dev/null
@@ -1,31 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX xmcd-3.3.2-gentoo.patch 8407 RMD160 11cc6bf00dbbb869c5673577e1f559977d00f197 SHA1 432d51e8cafd679b7a7e88d7347badfd0b3404c4 SHA256 56ab3137b2904ac0a949ce691bb3b4482e0e76659888f5afcbe2d5970bb4cd71
-MD5 b6909e49017277bdc8ed33c65f9d282c files/xmcd-3.3.2-gentoo.patch 8407
-RMD160 11cc6bf00dbbb869c5673577e1f559977d00f197 files/xmcd-3.3.2-gentoo.patch 8407
-SHA256 56ab3137b2904ac0a949ce691bb3b4482e0e76659888f5afcbe2d5970bb4cd71 files/xmcd-3.3.2-gentoo.patch 8407
-DIST cddb2supplib.tar.gz 575319
-DIST xmcd-3.3.2.tar.gz 1062467 RMD160 ddba992ca27b84178d24a4ace91809b03b087ca9 SHA1 dd5d9088cb03bc4ec37ff938fc08b9852586cce3 SHA256 66fee7dfde7d99a8c63c08e7f517898ffcb8b564fb957faff7a26538873eae56
-EBUILD xmcd-3.3.2.ebuild 4083 RMD160 0095cfbee9033c155600186aedff2ffdfb7a7a5d SHA1 ae1598da6d815979a0e317f634c99d190b648ecd SHA256 cc7e5fc6a7284486035eac1c198a6fb10717531a996874e06fddf6fae99255f5
-MD5 7212bd2b543a36787ab56337d59254f8 xmcd-3.3.2.ebuild 4083
-RMD160 0095cfbee9033c155600186aedff2ffdfb7a7a5d xmcd-3.3.2.ebuild 4083
-SHA256 cc7e5fc6a7284486035eac1c198a6fb10717531a996874e06fddf6fae99255f5 xmcd-3.3.2.ebuild 4083
-MISC ChangeLog 2242 RMD160 2fd54cc984dd01e7d751fb9c14b3faf256994d02 SHA1 c9c459594d394ad3ca1dc4e974f8de44bf147c33 SHA256 48ddacfe7f8aacc71bffeb65712d663c4e1378814c346b5980efadbd5505b28c
-MD5 a676b9b9a7b6ffd8b68264f71d76940f ChangeLog 2242
-RMD160 2fd54cc984dd01e7d751fb9c14b3faf256994d02 ChangeLog 2242
-SHA256 48ddacfe7f8aacc71bffeb65712d663c4e1378814c346b5980efadbd5505b28c ChangeLog 2242
-MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
-MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
-RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
-SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b metadata.xml 158
-MD5 2b5bb1edce7559699d72b00732fc8016 files/digest-xmcd-3.3.2 299
-RMD160 e2ace669e35ca2dc98f773386cbf7fa9dba31e7d files/digest-xmcd-3.3.2 299
-SHA256 032f76864b5697920d23549b20a19dc624cc28b71fe428a3ce50437c91943258 files/digest-xmcd-3.3.2 299
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.4 (GNU/Linux)
-
-iD8DBQFEsWT5AiZjviIA2XgRAt6mAKDs0n9755yCyAgYNlEOD4+dcnJHHgCaA/Hm
-A7sAysYGAa+V4eiCKZqEBs8=
-=ToVM
------END PGP SIGNATURE-----
diff --git a/media-sound/xmcd/files/digest-xmcd-3.3.2 b/media-sound/xmcd/files/digest-xmcd-3.3.2
deleted file mode 100644
index 2eaa5982dc56..000000000000
--- a/media-sound/xmcd/files/digest-xmcd-3.3.2
+++ /dev/null
@@ -1,4 +0,0 @@
-MD5 10f1271014e547ffc26e356928b0b645 cddb2supplib.tar.gz 575319
-MD5 8808c754db69b1d6eca060c2a6d1be99 xmcd-3.3.2.tar.gz 1062467
-RMD160 ddba992ca27b84178d24a4ace91809b03b087ca9 xmcd-3.3.2.tar.gz 1062467
-SHA256 66fee7dfde7d99a8c63c08e7f517898ffcb8b564fb957faff7a26538873eae56 xmcd-3.3.2.tar.gz 1062467
diff --git a/media-sound/xmcd/files/xmcd-3.3.2-gentoo.patch b/media-sound/xmcd/files/xmcd-3.3.2-gentoo.patch
deleted file mode 100644
index de7be51aa04c..000000000000
--- a/media-sound/xmcd/files/xmcd-3.3.2-gentoo.patch
+++ /dev/null
@@ -1,289 +0,0 @@
-diff -urN xmcd-3.2.1.old/install.sh xmcd-3.2.1/install.sh
---- xmcd-3.2.1.old/install.sh 2003-08-02 21:24:33.000000000 -0500
-+++ xmcd-3.2.1/install.sh 2003-12-20 02:37:16.000000000 -0600
-@@ -513,7 +513,7 @@
- then
- OS_MACH=mips
- else
-- OS_MACH=`(uname -m) 2>/dev/null`
-+ OS_MACH=`(uname -m) 2>/dev/null | sed -e 's/i[0-9]86/i686/'`
- fi
-
- if [ -z "$OS_SYS" ]
-@@ -714,30 +714,6 @@
- $ECHO "CDDB(tm) Disc Recognition Service. See the CDDB file"
- $ECHO "for information."
-
--# Check privilege
--(id | fgrep 'uid=0(root)') >/dev/null 2>&1
--if [ $? != 0 ]
--then
-- $ECHO "\n\nYou should be the super user to install xmcd."
--
-- YNDEF=n
-- if [ -z "$BATCH" ] && get_yn "\n Proceed with installation anyway"
-- then
-- $ECHO "\nWARNING: Without super-user privilege, some files may"
-- $ECHO "not be properly installed, or they may be installed"
-- $ECHO "with incorrect permissions."
--
-- XBINPERM=711
-- XBINOWNER=_default_
-- OWNER=_default_
-- GROUP=_default_
-- else
-- log_err -p "Not super user: installation aborted by user."
-- do_exit 1
-- fi
--fi
--
--
- # Check existence of binaries
-
- MISSING=
-@@ -1049,78 +1025,6 @@
- fi
-
-
--# Remove old xmcd components
--
--$ECHO "\n\nChecking for old xmcd components..."
--
--# Old binaries
--dirs=`echo "$OPATH" | $AWK -F: '{ for (i = 1; i <= NF; i++) print $i }'`
--for i in $BINTRYDIRS
--do
-- dirs=`$ECHO "$dirs\n$i"`
--done
--dirs=`($ECHO "$dirs" | \
-- sed -e 's/^[ ]*//' -e '/^$/d' | \
-- sort | uniq) 2>/dev/null`
--
--if [ -n "$dirs" ]
--then
-- for i in $dirs
-- do
-- if [ "$i" = "$BINDIR" -o "$i" = "." ]
-- then
-- continue
-- fi
--
-- for j in xmcd cda cddbcmd wm2xmcd dp2xmcd $STARTUP_SCRIPT
-- do
-- tryfile=${i}/${j}
-- if [ -f $tryfile -a -x $tryfile ]
-- then
-- if [ -z "$BATCH" ]
-- then
-- YNDEF=y
-- if get_yn "Remove old executable $tryfile"
-- then
-- rm -f $tryfile
-- if [ $? -ne 0 ]
-- then
-- $ECHO "Cannot remove $tryfile."
-- fi
-- fi
-- else
-- rm -f $tryfile
-- fi
-- fi
-- done
-- done
--fi
--
--# Old xmcd app-defaults files
--dirs=`for i in $LIBTRYDIRS $LIBDIR; do echo "$i"; done | sort | uniq`
--for i in $dirs
--do
-- tryfile=${i}/app-defaults/XMcd
-- if [ -f "$tryfile" ]
-- then
-- if [ -z "$BATCH" ]
-- then
-- YNDEF=y
-- if get_yn "Remove old xmcd resource file $tryfile"
-- then
-- rm -f $tryfile
-- if [ $? -ne 0 ]
-- then
-- $ECHO "Cannot remove ${tryfile}."
-- fi
-- fi
-- else
-- rm -f $tryfile
-- fi
-- fi
--done
--
--
- # Set architecture-specific binary and library directory
- ARCHBIN="${XMCDLIB}/bin-${OS_SYS_T}-${OS_MACH_T}"
- ARCHLIB="${XMCDLIB}/lib-${OS_SYS_T}-${OS_MACH_T}"
-@@ -1160,7 +1064,7 @@
-
- if [ "$DISCOGDIR" != "$XMCDLIB/discog" ]
- then
-- do_link "$DISCOGDIR" "$XMCDLIB/discog"
-+ do_link "../../../../../var/lib/xmcd/discog" "$XMCDLIB/discog"
- $ECHO "\t$XMCDLIB/discog"
- fi
-
-diff -urN xmcd-3.2.1.old/libdi_d/common.cfg xmcd-3.2.1/libdi_d/common.cfg
---- xmcd-3.2.1.old/libdi_d/common.cfg 2003-08-02 21:24:40.000000000 -0500
-+++ xmcd-3.2.1/libdi_d/common.cfg 2003-12-20 02:34:06.000000000 -0600
-@@ -78,7 +78,7 @@
- ! /dev/rdsk/m187_c0d3s7 (UNIX SVR4.0/88k, m187 controller 0, SCSI ID 3)
- ! DKA500: (Digital OpenVMS)
- !
--device: /dev/rcd0
-+device: /dev/cdrom
-
- ! For CDDA playback mode, this selects the audio output port(s). The
- ! value is the sum of the following:
-diff -urN xmcd-3.2.1.old/libdi_d/config.sh xmcd-3.2.1/libdi_d/config.sh
---- xmcd-3.2.1.old/libdi_d/config.sh 2003-08-02 21:24:40.000000000 -0500
-+++ xmcd-3.2.1/libdi_d/config.sh 2003-12-20 02:20:38.000000000 -0600
-@@ -31,9 +31,9 @@
- VER=3.2.1
-
- # Change the following directory to fit your local configuration
--BINDIR=/usr/bin/X11
--XMCDLIB=/usr/lib/X11/xmcd
--DISCOGDIR=/usr/lib/X11/xmcd/discog
-+BINDIR=/usr/X11R6/bin
-+XMCDLIB=/usr/X11R6/lib/X11/xmcd
-+DISCOGDIR=/var/lib/xmcd/discog
- XMCD_URL=http://www.amb.org/xmcd/
-
- ERRFILE=/tmp/xmcd.err
-@@ -2506,7 +2506,7 @@
- # Get platform information
- OS_SYS=`(uname -s) 2>/dev/null`
- OS_REL=`(uname -r) 2>/dev/null`
--OS_MACH=`(uname -m) 2>/dev/null`
-+OS_MACH=`(uname -m) 2>/dev/null | sed -e 's/i[0-9]86/i686/'`
- OS_NODE=`(uname -n) 2>/dev/null`
-
- if [ -z "$OS_SYS" ]
-diff -urN xmcd-3.2.1.old/libdi_d/os_linux.h xmcd-3.2.1/libdi_d/os_linux.h
---- xmcd-3.2.1.old/libdi_d/os_linux.h 2003-08-02 21:24:42.000000000 -0500
-+++ xmcd-3.2.1/libdi_d/os_linux.h 2003-12-20 02:35:00.000000000 -0600
-@@ -101,7 +101,6 @@
-
-
- #define OS_MODULE /* Indicate that this is compiled on a supported OS */
--#define SETUID_ROOT /* Setuid root privilege is required */
-
-
- /* Public function prototypes */
-diff -urN xmcd-3.2.1.old/misc_d/discog.htm xmcd-3.2.1/misc_d/discog.htm
---- xmcd-3.2.1.old/misc_d/discog.htm 2003-08-02 21:25:02.000000000 -0500
-+++ xmcd-3.2.1/misc_d/discog.htm 2003-12-20 02:21:27.000000000 -0600
-@@ -34,7 +34,7 @@
- <H2>Directory Organization</H2>
- <DIR>
- <P>
--The top-level Local Discography directory is <B>$DISCOGDIR</B>
-+The top-level Local Discography directory is <B>/var/lib/xmcd/discog</B>
- on your system. This was created when xmcd was installed.
- Under this directory there are hierarchy of directories of music genres
- (i.e., <I>Rock, Classical, Jazz,</I> etc.). These genres match those
-diff -urN xmcd-3.2.1.old/misc_d/genidx.sh xmcd-3.2.1/misc_d/genidx.sh
---- xmcd-3.2.1.old/misc_d/genidx.sh 2003-08-02 21:25:02.000000000 -0500
-+++ xmcd-3.2.1/misc_d/genidx.sh 2003-12-20 02:22:41.000000000 -0600
-@@ -30,8 +30,8 @@
- PATH=/bin:/usr/bin:/usr/local/bin; export PATH
-
- # Modify these to suit your local configuration
--XMCDLIB=/usr/lib/X11/xmcd
--DISCOGDIR=$XMCDLIB/discog
-+XMCDLIB=/usr/X11R6/lib/X11/xmcd
-+DISCOGDIR=/var/lib/xmcd/discog
- FILE_MODE=666
- DIR_MODE=777
-
-diff -urN xmcd-3.2.1.old/misc_d/start.sh xmcd-3.2.1/misc_d/start.sh
---- xmcd-3.2.1.old/misc_d/start.sh 2003-08-02 21:25:03.000000000 -0500
-+++ xmcd-3.2.1/misc_d/start.sh 2003-12-20 02:33:16.000000000 -0600
-@@ -26,7 +26,7 @@
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- #
--PATH=${PATH}:/sbin:/usr/sbin:/bin:/usr/bin:/etc
-+PATH=${PATH}:/sbin:/usr/sbin:/bin:/usr/bin:/etc:/usr/X11R6/bin
- export PATH
-
-
-@@ -34,10 +34,28 @@
- {
- if [ -z "$XMCD_LIBDIR" ]
- then
-- XMCD_LIBDIR=/usr/lib/X11/xmcd
-+ XMCD_LIBDIR=/usr/X11R6/lib/X11/xmcd
- export XMCD_LIBDIR
- fi
-
-+ if [ "$0" = "/usr/X11R6/bin/xmcd" -o "$0" = "/usr/X11R6/bin/cda" ] & [ ! -f $XMCD_LIBDIR/config/common.cfg-`uname -n` ]; then
-+ echo
-+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
-+ echo "The default configuration is probably unsuitable for your CD drive."
-+ echo "Run /etc/xmcd/config.sh to configure your CD. "
-+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
-+ echo
-+ fi
-+
-+ echo
-+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
-+ echo "For security reasons xmcd is not installed setuid. You need to be "
-+ echo "the owner of the cdrom device or the following files should have "
-+ echo "the setuid bit set: "
-+ echo " /usr/X11R6/lib/X11/xmcd/bin-*/{xmcd,cda}. "
-+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
-+ echo
-+
- SYS_T="$SYS"
- MACH_T="$MACH"
- REL_T="$REL"
-@@ -128,7 +146,7 @@
- MACH=mips
- else
- MACH=`(uname -m) 2>/dev/null | \
-- sed -e 's/\//_/g' -e 's/-/_/g' -e 's/[ ]/_/g'`
-+ sed -e 's/i[0-9]86/i686/' -e 's/\//_/g' -e 's/-/_/g' -e 's/[ ]/_/g'`
- fi
- REL=`(uname -r) 2>/dev/null | sed -e 's/\//_/g' -e 's/-/_/g' -e 's/[ ]/_/g'`
-
-diff -urN xmcd-3.2.1.old/util_d/Imakefile xmcd-3.2.1/util_d/Imakefile
---- xmcd-3.2.1.old/util_d/Imakefile 2003-08-02 21:25:02.000000000 -0500
-+++ xmcd-3.2.1/util_d/Imakefile 2003-12-20 02:13:36.000000000 -0600
-@@ -39,10 +39,9 @@
- *
- */
-
--/*
-- * #include "Motif.tmpl"
-- * #include "Motif.rules"
-- */
-+#include "Motif.tmpl"
-+#include "Motif.rules"
-+
- LOCAL_LIBRARIES= XmClientLibs
-
-
-diff -urN xmcd-3.2.1.old/xmcd_d/Imakefile xmcd-3.2.1/xmcd_d/Imakefile
---- xmcd-3.2.1.old/xmcd_d/Imakefile 2003-08-02 21:24:47.000000000 -0500
-+++ xmcd-3.2.1/xmcd_d/Imakefile 2003-12-20 02:13:36.000000000 -0600
-@@ -39,10 +39,8 @@
- *
- */
-
--/*
-- * #include "Motif.tmpl"
-- * #include "Motif.rules"
-- */
-+#include "Motif.tmpl"
-+#include "Motif.rules"
-
- CDDBLIB= -L../cddb_d -lcddb
- LOCAL_LIBDIR= -L/usr/freeware/lib32 -L/usr/local/lib
diff --git a/media-sound/xmcd/metadata.xml b/media-sound/xmcd/metadata.xml
deleted file mode 100644
index e1774e3d9ad7..000000000000
--- a/media-sound/xmcd/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>sound</herd>
-</pkgmetadata>
diff --git a/media-sound/xmcd/xmcd-3.3.2.ebuild b/media-sound/xmcd/xmcd-3.3.2.ebuild
deleted file mode 100644
index 04ffd5b94bc7..000000000000
--- a/media-sound/xmcd/xmcd-3.3.2.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/xmcd/xmcd-3.3.2.ebuild,v 1.15 2006/07/09 20:20:02 flameeyes Exp $
-
-inherit eutils
-
-IUSE="alsa encode vorbis"
-
-SUPPLIB="cddb2supplib"
-DESCRIPTION="Xmcd is a full-featured CD Player and Ripper software package."
-HOMEPAGE="http://www.ibiblio.org/tkan/xmcd/"
-SRC_URI="http://www.ibiblio.org/tkan/download/${PN}/${PV}/src/${P}.tar.gz
- x86? (
- http://www.ibiblio.org/tkan/download/cddb2supp/${PV}/lib/linux-x86-libc6/${SUPPLIB}.tar.gz
- )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ~ppc sparc amd64"
-
-# block media-libs/libcddb for now, see bug #90945
-RDEPEND="x11-libs/openmotif
- media-libs/flac
- !media-libs/libcddb
- sys-libs/ncurses
- alsa? ( media-libs/alsa-lib )
- encode? ( >=media-sound/lame-3.93.1 )
- vorbis? ( >=media-libs/libvorbis-1.0 )
- || ( ( x11-libs/libXt
- x11-libs/libXp )
- <virtual/x11-7 )"
-
-DEPEND="${RDEPEND}
- sys-apps/sed
- || ( ( x11-misc/imake
- x11-misc/gccmakedep
- x11-proto/printproto
- x11-proto/xextproto )
- <virtual/x11-7 )"
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- epatch ${FILESDIR}/${P}-gentoo.patch
-}
-
-src_compile() {
-
- einfo "Building xmcd..."
- xmkmf -a || die
- make CDEBUGFLAGS="${CDEBUGFLAGS} ${CFLAGS} -D_GNU_SOURCE" || die
-
-}
-
-src_install() {
-
- # shamelessly culled from SuSE .spec file...
- ebegin "Running install script"
- BATCH_BINDIR=${D}/usr/X11R6/bin \
- BATCH_LIBDIR=${D}/usr/X11R6/$(get_libdir)/X11 \
- BATCH_XMCDLIB=${D}/usr/X11R6/$(get_libdir)/X11/xmcd \
- BATCH_MANDIR=${D}/usr/X11R6/man/man1 \
- BATCH_CDDBDIR=${D}/var/lib/xmcd/cddb \
- BATCH_DISCOGDIR=${D}/var/lib/xmcd/discog \
- sh install.sh -n -b || die
- eend 0
-
- for lib in libcddb.so.1 libcddb.a libcddbkey1.a libcddbkey2.a; do
- dolib cddb_d/${lib}
- done
-
- dosym libcddbkey2.a /usr/$(get_libdir)/libcddbkey.a
- dosym libcddb.so.1 /usr/$(get_libdir)/libcddb.so
-
- # a small fixup...
- rm -rf ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/docs
- dodir etc
- dosym ../usr/X11R6/$(get_libdir)/X11/xmcd/config /etc/xmcd
-
- # move binaries to correct place
- ebegin "Moving binaries to target location"
- (cd ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/bin-*;
- sed -e "s@${D}@@g" \
- < ${D}/usr/X11R6/bin/.xmcd_start > start
- cp start ${D}/usr/X11R6/bin/.xmcd_start
- sed -e "s@${D}@@" < README > README.tmp
- mv README.tmp README )
- rm -f ${D}/usr/X11R6/bin/*
- (cd ${D}/usr/X11R6/bin; \
- ln -s ../lib/X11/xmcd/bin-*/start xmcd; \
- ln -s ../lib/X11/xmcd/bin-*/start cda)
- cp ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/config/common.cfg \
- ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/config/cdrom
- for i in config/config.sh scripts/genidx ; do
- sed -e "s@${D}@@g" \
- < ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/$i \
- > ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/$i.tmp
- mv ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/$i.tmp \
- ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/$i
- done
- eend 0
-
- ebegin "Fixing ownership and permissions"
- # fix ownership
- chown -R root:0 ${D}
- # remove setuid bit
- chmod 0755 ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/bin-*/{cda,xmcd,start,gobrowser}
- chmod 0755 ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/config/config.sh
- chmod 0755 ${D}/usr/X11R6/$(get_libdir)/X11/xmcd/scripts/genidx
- # change perms
- chmod 0644 ${D}/var/lib/xmcd/discog/index.html
- chmod 0644 ${D}/var/lib/xmcd/discog/*/*/index.html
- eend 0
-
- if use x86
- then
- ebegin "Adding Gracenote CDDB² support"
- exeinto /usr/X11R6/$(get_libdir)/X11/xmcd/lib-Linux-i686
- doexe ${WORKDIR}/${P}/cddb_d/libcddb.so.1
- dosym libcddb.so.1 /usr/X11R6/$(get_libdir)/X11/xmcd/lib-Linux-i686/libcddb.so
- eend 0
- fi
-
- # install documentation
- dodoc docs_d/*
- dosym ../../../../../usr/share/doc/${P} /usr/X11R6/$(get_libdir)/X11/xmcd/docs
-}
-
-pkg_postinst() {
-
- einfo
- einfo "Don't forget to run ${ROOT}etc/xmcd/config.sh"
- einfo "as root to configure your CD devices!"
- einfo
-
-}
-
-pkg_postrm() {
-
- einfo
- einfo "Old discographies found in ${ROOT}var/lib/xmcd can safely be deleted."
- einfo "Old CD configurations in ${ROOT}etc/xmcd can safely be deleted."
- einfo
-
-}