diff options
author | Joe Peterson <lavajoe@gentoo.org> | 2010-08-05 19:29:28 +0000 |
---|---|---|
committer | Joe Peterson <lavajoe@gentoo.org> | 2010-08-05 19:29:28 +0000 |
commit | 6aaeb5f059666bb841bc623904221630836db7a3 (patch) | |
tree | cb0325529ca2a6d671fca790ce6e8810205bc407 /media-sound | |
parent | arm stable, bug #330785 (diff) | |
download | gentoo-2-6aaeb5f059666bb841bc623904221630836db7a3.tar.gz gentoo-2-6aaeb5f059666bb841bc623904221630836db7a3.tar.bz2 gentoo-2-6aaeb5f059666bb841bc623904221630836db7a3.zip |
media-sound/squeezecenter removal (see bug #287257)
Diffstat (limited to 'media-sound')
36 files changed, 0 insertions, 3412 deletions
diff --git a/media-sound/squeezecenter/ChangeLog b/media-sound/squeezecenter/ChangeLog deleted file mode 100644 index 8b4244b3c71b..000000000000 --- a/media-sound/squeezecenter/ChangeLog +++ /dev/null @@ -1,265 +0,0 @@ -# ChangeLog for media-sound/squeezecenter -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/ChangeLog,v 1.44 2009/07/26 15:14:23 ssuominen Exp $ - - 26 Jul 2009; Samuli Suominen <ssuominen@gentoo.org> - squeezecenter-7.1.0-r1.ebuild, squeezecenter-7.3.0.ebuild, - squeezecenter-7.3.3-r1.ebuild: - Remove deprecated musepack-tools SV7 from deps. - - 19 Jul 2009; Torsten Veller <tove@gentoo.org> squeezecenter-7.3.1.ebuild, - squeezecenter-7.3.2-r1.ebuild, squeezecenter-7.3.2-r2.ebuild, - squeezecenter-7.3.3.ebuild, squeezecenter-7.3.3-r1.ebuild: - IO-Compress replaces Compress-Zlib - -*squeezecenter-7.3.3-r1 (10 Jul 2009) - - 10 Jul 2009; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.3.3-r1.ebuild, - +files/squeezecenter-7.3.3-r1-aac-transcode-gentoo.patch: - Use mplayer instead of faad (bug #277025) - -*squeezecenter-7.3.3 (23 Jun 2009) - - 23 Jun 2009; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.3.3.ebuild, - +files/squeezecenter-7.3.3-aac-transcode-gentoo.patch, - +files/squeezecenter-7.3.3-build-perl-modules-gentoo.patch, - +files/squeezecenter-7.3.3-json-xs-gentoo.patch, - +files/squeezecenter-7.3.3-mDNSResponder-gentoo.patch, - +files/squeezecenter-7.3.3-squeezeslave.patch, - +files/squeezecenter-7.3.3-squeezeslave-2.patch, - +files/squeezecenter-7.3.3-squeezeslave-3.patch: - Add new version 7.3.3 - - 10 Apr 2009; Joe Peterson <lavajoe@gentoo.org> - +files/squeezecenter-7.2.1-build-perl-modules-gentoo.patch, - +files/squeezecenter-7.3.0-build-perl-modules-gentoo.patch, - -files/build-perl-modules-gentoo.patch, squeezecenter-7.2.1.ebuild, - squeezecenter-7.3.0.ebuild: - Use correct build-perl-modules-gentoo.patch for specific versions (bug - #265506) - -*squeezecenter-7.3.2-r2 (25 Mar 2009) - - 25 Mar 2009; Joe Peterson <lavajoe@gentoo.org> - +files/squeezecenter-7.3.2-r2-json-xs-gentoo.patch, - +squeezecenter-7.3.2-r2.ebuild: - Fix JSON-XS version issue (bug #263416) - -*squeezecenter-7.3.2-r1 (18 Mar 2009) - - 18 Mar 2009; Joe Peterson <lavajoe@gentoo.org> - -squeezecenter-7.3.2.ebuild, +squeezecenter-7.3.2-r1.ebuild: - Remove dev-perl/module-build depend (bug #246942); fix other dependencies - -*squeezecenter-7.3.2 (26 Jan 2009) - - 26 Jan 2009; Joe Peterson <lavajoe@gentoo.org> - +files/squeezecenter-7.3.2-aac-transcode-gentoo.patch, - +files/squeezecenter-7.3.2-build-perl-modules-gentoo.patch, - +files/squeezecenter-7.3.2-json-xs-gentoo.patch, - +squeezecenter-7.3.2.ebuild: - Add new version 7.3.2 - -*squeezecenter-7.3.1 (21 Jan 2009) - - 21 Jan 2009; Joe Peterson <lavajoe@gentoo.org> - +files/squeezecenter-7.3.1-aac-transcode-gentoo.patch, - +files/squeezecenter-7.3.1-build-perl-modules-gentoo.patch, - +files/squeezecenter-7.3.1-json-xs-gentoo.patch, metadata.xml, - +squeezecenter-7.3.1.ebuild: - Add new version 7.3.1 - -*squeezecenter-7.3.0 (20 Dec 2008) - - 20 Dec 2008; Joe Peterson <lavajoe@gentoo.org> - files/build-perl-modules-gentoo.patch, +files/gentoo-filepaths.pm, - files/mDNSResponder-gentoo.patch, files/squeezecenter.conf.d, - files/squeezecenter.init.d, +squeezecenter-7.3.0.ebuild: - Add new version 7.3.0 - - 18 Nov 2008; Torsten Veller <tove@gentoo.org> - squeezecenter-7.1.0-r1.ebuild, squeezecenter-7.2.0-r1.ebuild, - squeezecenter-7.2.1.ebuild: - New virtuals: module-build - - 11 Nov 2008; Joe Peterson <lavajoe@gentoo.org> files/squeezecenter.conf.d: - Add comments to conf file regarding nice setting, etc. - - 11 Nov 2008; Joe Peterson <lavajoe@gentoo.org> files/squeezecenter.init.d: - Remove use of sudo and nice in init script; no rev bump - - 27 Oct 2008; Joe Peterson <lavajoe@gentoo.org> - files/build-perl-modules-gentoo.patch: - Fix patch (remove hunk that tried to modify Id: line) - no version bump - -*squeezecenter-7.2.1 (27 Oct 2008) - - 27 Oct 2008; Joe Peterson <lavajoe@gentoo.org> - +files/build-perl-modules-gentoo.patch, +squeezecenter-7.2.1.ebuild: - Add new version 7.2.1; no longer depend on upstream downloads during perl - module builds - - 07 Oct 2008; nixnut <nixnut@gentoo.org> squeezecenter-7.1.0-r1.ebuild: - Stable on ppc wrt bug 237373 - - 20 Sep 2008; Joe Peterson <lavajoe@gentoo.org> - -squeezecenter-7.1.0.ebuild, -squeezecenter-7.2.0.ebuild: - Remove old versions - - 20 Sep 2008; Markus Meier <maekke@gentoo.org> - squeezecenter-7.1.0-r1.ebuild: - amd64/x86 stable, bug #237373 - -*squeezecenter-7.2.0-r1 (13 Sep 2008) -*squeezecenter-7.1.0-r1 (13 Sep 2008) - - 13 Sep 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.1.0-r1.ebuild, +squeezecenter-7.2.0-r1.ebuild: - Do not install perl GD files so as not to conflict with installed - dev-perl/GD package (bug #237548) - - 10 Sep 2008; Joe Peterson <lavajoe@gentoo.org> squeezecenter-7.1.0.ebuild, - squeezecenter-7.2.0.ebuild: - Remove || die on enewuser and enewgroup. No version bump. - - 08 Sep 2008; Joe Peterson <lavajoe@gentoo.org> metadata.xml: - Add Stuart Hickinbottom as a proxy maintainer to metadata.xml - -*squeezecenter-7.2.0 (31 Aug 2008) - - 31 Aug 2008; Joe Peterson <lavajoe@gentoo.org> - -files/Gentoo-plugins-7.0.2-README.txt, - -files/filepaths-7.0.2-gentoo.patch, -files/squeezecenter-7.0.2.init.d, - -files/mDNSResponder-7.0-gentoo.patch, -files/dbcreate-7.0-gentoo.sql, - -files/dbdrop-7.0-gentoo.sql, -files/avahi-7.0-squeezecenter.service, - -files/squeezecenter-7.0.conf.d, -files/squeezecenter-7.0.init.d, - -files/squeezecenter-7.0.logrotate.d, -files/squeezecenter-7.0.prefs, - +files/filepaths-gentoo.patch, +files/mDNSResponder-gentoo.patch, - -squeezecenter-7.0.1.ebuild, +squeezecenter-7.2.0.ebuild: - Add new version 7.2.0; remove old ebuilds and files - -*squeezecenter-7.1.0 (03 Aug 2008) - - 03 Aug 2008; Joe Peterson <lavajoe@gentoo.org> - +files/filepaths-7.1-gentoo.patch, +files/mDNSResponder-7.1-gentoo.patch, - +files/Gentoo-plugins-README.txt, +files/avahi-squeezecenter.service, - +files/dbcreate-gentoo.sql, +files/dbdrop-gentoo.sql, - +files/squeezecenter.conf.d, +files/squeezecenter.init.d, - +files/squeezecenter.logrotate.d, +files/squeezecenter.prefs, - -squeezecenter-7.0.ebuild, -squeezecenter-7.0-r1.ebuild, - -squeezecenter-7.0.2_beta20080530.ebuild, +squeezecenter-7.1.0.ebuild: - Add version 7.1.0; remove old versions - - 29 Jul 2008; Joe Peterson <lavajoe@gentoo.org> metadata.xml: - Add local use flags to metadata - -*squeezecenter-7.0.2_beta20080530 (03 Jun 2008) - - 03 Jun 2008; Joe Peterson <lavajoe@gentoo.org> - files/filepaths-7.0.2-gentoo.patch, files/squeezecenter-7.0.2.init.d, - -squeezecenter-7.0.1_beta20080501.ebuild, - -squeezecenter-7.0.2_beta20080524.ebuild, - +squeezecenter-7.0.2_beta20080530.ebuild: - Add 7.0.2 beta nightly for 2008-05-30; Remove old versions - -*squeezecenter-7.0.2_beta20080524 (26 May 2008) - - 26 May 2008; Joe Peterson <lavajoe@gentoo.org> - +files/Gentoo-plugins-7.0.2-README.txt, - +files/filepaths-7.0.2-gentoo.patch, +files/squeezecenter-7.0.2.init.d, - +squeezecenter-7.0.2_beta20080524.ebuild: - Add 7.0.2 beta nightly for 2008-05-24; introduce new file layout based on - the Gentoo file structure and using examples from squeezecenter on other - distros - -*squeezecenter-7.0.1 (21 May 2008) - - 21 May 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0.1.ebuild: - Official 7.0.1 release - -*squeezecenter-7.0.1_beta20080501 (21 May 2008) - - 21 May 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0.1_beta20080501.ebuild: - Add new 7.0.1 nightly for 2008-05-01 - -*squeezecenter-7.0-r1 (20 Apr 2008) - - 20 Apr 2008; Joe Peterson <lavajoe@gentoo.org> - files/squeezecenter-7.0.init.d, +squeezecenter-7.0-r1.ebuild: - Fix init script to work with openrc (bug #218009) - - 15 Mar 2008; nixnut <nixnut@gentoo.org> squeezecenter-7.0.ebuild: - Added ~ppc wrt bug 204813 - - 12 Mar 2008; Joe Peterson <lavajoe@gentoo.org> squeezecenter-7.0.ebuild: - Keyword ~amd64 - -*squeezecenter-7.0 (05 Mar 2008) - - 05 Mar 2008; Joe Peterson <lavajoe@gentoo.org> +squeezecenter-7.0.ebuild: - Official 7.0 release - -*squeezecenter-7.0_beta20080224 (24 Feb 2008) - - 24 Feb 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080224.ebuild: - Add nightly for 2008-02-24 - -*squeezecenter-7.0_beta20080210 (11 Feb 2008) - - 11 Feb 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080210.ebuild: - Add nightly for 2008-02-10 - -*squeezecenter-7.0_beta20080203 (03 Feb 2008) - - 03 Feb 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080203.ebuild: - Add nightly for 2008-02-03 and fix MySQL password entry issue - -*squeezecenter-7.0_beta20080126 (27 Jan 2008) - - 27 Jan 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080126.ebuild: - Add nightly for 2008-01-26 and track 7.0 branch (soon to be released) - -*squeezecenter-7.0_beta20080119 (21 Jan 2008) - - 21 Jan 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080119.ebuild: - Add nightly for 2008-01-19 - -*squeezecenter-7.0_beta20080115 (16 Jan 2008) - - 16 Jan 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080115.ebuild: - Add nightly for 2008-01-15 - -*squeezecenter-7.0_beta20080108 (09 Jan 2008) - - 09 Jan 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080108.ebuild: - Add nightly for 2008-01-08 - -*squeezecenter-7.0_beta20080102 (07 Jan 2008) - - 07 Jan 2008; Joe Peterson <lavajoe@gentoo.org> - +squeezecenter-7.0_beta20080102.ebuild, - -squeezecenter-7.0_p20080102.ebuild: - Move it to beta to properly reflect 7.0 release status - -*squeezecenter-7.0_p20080102 (07 Jan 2008) - - 07 Jan 2008; Joe Peterson <lavajoe@gentoo.org> - +files/mDNSResponder-7.0-gentoo.patch, +files/dbcreate-7.0-gentoo.sql, - +files/dbdrop-7.0-gentoo.sql, +files/avahi-7.0-squeezecenter.service, - +files/squeezecenter-7.0.conf.d, +files/squeezecenter-7.0.init.d, - +files/squeezecenter-7.0.logrotate.d, +files/squeezecenter-7.0.prefs, - +metadata.xml, +squeezecenter-7.0_p20080102.ebuild: - New package that replaces media-sound/slimserver from version 7.0 on. - Contributed by Stuart Hickinbottom <stuart@hickinbottom.com>. - diff --git a/media-sound/squeezecenter/Manifest b/media-sound/squeezecenter/Manifest deleted file mode 100644 index cbd5b25149ca..000000000000 --- a/media-sound/squeezecenter/Manifest +++ /dev/null @@ -1,52 +0,0 @@ -AUX Gentoo-plugins-README.txt 981 RMD160 d5efb4a5d704ff6b4c3de49b7143cbb9bc132445 SHA1 c3aedb74c3f5b7a54a3bad278750ed1632241e1d SHA256 6f84ab8159022447d3f434afb6403947ae9514fec55f33c9e74257ff75735428 -AUX avahi-squeezecenter.service 326 RMD160 174b4a900bea817b3b1995449c1c0a0f3f96cacb SHA1 b84fa32fc82c84cb749d8aed2cc4f1367937a4bc SHA256 868102c1b4eb5e497e8a0f899c794023643018b66e8f3855b772908647b59b2d -AUX dbcreate-gentoo.sql 165 RMD160 36fe87c398aee02890710f970245032488b857bb SHA1 e86a26c73addb4b74c345ec70155f2b9d079075b SHA256 d8cf85879e74dc1e429251f5bd4ae7f99e2a460fa668c0abde2c2725b90f10a1 -AUX dbdrop-gentoo.sql 64 RMD160 bc60b46ea56642c28ffbd8731e120722e42b66a9 SHA1 a02eab2a62e67d81ff2ad3d3700cd7695f6d31c1 SHA256 0c8e1f3cddd54d6659a014dbcefa928f6d8b9174860cb07d53e01fe9940e8aba -AUX filepaths-7.1-gentoo.patch 4328 RMD160 ddbb9c6dae371230bc22efc64dbbf9534ad1a923 SHA1 4b8d9fe565ad56be5f98fa6275d97634990030f4 SHA256 df0edea36a4eb2de0589c776f72e52b24c749cc7d1892041d1dd673433292466 -AUX filepaths-gentoo.patch 4328 RMD160 ddbb9c6dae371230bc22efc64dbbf9534ad1a923 SHA1 4b8d9fe565ad56be5f98fa6275d97634990030f4 SHA256 df0edea36a4eb2de0589c776f72e52b24c749cc7d1892041d1dd673433292466 -AUX gentoo-filepaths.pm 2688 RMD160 0d4ab3ad5ae5d20cf1608ad6f3fd3257eeda20ec SHA1 ceaec7483f20f1edea03b6e71f04bce88a4ec8e0 SHA256 1ccc31d75eccbaa3d089d291e96e3b1b1332041ef5eadacd3d6aa3942e7d52be -AUX mDNSResponder-7.1-gentoo.patch 351 RMD160 c4f7ee74c7ec70496ffe845f10cd61a533742968 SHA1 c5b23edc04d47003cbd66504439a82c6a12c5a8c SHA256 18039bf06a8712195b492f792f78943bae3546d0985f17accb0419efc83e5095 -AUX mDNSResponder-gentoo.patch 351 RMD160 084a1374d5f8f9f4586bfade7a1bda22a4f78381 SHA1 86a4e0ed901172ac68c46616cc58a7629cb6a18a SHA256 fcc17eecdef9a3dafd23b36fbea1cba649aee786649aa238eb5782f23c10ea2d -AUX squeezecenter-7.2.1-build-perl-modules-gentoo.patch 2214 RMD160 c598de544f7ed733ff79dad88ac7e02ec6c33193 SHA1 8006046b0a32f844ef4005f2fde917dd1b78e01a SHA256 860628ac8c399844e94a2e890655e38583b3429a3874fd860ac01d83c1cea975 -AUX squeezecenter-7.3.0-build-perl-modules-gentoo.patch 2214 RMD160 0686bf15b2bfaa30b7977433c2df23b09ca44ab5 SHA1 ad4d6687a37e8e1f0cbd2e8c6a46a05ee84f4b76 SHA256 75929caaeb955762e70a0e1a4a5ece9a444a372ec24ffdb3bec5ab245823f764 -AUX squeezecenter-7.3.1-aac-transcode-gentoo.patch 1244 RMD160 85596b04058021f5f94e56b6b6d0f904e74f14a7 SHA1 15d589f3071ac4efa61ac4d3a5467b57809d6d12 SHA256 1e744d9cacd5898956eddf834347759a5465a947e3e042128986afca6fca5770 -AUX squeezecenter-7.3.1-build-perl-modules-gentoo.patch 2749 RMD160 6e38831b81ac200c40f7f7f8a5efaaab69e27d61 SHA1 f4c2e18591cee050f543b2aef51647d045b254af SHA256 d3c2ab3609e28676d34755ef673161b831abbc755b5f6e4b72403f1ca2ac4d01 -AUX squeezecenter-7.3.1-json-xs-gentoo.patch 506 RMD160 c489bd77c7ea2bb2db7c67e6f3a0686346bda36b SHA1 a305b87c3550bbf69456b7a7a57887d600529259 SHA256 db6db5e28afdbf36c938d3bd406997340b4ad7c718f26289fbfab0dee564116a -AUX squeezecenter-7.3.2-aac-transcode-gentoo.patch 1302 RMD160 454e42c08eff939e61820692ba607a5e5400d7e6 SHA1 ef599099cda7a53f46fb4f8c38e3bd851a1b16d3 SHA256 76228bc3d95184e8f8eeb069bad72a17d924daecfef5880d9384a88628d42ac8 -AUX squeezecenter-7.3.2-build-perl-modules-gentoo.patch 2749 RMD160 6e38831b81ac200c40f7f7f8a5efaaab69e27d61 SHA1 f4c2e18591cee050f543b2aef51647d045b254af SHA256 d3c2ab3609e28676d34755ef673161b831abbc755b5f6e4b72403f1ca2ac4d01 -AUX squeezecenter-7.3.2-json-xs-gentoo.patch 506 RMD160 c489bd77c7ea2bb2db7c67e6f3a0686346bda36b SHA1 a305b87c3550bbf69456b7a7a57887d600529259 SHA256 db6db5e28afdbf36c938d3bd406997340b4ad7c718f26289fbfab0dee564116a -AUX squeezecenter-7.3.2-r2-json-xs-gentoo.patch 1074 RMD160 919c87a58a698b3358bb5d7c2a3496063432fe33 SHA1 0edb069cf3da241d876946cd8f117c6231b332c1 SHA256 e4f5cba5a0ccac40072bf9c9acd9e093d010ee458bcda884a1e39639d9c0a757 -AUX squeezecenter-7.3.3-aac-transcode-gentoo.patch 1228 RMD160 31a4d5960c9b357926d12290c9405ba4798ec467 SHA1 6e03f48d905ba587e022bffae7ab7a68bcf9b4e0 SHA256 de42d683b8ff47be0a1df3ea54c5524ab0cce031e5d5df7d45b2e9ab91557d18 -AUX squeezecenter-7.3.3-build-perl-modules-gentoo.patch 2799 RMD160 27b35b9fc96510f63ccfc7383dec37e5740adb89 SHA1 186ab803388dd870709ff045ad0de10f35390a53 SHA256 fe8eb6d686d36184ec0e230ccd5dcefc3825943bdc4b66b6d085441be4b4e4ef -AUX squeezecenter-7.3.3-json-xs-gentoo.patch 1074 RMD160 24fd24af21ea0cafe8866569733767c35bf7e7ec SHA1 1f1aeb535d6edd2d447971db9626ac19304a4cae SHA256 5a478a21bf796d13e01b06cec6acf1aa47a5f5d1d76e99497d3ea11b6b404aec -AUX squeezecenter-7.3.3-mDNSResponder-gentoo.patch 351 RMD160 14822d6c5cb05663a0782609288bcf725cfd03cc SHA1 31951973ea63d58f7a6373deac8918e0d91b09f3 SHA256 269d32e980b72ac4a1666bf724ac3ef7b0b11e7bb66b733e70f21c948df1f48c -AUX squeezecenter-7.3.3-r1-aac-transcode-gentoo.patch 2418 RMD160 d8261aa08469b76540a24f4cf7b1f14ea5027f82 SHA1 cdc283393bee2e21914229f71bd8c4903d47cb50 SHA256 b8182eeb8d66be77a33fbee8ac558bdaf049acd7b3d39658a1943f6adb7b5dc4 -AUX squeezecenter-7.3.3-squeezeslave-2.patch 833 RMD160 4c80a19d4328439f5e4ab911f7eb9ec765aa4b91 SHA1 196b95074e9942a47a9841daf87edca55b80d038 SHA256 8729367667fbdd4fbdb0191eb03fe59b4dca94d62169fe3658859de9483c0d94 -AUX squeezecenter-7.3.3-squeezeslave-3.patch 545 RMD160 dacf9d35947e7a930bdf62f8293666dc44f29d46 SHA1 b8c2464b7028aff449f2926992d311dbfc931ae5 SHA256 910d5cabb65d0d466dddd3915e57e63579dca31c43b4e542c72be1f6977d9a5f -AUX squeezecenter-7.3.3-squeezeslave.patch 17051 RMD160 c37c13cd84adb00fc4860f08c5e7ad0fc7723eea SHA1 739f530a0335c2d03dae21b5c5870e93b6efcf3b SHA256 f7a385d7734893ed42303b931169fe2170321a3f987c9f1b6d3bd2c32ad8a3e1 -AUX squeezecenter.conf.d 1087 RMD160 e979e2bfe070024f46f7f0005de6e7ae11623bdb SHA1 ad69cfdf0f0ace7d44d479e7a7e1ad79a9f86be6 SHA256 7509d6cbc013ddb9c5cbdfe1fe2b81ae3a7f6eb1dc6e119b1ee37553a8f8a69f -AUX squeezecenter.init.d 1338 RMD160 8d97de1146151cad44844146f390ac44edf4bc03 SHA1 c4dd848fbf2a0fba44bec7bcb8f92f4eaf278faf SHA256 32845b5669164930088c61ba422e2d4b5a128bbdc8d27aebe70f689ea06de1c2 -AUX squeezecenter.logrotate.d 407 RMD160 5a6045321cf1f180ee2ce671d5395cd08379accd SHA1 e1f4c03e9bae354ba44c7fdc59721696c643eb64 SHA256 a98dcb6a95d8711632d6913b7dab221decf35f70858618529b7ae8c103b20a01 -AUX squeezecenter.prefs 126 RMD160 b715267b10e2bc63eaa7da5aa9dd3177dc0e46ee SHA1 3354ce16a5dd453d71c475a8487b43fec34084c2 SHA256 19c74a3838f78c6a076220e749c236564d085c4ef095fa0f77bbb1be74532b2d -DIST SqueezeCenter-AutoXS-Header-0.03.tar.gz 2497 RMD160 91ae4b03d47d3773747f2f69c992c54a1e6ff2bb SHA1 f6f106412fb603abefefec8a640ce4713a50a1f7 SHA256 59ee972bf0ea3e85fbcb619863e2cd47ad5646a849409c9a65123fffdb77519a -DIST SqueezeCenter-Class-XSAccessor-Array-0.05.tar.gz 44525 RMD160 3800eae26da22c479c91065bc4c193a56ece1df5 SHA1 de132a75173f286401057f04fcb5e7f79f14d61e SHA256 5d34f1180306e9cc3bcacf8b383267c08da1aa86cd8c033f1d258c7fc41bdb30 -DIST SqueezeCenter-Compress-Zlib-1.41.tar.gz 151972 RMD160 78a331550e953221d6e741dc581f24a7e0c9dc5d SHA1 0a0aea0fe460956d71db0a0f571d67078ca1dc94 SHA256 3ec80ba4a43dc6462e5fa4da2e9773b3934c0b502a1648b553b09766046000c3 -DIST SqueezeCenter-DBD-mysql-3.0002.tar.gz 130077 RMD160 f566f1a968b9f4f1fd0210080456de5f31601b35 SHA1 2be3348a20ad95b1761dd8fe399b5d0b8d82cb7c SHA256 90f3f767a25b692aa2775bf919886df48fe1146acf1f885a84eeb14909cbf12f -DIST SqueezeCenter-DBI-1.604.tar.gz 498315 RMD160 4e915a9e746d844a0fa668dce58a142eb49b45f6 SHA1 9c5195996e9a4cc54f2894834b05f6b9eee4b6c7 SHA256 a1de376b7eb59d80d5dbb913a468017a2988169b4103cb4651e140b6f19411fb -DIST SqueezeCenter-Digest-SHA1-2.11.tar.gz 38723 RMD160 66a446c0f7cdca43b8ec5742551b34a750a16871 SHA1 00e945eb71b6d118bc3f785cc0e469df2f032709 SHA256 3cebe0a6894daee3bfa5d9619fc90e7619cb6a77ac1b04d027341cd6033ae989 -DIST SqueezeCenter-Encode-Detect-1.00.tar.gz 179575 RMD160 726113dc727d4a66d1ce584e5fba96f0accafdc7 SHA1 79b51d623e4a3a3b7d6583dfc5c3ec324fd98077 SHA256 3f23f8ccb007b9af001c72d3c458faa598e8819aefc51e66a1c89b9fb1af3afc -DIST SqueezeCenter-HTML-Parser-3.48.tar.gz 82678 RMD160 9dd1cd6714ff90ec50ce4fe6e330be512a2340af SHA1 f740cbcbe6c17c3f84e9a142d29de0d1dde9d63a SHA256 d888144a9638919fceaf773c95cd5349992c793c9042fd78652c0cb4372046da -DIST SqueezeCenter-JSON-XS-1.5.tar.gz 46574 RMD160 dd94cc717ee198fa5a4896b3ed932642cdbff217 SHA1 c0acbf8dc04e8ff899756fdfd6ceaf6ace6da717 SHA256 672fb6f4746335f5567f843544efc19d76d5e0eff27b6fae3a9d4ddcde72e721 -DIST SqueezeCenter-POE-XS-Queue-Array-0.002.tar.gz 15718 RMD160 7392946d8b626760dd4c36cc54c54ce5c9981e50 SHA1 4ea63429a1ab892344c6d303aae4e64c638a09e1 SHA256 8f448ba0cf7b3cbb7b33781f1db15d914390ebc65ac94af9659d78632ac6b671 -DIST SqueezeCenter-Template-Toolkit-2.15.tar.gz 778706 RMD160 3ae0b829404373cce183ab3dd04f97c1a3f6144f SHA1 bff5a0e3b4fe33389e744633c35f4e0d0407d7f5 SHA256 f5eb767604b7d039523564d8e74996884d8eeac5396caceba4e204f56c407c02 -DIST SqueezeCenter-Time-HiRes-1.86.tar.gz 68950 RMD160 a653a3c792c8df3d85e2b5a4e693d0b33c4b6c03 SHA1 d1d2898d9b7c1740a39de16f6b107de98de9be62 SHA256 bcbf80a893648eb60b742440b955d4cb50d85228de739dc666c4505cb6669a9e -DIST SqueezeCenter-XML-Parser-2.34.tar.gz 230102 RMD160 0cb18e70e0266f150af7a095559aa1e485fe7aad SHA1 4d843b874acf4fad0425657d15c0d374c0e1c911 SHA256 c81099114908da2e91377f8351f406a48542f8f0a767985b0c565d782ea5ae01 -DIST SqueezeCenter-YAML-Syck-0.64.tar.gz 128255 RMD160 07045a46e23e12125c586248fd9de0b12b2168a9 SHA1 0e5b8caadfb46f75d8b2590d05c77c7e65abb2c1 SHA256 70ff201165020c7aeadeb4bd1a6233462994a07a7153c8f5570a3698b0207e07 -DIST squeezecenter-7.1-noCPAN.tgz 18785895 RMD160 6826dcdb906f343c5221ab8ff55ac3fe560fd4cc SHA1 6e51608286c238970a4facb26fc1acb3adb6ed07 SHA256 6229d6c96f290ab360351ea993733b2bb6bba352ca97e62d40d1b1f802f0afa8 -DIST squeezecenter-7.3-noCPAN.tgz 23756416 RMD160 648b396be2ff7c64c1e13874141ceb326211dfb3 SHA1 e54402cf016ca9f068ffcf2cafcebc5412843aca SHA256 bc91344af84505f04298d4a8f1f519c42ead1a4d61d33645dc1fe71ec98258f7 -DIST squeezecenter-7.3.3-noCPAN.tgz 25491195 RMD160 e2205e4de9ad95ce1e41518347256320bc2a08d6 SHA1 3d9b0f7973474e20be06fb3e76b2e47ec93fa553 SHA256 1aaa6b3867657f6c35a1ebadf3e0aa3e0bfaa519d26eb0f35fdbb32a0f4ff533 -EBUILD squeezecenter-7.1.0-r1.ebuild 13012 RMD160 9460accbaf6731b5dcfb4276af4042ebe3af2866 SHA1 d50ec5af80ff2b591d4071f1a81e8f29e2ce1979 SHA256 975bdb4b58da28a24f1237869b26f12a76494602a8ed4ddbaf7b7701498e0ff1 -EBUILD squeezecenter-7.3.0.ebuild 14542 RMD160 73a825b7444bcdaeb9fd483f6fe513620df0dfdc SHA1 cdc9249f654644d079b51a5899dba46bf1e691c2 SHA256 c678bf59eac2793dcbad44337854779f0a49169b4581e07f89414556d677b0d6 -EBUILD squeezecenter-7.3.3-r1.ebuild 16412 RMD160 30d4427074f24755cc18db3ca719b907d745e596 SHA1 d0f581901e00cf355e5d3130538972add8a80298 SHA256 039d9effaa99a8289e26c9a0ede1a32de5897f0f1b9d2f736e81532612a1939f -MISC ChangeLog 10003 RMD160 7486ddc3ee437e0b664861e90347b1510cef76c0 SHA1 8b7bc8acdec9af24b9b03e7c86391d5e20f375e7 SHA256 acfce4a19551a687153b9a7b5a4e9c490c4ced15f86dd316dda20a4f9fc0cb1f -MISC metadata.xml 1111 RMD160 09bbcc60edfa73e0b04a509c43a9e3a38396c9a5 SHA1 091e7172538d6f37f885752a2ab72d1cbf40334a SHA256 3f92fd179e06f52bd8af1caf6d160bacadb9b5ad90e3d34c98255379e075e1fe diff --git a/media-sound/squeezecenter/files/Gentoo-plugins-README.txt b/media-sound/squeezecenter/files/Gentoo-plugins-README.txt deleted file mode 100644 index fa27cdc20801..000000000000 --- a/media-sound/squeezecenter/files/Gentoo-plugins-README.txt +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/Gentoo-plugins-README.txt,v 1.1 2008/08/03 04:35:29 lavajoe Exp $ - -The standard SqueezeCenter package is installed differently on Gentoo in order -that the installation complies with Gentoo's filesystem layout. These notes -are provided to give guidance for installing plugins within this modified -layout. - -INSTALLING PLUGINS - -The installation instructions of plugins should be followed but with the -following Gentoo specifics: - -* Plugins should be installed into the directory: - /var/lib/squeezecenter/Plugins -* Extension binaries (which sometimes accompany plugins) should be installed - into the directory: - /usr/lib/squeezecenter/Bin - -BACKGROUND - -Those interested can refer to the following for details of Gentoo's filesystem -standard: -http://devmanual.gentoo.org/general-concepts/filesystem/index.html diff --git a/media-sound/squeezecenter/files/avahi-squeezecenter.service b/media-sound/squeezecenter/files/avahi-squeezecenter.service deleted file mode 100644 index 6643b3fe8d56..000000000000 --- a/media-sound/squeezecenter/files/avahi-squeezecenter.service +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" standalone='no'?><!--*-nxml-*--> -<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> - -<service-group> - - <name>SqueezeCenter</name> - - <service> - <type>_http._tcp</type> - <port>9000</port> - </service> - - <service> - <type>_slimhttp._tcp</type> - <port>9000</port> - </service> - -</service-group> diff --git a/media-sound/squeezecenter/files/dbcreate-gentoo.sql b/media-sound/squeezecenter/files/dbcreate-gentoo.sql deleted file mode 100644 index 939b75a90bad..000000000000 --- a/media-sound/squeezecenter/files/dbcreate-gentoo.sql +++ /dev/null @@ -1,6 +0,0 @@ -CREATE DATABASE __DATABASE__; - -GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER - ON *.* - TO '__DBUSER__'@'localhost' - IDENTIFIED BY '__DBPASSWORD__' diff --git a/media-sound/squeezecenter/files/dbdrop-gentoo.sql b/media-sound/squeezecenter/files/dbdrop-gentoo.sql deleted file mode 100644 index 1d3bc8d696aa..000000000000 --- a/media-sound/squeezecenter/files/dbdrop-gentoo.sql +++ /dev/null @@ -1,2 +0,0 @@ -DROP DATABASE __DATABASE__; -DROP USER '__DBUSER__'@'localhost'; diff --git a/media-sound/squeezecenter/files/filepaths-7.1-gentoo.patch b/media-sound/squeezecenter/files/filepaths-7.1-gentoo.patch deleted file mode 100644 index c5c00e28f432..000000000000 --- a/media-sound/squeezecenter/files/filepaths-7.1-gentoo.patch +++ /dev/null @@ -1,152 +0,0 @@ ---- Slim/Utils/OSDetect.pm.old 2008-07-22 12:25:34.000000000 +0100 -+++ Slim/Utils/OSDetect.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -253,6 +253,58 @@ - warn "dirsFor: Didn't find a match request: [$dir]\n"; - } - -+ } elsif (isGentoo()) { -+ -+ if ($dir =~ /^(?:Firmware|Graphics|HTML|IR|MySQL|SQL)$/) { -+ -+ push @dirs, "/usr/share/squeezecenter/$dir"; -+ -+ } elsif ($dir =~ /^(?:lib)$/) { -+ -+ push @dirs, "/usr/lib/squeezecenter"; -+ -+ } elsif ($dir eq 'UserPluginRoot') { -+ -+ push @dirs, "/var/lib/squeezecenter"; -+ -+ } elsif ($dir eq 'Plugins') { -+ -+ push @dirs, "/var/lib/squeezecenter/Plugins"; -+ push @dirs, "/usr/lib/" . $Config{'package'} . "/vendor_perl/" . $Config{'version'} . "/Slim/Plugin" -+ -+ } elsif ($dir eq 'strings' || $dir eq 'revision') { -+ -+ push @dirs, "/usr/share/squeezecenter"; -+ -+ } elsif ($dir =~ /^(?:types|convert)$/) { -+ -+ push @dirs, "/etc/squeezecenter"; -+ -+ } elsif ($dir =~ /^(?:prefs)$/) { -+ -+ push @dirs, "/var/lib/squeezecenter/prefs"; -+ -+ } elsif ($dir eq 'log') { -+ -+ push @dirs, "/var/log/squeezecenter"; -+ -+ } elsif ($dir eq 'cache') { -+ -+ push @dirs, "/var/lib/squeezecenter/cache"; -+ -+ } elsif ($dir eq 'MySQL') { -+ -+ # Do nothing - use the depended upon MySQL install. -+ -+ } elsif ($dir =~ /^(?:music|playlists)$/) { -+ -+ push @dirs, ''; -+ -+ } else { -+ -+ warn "dirsFor: Didn't find a match request: [$dir]\n"; -+ } -+ - # Red Hat/Fedora/SUSE RPM specific paths. - } elsif (isRHorSUSE()) { - -@@ -465,6 +517,19 @@ - return isReadyNAS(); - } - -+sub isGentoo { -+ -+ # Initialize -+ my $OS = OS(); -+ my $details = details(); -+ -+ if ($details->{'osName'} eq 'Gentoo') { -+ return 1; -+ } -+ -+ return 0; -+} -+ - sub isRHorSUSE { - - # Initialize -@@ -586,6 +651,10 @@ - - $osDetails{'osName'} = 'Debian'; - -+ } elsif (-f '/etc/gentoo-release') { -+ -+ $osDetails{'osName'} = 'Gentoo'; -+ - } elsif (-f '/etc/redhat_release' || -f '/etc/redhat-release') { - - $osDetails{'osName'} = 'Red Hat'; -@@ -603,7 +672,7 @@ - $osDetails{'osArch'} = $Config{'myarchname'}; - - # package specific addition to @INC to cater for plugin locations -- if (isDebian()) { -+ if (isDebian() || isGentoo()) { - - unshift @INC, '/usr/share/squeezecenter'; - unshift @INC, '/usr/share/squeezecenter/CPAN'; ---- Slim/Music/Import.pm.old 2008-07-22 12:24:32.000000000 +0100 -+++ Slim/Music/Import.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -128,7 +128,7 @@ - - $command = '/usr/libexec/squeezecenter-scanner'; - -- } elsif (Slim::Utils::OSDetect::isDebian()) { -+ } elsif (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isGentoo()) { - - $command = '/usr/sbin/squeezecenter-scanner'; - ---- Slim/bootstrap.pm.old 2008-07-22 12:24:09.000000000 +0100 -+++ Slim/bootstrap.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -97,8 +97,9 @@ - - my @SlimINC = (); - -- if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE()) { -- # On Debian, RH and SUSE, our CPAN directory is located in the same dir as strings.txt -+ if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE() || Slim::Utils::OSDetect::isGentoo()) { -+ # On Debian, Gentoo, RH and SUSE, our CPAN directory is located in the -+ # same dir as strings.txt - $libPath = Slim::Utils::OSDetect::dirsFor('strings'); - } - -@@ -125,6 +126,14 @@ - $libPath, - ); - -+ if (Slim::Utils::OSDetect::isGentoo()) { -+ # On Gentoo, the lib directory is located separately to the CPAN -+ # directory as it's not architecture-independent, and make sure we -+ # also look at the separate user plugins directory. -+ push @SlimINC, Slim::Utils::OSDetect::dirsFor('lib'); -+ push @SlimINC, Slim::Utils::OSDetect::dirsFor('UserPluginRoot'); -+ } -+ - $d_startup && printf("Got \@INC containing:\n%s\n\n", join("\n", @INC)); - - # This works like 'use lib' ---- Slim/Utils/MySQLHelper.pm.old 2008-07-22 12:25:31.000000000 +0100 -+++ Slim/Utils/MySQLHelper.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -152,7 +152,7 @@ - - # Because we use the system MySQL, we need to point to the right - # directory for the errmsg. files. Default to english. -- if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE()) { -+ if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE() || Slim::Utils::OSDetect::isGentoo()) { - - $config{'language'} = '/usr/share/mysql/english'; - } diff --git a/media-sound/squeezecenter/files/filepaths-gentoo.patch b/media-sound/squeezecenter/files/filepaths-gentoo.patch deleted file mode 100644 index c5c00e28f432..000000000000 --- a/media-sound/squeezecenter/files/filepaths-gentoo.patch +++ /dev/null @@ -1,152 +0,0 @@ ---- Slim/Utils/OSDetect.pm.old 2008-07-22 12:25:34.000000000 +0100 -+++ Slim/Utils/OSDetect.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -253,6 +253,58 @@ - warn "dirsFor: Didn't find a match request: [$dir]\n"; - } - -+ } elsif (isGentoo()) { -+ -+ if ($dir =~ /^(?:Firmware|Graphics|HTML|IR|MySQL|SQL)$/) { -+ -+ push @dirs, "/usr/share/squeezecenter/$dir"; -+ -+ } elsif ($dir =~ /^(?:lib)$/) { -+ -+ push @dirs, "/usr/lib/squeezecenter"; -+ -+ } elsif ($dir eq 'UserPluginRoot') { -+ -+ push @dirs, "/var/lib/squeezecenter"; -+ -+ } elsif ($dir eq 'Plugins') { -+ -+ push @dirs, "/var/lib/squeezecenter/Plugins"; -+ push @dirs, "/usr/lib/" . $Config{'package'} . "/vendor_perl/" . $Config{'version'} . "/Slim/Plugin" -+ -+ } elsif ($dir eq 'strings' || $dir eq 'revision') { -+ -+ push @dirs, "/usr/share/squeezecenter"; -+ -+ } elsif ($dir =~ /^(?:types|convert)$/) { -+ -+ push @dirs, "/etc/squeezecenter"; -+ -+ } elsif ($dir =~ /^(?:prefs)$/) { -+ -+ push @dirs, "/var/lib/squeezecenter/prefs"; -+ -+ } elsif ($dir eq 'log') { -+ -+ push @dirs, "/var/log/squeezecenter"; -+ -+ } elsif ($dir eq 'cache') { -+ -+ push @dirs, "/var/lib/squeezecenter/cache"; -+ -+ } elsif ($dir eq 'MySQL') { -+ -+ # Do nothing - use the depended upon MySQL install. -+ -+ } elsif ($dir =~ /^(?:music|playlists)$/) { -+ -+ push @dirs, ''; -+ -+ } else { -+ -+ warn "dirsFor: Didn't find a match request: [$dir]\n"; -+ } -+ - # Red Hat/Fedora/SUSE RPM specific paths. - } elsif (isRHorSUSE()) { - -@@ -465,6 +517,19 @@ - return isReadyNAS(); - } - -+sub isGentoo { -+ -+ # Initialize -+ my $OS = OS(); -+ my $details = details(); -+ -+ if ($details->{'osName'} eq 'Gentoo') { -+ return 1; -+ } -+ -+ return 0; -+} -+ - sub isRHorSUSE { - - # Initialize -@@ -586,6 +651,10 @@ - - $osDetails{'osName'} = 'Debian'; - -+ } elsif (-f '/etc/gentoo-release') { -+ -+ $osDetails{'osName'} = 'Gentoo'; -+ - } elsif (-f '/etc/redhat_release' || -f '/etc/redhat-release') { - - $osDetails{'osName'} = 'Red Hat'; -@@ -603,7 +672,7 @@ - $osDetails{'osArch'} = $Config{'myarchname'}; - - # package specific addition to @INC to cater for plugin locations -- if (isDebian()) { -+ if (isDebian() || isGentoo()) { - - unshift @INC, '/usr/share/squeezecenter'; - unshift @INC, '/usr/share/squeezecenter/CPAN'; ---- Slim/Music/Import.pm.old 2008-07-22 12:24:32.000000000 +0100 -+++ Slim/Music/Import.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -128,7 +128,7 @@ - - $command = '/usr/libexec/squeezecenter-scanner'; - -- } elsif (Slim::Utils::OSDetect::isDebian()) { -+ } elsif (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isGentoo()) { - - $command = '/usr/sbin/squeezecenter-scanner'; - ---- Slim/bootstrap.pm.old 2008-07-22 12:24:09.000000000 +0100 -+++ Slim/bootstrap.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -97,8 +97,9 @@ - - my @SlimINC = (); - -- if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE()) { -- # On Debian, RH and SUSE, our CPAN directory is located in the same dir as strings.txt -+ if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE() || Slim::Utils::OSDetect::isGentoo()) { -+ # On Debian, Gentoo, RH and SUSE, our CPAN directory is located in the -+ # same dir as strings.txt - $libPath = Slim::Utils::OSDetect::dirsFor('strings'); - } - -@@ -125,6 +126,14 @@ - $libPath, - ); - -+ if (Slim::Utils::OSDetect::isGentoo()) { -+ # On Gentoo, the lib directory is located separately to the CPAN -+ # directory as it's not architecture-independent, and make sure we -+ # also look at the separate user plugins directory. -+ push @SlimINC, Slim::Utils::OSDetect::dirsFor('lib'); -+ push @SlimINC, Slim::Utils::OSDetect::dirsFor('UserPluginRoot'); -+ } -+ - $d_startup && printf("Got \@INC containing:\n%s\n\n", join("\n", @INC)); - - # This works like 'use lib' ---- Slim/Utils/MySQLHelper.pm.old 2008-07-22 12:25:31.000000000 +0100 -+++ Slim/Utils/MySQLHelper.pm 2008-07-22 12:27:06.000000000 +0100 -@@ -152,7 +152,7 @@ - - # Because we use the system MySQL, we need to point to the right - # directory for the errmsg. files. Default to english. -- if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE()) { -+ if (Slim::Utils::OSDetect::isDebian() || Slim::Utils::OSDetect::isRHorSUSE() || Slim::Utils::OSDetect::isGentoo()) { - - $config{'language'} = '/usr/share/mysql/english'; - } diff --git a/media-sound/squeezecenter/files/gentoo-filepaths.pm b/media-sound/squeezecenter/files/gentoo-filepaths.pm deleted file mode 100644 index 1a0564b6ad25..000000000000 --- a/media-sound/squeezecenter/files/gentoo-filepaths.pm +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/gentoo-filepaths.pm,v 1.1 2008/12/20 01:24:43 lavajoe Exp $ - -# This file contains a custom OS package to provide information on the -# installation structure on Gentoo. It is based on the Debian OS equivalent -# that is built into SqueezeCenter. - -package Slim::Utils::OS::Custom; - -use strict; -use File::Spec::Functions qw(:ALL); -use FindBin qw($Bin); -use Config; - -use base qw(Slim::Utils::OS::Linux); - -sub initDetails { - my $class = shift; - - $class->{osDetails} = $class->SUPER::initDetails(); - - $class->{osDetails}->{isGentoo} = 1 ; - - # Make sure we can find any CPAN modules packaged with SqueezeCenter. - unshift @INC, '/usr/share/squeezecenter/CPAN'; - - # Make sure plugin files are found. - push @INC, '/var/lib/squeezecenter'; - - return $class->{osDetails}; -} - -=head2 dirsFor( $dir ) - -Return OS Specific directories. - -Argument $dir is a string to indicate which of the SqueezeCenter directories we -need information for. - -=cut - -sub dirsFor { - my ($class, $dir) = @_; - - my @dirs = (); - - if ($dir eq 'oldprefs') { - - push @dirs, $class->SUPER::dirsFor($dir); - - } elsif ($dir =~ /^(?:Firmware|Graphics|HTML|IR|MySQL|SQL|lib|Bin)$/) { - - push @dirs, "/usr/share/squeezecenter/$dir"; - - } elsif ($dir eq 'Plugins') { - - push @dirs, $class->SUPER::dirsFor($dir); - push @dirs, "/var/lib/squeezecenter/Plugins", "/usr/lib/" . $Config{'package'} . "/vendor_perl/" . $Config{'version'} . "/Slim/Plugin"; - - } elsif ($dir =~ /^(?:strings|revision)$/) { - - push @dirs, "/usr/share/squeezecenter"; - - } elsif ($dir eq 'libpath') { - - push @dirs, "/usr/lib/squeezecenter"; - - # Because we use the system MySQL, we need to point to the right - # directory for the errmsg. files. Default to english. - } elsif ($dir eq 'mysql-language') { - - push @dirs, "/usr/share/mysql/english"; - - } elsif ($dir =~ /^(?:types|convert)$/) { - - push @dirs, "/etc/squeezecenter"; - - } elsif ($dir =~ /^(?:prefs)$/) { - - push @dirs, $::prefsdir || "/var/lib/squeezecenter/prefs"; - - } elsif ($dir eq 'log') { - - push @dirs, $::logdir || "/var/log/squeezecenter"; - - } elsif ($dir eq 'cache') { - - push @dirs, $::cachedir || "/var/lib/squeezecenter/cache"; - - } elsif ($dir =~ /^(?:music|playlists)$/) { - - push @dirs, ''; - - } else { - - warn "dirsFor: Didn't find a match request: [$dir]\n"; - } - - return wantarray() ? @dirs : $dirs[0]; -} - -# Bug 9488, always decode on Ubuntu/Debian -sub decodeExternalHelperPath { - return Slim::Utils::Unicode::utf8decode_locale($_[1]); -} - -sub scanner { - return '/usr/sbin/squeezecenter-scanner'; -} - - -1; - - - - -1; - -__END__ diff --git a/media-sound/squeezecenter/files/mDNSResponder-7.1-gentoo.patch b/media-sound/squeezecenter/files/mDNSResponder-7.1-gentoo.patch deleted file mode 100644 index 8a3559ed1ee8..000000000000 --- a/media-sound/squeezecenter/files/mDNSResponder-7.1-gentoo.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- Slim/Networking/mDNS.pm.old 2008-07-22 12:25:06.000000000 +0100 -+++ Slim/Networking/mDNS.pm 2008-07-22 12:26:38.000000000 +0100 -@@ -131,11 +131,10 @@ - - my ($name, $port) = @$data; - -+ print CONF "\n"; - print CONF "$name\n"; - print CONF "$service\n"; -- print CONF "TXT\n"; - print CONF "$port\n"; -- print CONF "\n"; - } - - close(CONF); diff --git a/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch b/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch deleted file mode 100644 index daa2a4ea8bb8..000000000000 --- a/media-sound/squeezecenter/files/mDNSResponder-gentoo.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- Slim/Networking/mDNS.pm.old 2008-10-27 08:09:02.000000000 +0000 -+++ Slim/Networking/mDNS.pm 2008-10-27 08:09:02.000000000 +0000 -@@ -131,11 +131,10 @@ - - my ($name, $port) = @$data; - -+ print CONF "\n"; - print CONF "$name\n"; - print CONF "$service\n"; -- print CONF "TXT\n"; - print CONF "$port\n"; -- print CONF "\n"; - } - - close(CONF); diff --git a/media-sound/squeezecenter/files/squeezecenter-7.2.1-build-perl-modules-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.2.1-build-perl-modules-gentoo.patch deleted file mode 100644 index 0055b1a49fd8..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.2.1-build-perl-modules-gentoo.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- Bin/build-perl-modules.pl.old 2008-11-18 19:07:45.000000000 +0000 -+++ Bin/build-perl-modules.pl 2008-11-18 19:42:04.000000000 +0000 -@@ -21,13 +21,11 @@ - - # NOTE: If you change this in a future version of SC, create a new - # versioned directory under vendor/src for all files for that version --my $SOURCE = 'http://svn.slimdevices.com/repos/slim/vendor/src/7.2'; - my $dlext = $Config{'dlext'}; - - # The list of all the packages needed. - my %packages = ( - 'Class::XSAccessor::Array' => 'Class-XSAccessor-Array-0.05.tar.gz', -- 'Class::C3::XS' => 'Class-C3-XS-0.08.tar.gz', - 'Compress::Zlib' => 'Compress-Zlib-1.41.tar.gz', - 'DBI' => 'DBI-1.604.tar.gz', - 'DBD::mysql' => 'DBD-mysql-3.0002.tar.gz', -@@ -197,36 +195,16 @@ - } - } - -+ # Utilise AutoXS::Header as we need that to support the following builds. -+ chdir($pwd) or die "Couldn't change to $pwd : $!"; -+ # Include this when performing the following builds. -+ $ENV{'PERL5LIB'} = cwd() . "/AutoXS-Header-0.03/lib"; -+ - for my $package (@packages) { - - chdir($pwd) or die "Couldn't change to $pwd : $!"; - -- print "\nDownloading $package to: $pwd\n"; -- -- # Remove any previous version. -- unlink $package; -- -- if ($downloadUsing eq 'lwp') { -- -- LWP::Simple::getstore("$SOURCE/$package?view=auto", $package); -- -- } elsif ($downloadUsing =~ /curl$/) { -- -- `$downloadUsing --silent -o $package $SOURCE/$package?view=auto`; -- -- } else { -- -- `$downloadUsing -q -O $package $SOURCE/$package?view=auto`; -- } -- -- unless (-r $package) { -- print "Something looks wrong - I couldn't read $pwd/$package, which I just downloaded.\n"; -- } -- -- print "Uncompressing..\n"; -- `gzip -d < $package | tar xvf -`; -- -- unlink $package; -+ print "\nBuilding $package\n"; - - # Just the directory name. - my ($packageDir) = ($package =~ /(\S+?)\.tar\.gz/); ---- Slim/bootstrap.pm.old 2008-11-22 15:14:07.000000000 +0000 -+++ Slim/bootstrap.pm 2008-11-22 15:14:30.000000000 +0000 -@@ -176,7 +176,6 @@ - - print "The following modules failed to load: $failed\n\n"; - -- print "To download and compile them, please run: $libPath/Bin/build-perl-modules.pl $failed\n\n"; - print "Exiting..\n"; - - exit; diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.0-build-perl-modules-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.0-build-perl-modules-gentoo.patch deleted file mode 100644 index 6ae452f8604d..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.0-build-perl-modules-gentoo.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- Bin/build-perl-modules.pl.old 2008-11-18 19:07:45.000000000 +0000 -+++ Bin/build-perl-modules.pl 2008-11-18 19:42:04.000000000 +0000 -@@ -21,13 +21,11 @@ - - # NOTE: If you change this in a future version of SC, create a new - # versioned directory under vendor/src for all files for that version --my $SOURCE = 'http://svn.slimdevices.com/repos/slim/vendor/src/7.3'; - my $dlext = $Config{'dlext'}; - - # The list of all the packages needed. - my %packages = ( - 'Class::XSAccessor::Array' => 'Class-XSAccessor-Array-0.05.tar.gz', -- 'Class::C3::XS' => 'Class-C3-XS-0.08.tar.gz', - 'Compress::Zlib' => 'Compress-Zlib-1.41.tar.gz', - 'DBI' => 'DBI-1.604.tar.gz', - 'DBD::mysql' => 'DBD-mysql-3.0002.tar.gz', -@@ -197,36 +195,16 @@ - } - } - -+ # Utilise AutoXS::Header as we need that to support the following builds. -+ chdir($pwd) or die "Couldn't change to $pwd : $!"; -+ # Include this when performing the following builds. -+ $ENV{'PERL5LIB'} = cwd() . "/AutoXS-Header-0.03/lib"; -+ - for my $package (@packages) { - - chdir($pwd) or die "Couldn't change to $pwd : $!"; - -- print "\nDownloading $package to: $pwd\n"; -- -- # Remove any previous version. -- unlink $package; -- -- if ($downloadUsing eq 'lwp') { -- -- LWP::Simple::getstore("$SOURCE/$package?view=auto", $package); -- -- } elsif ($downloadUsing =~ /curl$/) { -- -- `$downloadUsing --silent -o $package $SOURCE/$package?view=auto`; -- -- } else { -- -- `$downloadUsing -q -O $package $SOURCE/$package?view=auto`; -- } -- -- unless (-r $package) { -- print "Something looks wrong - I couldn't read $pwd/$package, which I just downloaded.\n"; -- } -- -- print "Uncompressing..\n"; -- `gzip -d < $package | tar xvf -`; -- -- unlink $package; -+ print "\nBuilding $package\n"; - - # Just the directory name. - my ($packageDir) = ($package =~ /(\S+?)\.tar\.gz/); ---- Slim/bootstrap.pm.old 2008-11-22 15:14:07.000000000 +0000 -+++ Slim/bootstrap.pm 2008-11-22 15:14:30.000000000 +0000 -@@ -176,7 +176,6 @@ - - print "The following modules failed to load: $failed\n\n"; - -- print "To download and compile them, please run: $libPath/Bin/build-perl-modules.pl $failed\n\n"; - print "Exiting..\n"; - - exit; diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.1-aac-transcode-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.1-aac-transcode-gentoo.patch deleted file mode 100644 index 75d9f7f38de1..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.1-aac-transcode-gentoo.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- convert.conf.old 2009-01-17 14:33:33.000000000 +0000 -+++ convert.conf 2009-01-17 15:04:25.000000000 +0000 -@@ -74,8 +74,8 @@ - # specific combinations match before wildcards - - mov mp3 * * -- # FRB:{BITRATE=-B %B} -- [mov123] $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - - -+ # FB:{BITRATE=-B %B} -+ [faad] -q -w -f 2 $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ $BITRATE$ -x -r - - - - alc mp3 * * - # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -@@ -158,9 +158,13 @@ - [wvunpack] $FILE$ -rq $START$ $END$ -o - - - ## you can comment this out if you want to use LAME to transcode AAC/MOV files to MP3. --mov aif * * -- # FR -- [mov123] $FILE$ -+#mov aif * * -+# # FR -+# [mov123] $FILE$ -+ -+mov wav * * -+ # F -+ [faad] -q -w -f 2 $FILE$ - - wma wma * * - - -@@ -198,8 +202,8 @@ - [mac] $FILE$ - -d | [flac] -cs --totally-silent --compression-level-0 - - - mov flc * * -- # FR -- [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - -+ # F -+ [faad] -q -w -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 - - - alc flc * * - # F diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.1-build-perl-modules-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.1-build-perl-modules-gentoo.patch deleted file mode 100644 index 37de856422d6..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.1-build-perl-modules-gentoo.patch +++ /dev/null @@ -1,80 +0,0 @@ ---- Bin/build-perl-modules.pl.old 2009-01-04 17:55:46.000000000 +0000 -+++ Bin/build-perl-modules.pl 2009-01-05 18:53:33.000000000 +0000 -@@ -21,24 +21,12 @@ - - # NOTE: If you change this in a future version of SC, create a new - # versioned directory under vendor/src for all files for that version --my $SOURCE = 'http://svn.slimdevices.com/repos/slim/vendor/src/7.3'; - my $dlext = $Config{'dlext'}; - - # The list of all the packages needed. - my %packages = ( - 'Class::XSAccessor::Array' => 'Class-XSAccessor-Array-0.05.tar.gz', -- 'Compress::Zlib' => 'Compress-Zlib-1.41.tar.gz', -- 'DBI' => 'DBI-1.604.tar.gz', -- 'DBD::mysql' => 'DBD-mysql-3.0002.tar.gz', -- 'Digest::SHA1' => 'Digest-SHA1-2.11.tar.gz', -- 'Encode::Detect' => 'Encode-Detect-1.00.tar.gz', -- 'JSON::XS' => 'JSON-XS-1.5.tar.gz', -- 'HTML::Parser' => 'HTML-Parser-3.48.tar.gz', - 'POE::XS::Queue::Array' => 'POE-XS-Queue-Array-0.002.tar.gz', -- 'Template' => 'Template-Toolkit-2.15.tar.gz', -- 'Time::HiRes' => 'Time-HiRes-1.86.tar.gz', -- 'XML::Parser::Expat' => 'XML-Parser-2.34.tar.gz', -- 'YAML::Syck' => 'YAML-Syck-0.64.tar.gz', - ); - - # Don't need Class::C3::XS if you're running 5.10 -@@ -196,36 +184,16 @@ - } - } - -+ # Utilise AutoXS::Header as we need that to support the following builds. -+ chdir($pwd) or die "Couldn't change to $pwd : $!"; -+ # Include this when performing the following builds. -+ $ENV{'PERL5LIB'} = cwd() . "/AutoXS-Header-0.03/lib"; -+ - for my $package (@packages) { - - chdir($pwd) or die "Couldn't change to $pwd : $!"; - -- print "\nDownloading $package to: $pwd\n"; -- -- # Remove any previous version. -- unlink $package; -- -- if ($downloadUsing eq 'lwp') { -- -- LWP::Simple::getstore("$SOURCE/$package?view=auto", $package); -- -- } elsif ($downloadUsing =~ /curl$/) { -- -- `$downloadUsing --silent -o $package $SOURCE/$package?view=auto`; -- -- } else { -- -- `$downloadUsing -q -O $package $SOURCE/$package?view=auto`; -- } -- -- unless (-r $package) { -- print "Something looks wrong - I couldn't read $pwd/$package, which I just downloaded.\n"; -- } -- -- print "Uncompressing..\n"; -- `gzip -d < $package | tar xvf -`; -- -- unlink $package; -+ print "\nBuilding $package\n"; - - # Just the directory name. - my ($packageDir) = ($package =~ /(\S+?)\.tar\.gz/); ---- Slim/bootstrap.pm.old 2008-11-22 15:14:07.000000000 +0000 -+++ Slim/bootstrap.pm 2008-11-22 15:14:30.000000000 +0000 -@@ -176,7 +176,6 @@ - - print "The following modules failed to load: $failed\n\n"; - -- print "To download and compile them, please run: $libPath/Bin/build-perl-modules.pl $failed\n\n"; - print "Exiting..\n"; - - exit; diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.1-json-xs-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.1-json-xs-gentoo.patch deleted file mode 100644 index a1c4e080614a..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.1-json-xs-gentoo.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- Slim/Formats/XML.pm.old 2009-01-17 21:27:29.000000000 +0000 -+++ Slim/Formats/XML.pm 2009-01-17 21:40:14.000000000 +0000 -@@ -13,7 +13,7 @@ - use strict; - use File::Slurp; - use HTML::Entities; --use JSON::XS qw(from_json); -+use JSON::XS qw(decode_json); - use Scalar::Util qw(weaken); - use URI::Escape qw(uri_escape); - use XML::Simple; -@@ -288,7 +288,7 @@ - my $xml; - - if ( $type =~ /json/ ) { -- $xml = from_json($$content); -+ $xml = decode_json($$content); - } - else { - $xml = xmlToHash($content); diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.2-aac-transcode-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.2-aac-transcode-gentoo.patch deleted file mode 100644 index 8500e3d57071..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.2-aac-transcode-gentoo.patch +++ /dev/null @@ -1,40 +0,0 @@ ---- convert.conf.old 2009-01-21 12:10:24.000000000 +0000 -+++ convert.conf 2009-01-21 20:22:05.000000000 +0000 -@@ -74,8 +74,8 @@ - # specific combinations match before wildcards - - mov mp3 * * -- # FRB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -- [mov123] $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - - -+ # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -+ [faad] -q -w -f 2 $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - - - - alc mp3 * * - # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -@@ -158,9 +158,12 @@ - [wvunpack] $FILE$ -rq $START$ $END$ -o - - - ## you can comment this out if you want to use LAME to transcode AAC/MOV files to MP3. --mov aif * * -- # FR -- [mov123] $FILE$ -+#mov aif * * -+# # FR -+# [mov123] $FILE$ -+mov wav * * -+ # F -+ [faad] -q -w -f 2 $FILE$ - - wma wma * * - - -@@ -198,8 +201,8 @@ - [mac] $FILE$ - -d | [flac] -cs --totally-silent --compression-level-0 - - - mov flc * * -- # FR -- [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - -+ # F -+ [faad] -q -w -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 - - - alc flc * * - # F diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.2-build-perl-modules-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.2-build-perl-modules-gentoo.patch deleted file mode 100644 index 37de856422d6..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.2-build-perl-modules-gentoo.patch +++ /dev/null @@ -1,80 +0,0 @@ ---- Bin/build-perl-modules.pl.old 2009-01-04 17:55:46.000000000 +0000 -+++ Bin/build-perl-modules.pl 2009-01-05 18:53:33.000000000 +0000 -@@ -21,24 +21,12 @@ - - # NOTE: If you change this in a future version of SC, create a new - # versioned directory under vendor/src for all files for that version --my $SOURCE = 'http://svn.slimdevices.com/repos/slim/vendor/src/7.3'; - my $dlext = $Config{'dlext'}; - - # The list of all the packages needed. - my %packages = ( - 'Class::XSAccessor::Array' => 'Class-XSAccessor-Array-0.05.tar.gz', -- 'Compress::Zlib' => 'Compress-Zlib-1.41.tar.gz', -- 'DBI' => 'DBI-1.604.tar.gz', -- 'DBD::mysql' => 'DBD-mysql-3.0002.tar.gz', -- 'Digest::SHA1' => 'Digest-SHA1-2.11.tar.gz', -- 'Encode::Detect' => 'Encode-Detect-1.00.tar.gz', -- 'JSON::XS' => 'JSON-XS-1.5.tar.gz', -- 'HTML::Parser' => 'HTML-Parser-3.48.tar.gz', - 'POE::XS::Queue::Array' => 'POE-XS-Queue-Array-0.002.tar.gz', -- 'Template' => 'Template-Toolkit-2.15.tar.gz', -- 'Time::HiRes' => 'Time-HiRes-1.86.tar.gz', -- 'XML::Parser::Expat' => 'XML-Parser-2.34.tar.gz', -- 'YAML::Syck' => 'YAML-Syck-0.64.tar.gz', - ); - - # Don't need Class::C3::XS if you're running 5.10 -@@ -196,36 +184,16 @@ - } - } - -+ # Utilise AutoXS::Header as we need that to support the following builds. -+ chdir($pwd) or die "Couldn't change to $pwd : $!"; -+ # Include this when performing the following builds. -+ $ENV{'PERL5LIB'} = cwd() . "/AutoXS-Header-0.03/lib"; -+ - for my $package (@packages) { - - chdir($pwd) or die "Couldn't change to $pwd : $!"; - -- print "\nDownloading $package to: $pwd\n"; -- -- # Remove any previous version. -- unlink $package; -- -- if ($downloadUsing eq 'lwp') { -- -- LWP::Simple::getstore("$SOURCE/$package?view=auto", $package); -- -- } elsif ($downloadUsing =~ /curl$/) { -- -- `$downloadUsing --silent -o $package $SOURCE/$package?view=auto`; -- -- } else { -- -- `$downloadUsing -q -O $package $SOURCE/$package?view=auto`; -- } -- -- unless (-r $package) { -- print "Something looks wrong - I couldn't read $pwd/$package, which I just downloaded.\n"; -- } -- -- print "Uncompressing..\n"; -- `gzip -d < $package | tar xvf -`; -- -- unlink $package; -+ print "\nBuilding $package\n"; - - # Just the directory name. - my ($packageDir) = ($package =~ /(\S+?)\.tar\.gz/); ---- Slim/bootstrap.pm.old 2008-11-22 15:14:07.000000000 +0000 -+++ Slim/bootstrap.pm 2008-11-22 15:14:30.000000000 +0000 -@@ -176,7 +176,6 @@ - - print "The following modules failed to load: $failed\n\n"; - -- print "To download and compile them, please run: $libPath/Bin/build-perl-modules.pl $failed\n\n"; - print "Exiting..\n"; - - exit; diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.2-json-xs-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.2-json-xs-gentoo.patch deleted file mode 100644 index a1c4e080614a..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.2-json-xs-gentoo.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- Slim/Formats/XML.pm.old 2009-01-17 21:27:29.000000000 +0000 -+++ Slim/Formats/XML.pm 2009-01-17 21:40:14.000000000 +0000 -@@ -13,7 +13,7 @@ - use strict; - use File::Slurp; - use HTML::Entities; --use JSON::XS qw(from_json); -+use JSON::XS qw(decode_json); - use Scalar::Util qw(weaken); - use URI::Escape qw(uri_escape); - use XML::Simple; -@@ -288,7 +288,7 @@ - my $xml; - - if ( $type =~ /json/ ) { -- $xml = from_json($$content); -+ $xml = decode_json($$content); - } - else { - $xml = xmlToHash($content); diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.2-r2-json-xs-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.2-r2-json-xs-gentoo.patch deleted file mode 100644 index 1b9ae030201c..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.2-r2-json-xs-gentoo.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- Slim/Formats/XML.pm.old 2009-03-23 20:59:53.000000000 +0000 -+++ Slim/Formats/XML.pm 2009-03-23 21:00:02.000000000 +0000 -@@ -13,7 +13,7 @@ - use strict; - use File::Slurp; - use HTML::Entities; --use JSON::XS qw(from_json); -+use JSON::XS::VersionOneAndTwo; - use Scalar::Util qw(weaken); - use URI::Escape qw(uri_escape); - use XML::Simple; ---- Slim/Plugin/LastFM/ProtocolHandler.pm.old 2009-03-23 20:54:42.000000000 +0000 -+++ Slim/Plugin/LastFM/ProtocolHandler.pm 2009-03-23 20:55:15.000000000 +0000 -@@ -7,7 +7,7 @@ - use strict; - use base qw(Slim::Player::Protocols::HTTP); - --use JSON::XS qw(from_json); -+use JSON::XS::VersionOneAndTwo; - use URI::Escape qw(uri_escape_utf8); - - use Slim::Player::Playlist; ---- Slim/Plugin/Sirius/ProtocolHandler.pm.old 2009-03-23 20:55:21.000000000 +0000 -+++ Slim/Plugin/Sirius/ProtocolHandler.pm 2009-03-23 20:55:34.000000000 +0000 -@@ -19,7 +19,7 @@ - use Slim::Utils::Timers; - - use HTTP::Request; --use JSON::XS qw(from_json); -+use JSON::XS::VersionOneAndTwo; - use URI::Escape qw(uri_escape); - - my $log = Slim::Utils::Log->addLogCategory( { diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-aac-transcode-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-aac-transcode-gentoo.patch deleted file mode 100644 index de0f6bd2e1e8..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-aac-transcode-gentoo.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- convert.conf.old 2009-06-17 10:48:13.000000000 +0100 -+++ convert.conf 2009-06-17 10:48:13.000000000 +0100 -@@ -82,8 +82,8 @@ - [faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE - - - - mov mp3 * * -- # FRB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -- [mov123] $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - - -+ # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -+ [faad] -q -w -f 2 $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - - - - alc mp3 * * - # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -@@ -173,9 +173,9 @@ - # IF - [faad] -q -w -f 2 -b 1 -s 44100 $FILE$ - --mov aif * * -- # FR -- [mov123] $FILE$ -+mov wav * * -+ # F -+ [faad] -q -w -f 2 $FILE$ - - wma wma * * - - -@@ -221,8 +221,8 @@ - [faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - - - mov flc * * -- # FR -- [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - -+ # F -+ [faad] -q -w -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 - - - alc flc * * - # F diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-build-perl-modules-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-build-perl-modules-gentoo.patch deleted file mode 100644 index b40f1fcb6e90..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-build-perl-modules-gentoo.patch +++ /dev/null @@ -1,81 +0,0 @@ ---- Bin/build-perl-modules.pl.old 2009-06-17 10:48:13.513324795 +0100 -+++ Bin/build-perl-modules.pl 2009-05-26 12:37:27.147159782 +0100 -@@ -21,25 +21,12 @@ - - # NOTE: If you change this in a future version of SC, create a new - # versioned directory under vendor/src for all files for that version --my $SOURCE = 'http://svn.slimdevices.com/repos/slim/vendor/src/7.3'; - my $dlext = $Config{'dlext'}; - - # The list of all the packages needed. - my %packages = ( - 'Class::XSAccessor::Array' => 'Class-XSAccessor-Array-0.05.tar.gz', -- 'Compress::Zlib' => 'Compress-Zlib-1.41.tar.gz', -- 'DBI' => 'DBI-1.604.tar.gz', -- 'DBD::mysql' => 'DBD-mysql-3.0002.tar.gz', -- 'Digest::SHA1' => 'Digest-SHA1-2.11.tar.gz', -- 'Encode::Detect' => 'Encode-Detect-1.00.tar.gz', -- 'JSON::XS' => 'JSON-XS-1.5.tar.gz', -- 'HTML::Parser' => 'HTML-Parser-3.48.tar.gz', - 'POE::XS::Queue::Array' => 'POE-XS-Queue-Array-0.002.tar.gz', -- 'Template' => 'Template-Toolkit-2.15.tar.gz', -- 'Time::HiRes' => 'Time-HiRes-1.86.tar.gz', -- 'XML::Parser::Expat' => 'XML-Parser-2.34.tar.gz', -- 'YAML::Syck' => 'YAML-Syck-0.64.tar.gz', -- 'GD' => 'GD-2.35.tar.gz', - ); - - # Don't need Class::C3::XS if you're running 5.10 -@@ -197,36 +184,16 @@ - } - } - -+ # Utilise AutoXS::Header as we need that to support the following builds. -+ chdir($pwd) or die "Couldn't change to $pwd : $!"; -+ # Include this when performing the following builds. -+ $ENV{'PERL5LIB'} = cwd() . "/AutoXS-Header-0.03/lib"; -+ - for my $package (@packages) { - - chdir($pwd) or die "Couldn't change to $pwd : $!"; - -- print "\nDownloading $package to: $pwd\n"; -- -- # Remove any previous version. -- unlink $package; -- -- if ($downloadUsing eq 'lwp') { -- -- LWP::Simple::getstore("$SOURCE/$package?view=auto", $package); -- -- } elsif ($downloadUsing =~ /curl$/) { -- -- `$downloadUsing --silent -o $package $SOURCE/$package?view=auto`; -- -- } else { -- -- `$downloadUsing -q -O $package $SOURCE/$package?view=auto`; -- } -- -- unless (-r $package) { -- print "Something looks wrong - I couldn't read $pwd/$package, which I just downloaded.\n"; -- } -- -- print "Uncompressing..\n"; -- `gzip -d < $package | tar xvf -`; -- -- unlink $package; -+ print "\nBuilding $package\n"; - - # Just the directory name. - my ($packageDir) = ($package =~ /(\S+?)\.tar\.gz/); ---- Slim/bootstrap.pm.old 2009-06-17 10:48:13.000000000 +0100 -+++ Slim/bootstrap.pm 2009-06-17 10:48:13.581149121 +0100 -@@ -176,7 +176,6 @@ - - print "The following modules failed to load: $failed\n\n"; - -- print "To download and compile them, please run: $libPath/Bin/build-perl-modules.pl $failed\n\n"; - print "Exiting..\n"; - - exit; diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-json-xs-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-json-xs-gentoo.patch deleted file mode 100644 index 507f1580e421..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-json-xs-gentoo.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- Slim/Formats/XML.pm.old 2009-03-23 20:59:53.000000000 +0000 -+++ Slim/Formats/XML.pm 2009-06-17 10:48:13.000000000 +0100 -@@ -13,7 +13,7 @@ - use strict; - use File::Slurp; - use HTML::Entities; --use JSON::XS qw(from_json); -+use JSON::XS::VersionOneAndTwo; - use Scalar::Util qw(weaken); - use URI::Escape qw(uri_escape); - use XML::Simple; ---- Slim/Plugin/LastFM/ProtocolHandler.pm.old 2009-03-23 21:44:12.045581972 +0000 -+++ Slim/Plugin/LastFM/ProtocolHandler.pm 2009-06-17 10:48:13.000000000 +0100 -@@ -7,7 +7,7 @@ - use strict; - use base qw(Slim::Player::Protocols::HTTP); - --use JSON::XS qw(from_json); -+use JSON::XS::VersionOneAndTwo; - use URI::Escape qw(uri_escape_utf8); - - use Slim::Player::Playlist; ---- Slim/Plugin/Sirius/ProtocolHandler.pm.old 2009-03-23 21:44:12.000000000 +0000 -+++ Slim/Plugin/Sirius/ProtocolHandler.pm 2009-06-17 10:48:13.547934811 +0100 -@@ -19,7 +19,7 @@ - use Slim::Utils::Timers; - - use HTTP::Request; --use JSON::XS qw(from_json); -+use JSON::XS::VersionOneAndTwo; - use URI::Escape qw(uri_escape); - - my $log = Slim::Utils::Log->addLogCategory( { diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-mDNSResponder-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-mDNSResponder-gentoo.patch deleted file mode 100644 index 6cb5739c37f5..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-mDNSResponder-gentoo.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- Slim/Networking/mDNS.pm.old 2009-03-10 21:09:33.000000000 +0000 -+++ Slim/Networking/mDNS.pm 2009-03-10 21:09:33.000000000 +0000 -@@ -131,11 +131,10 @@ - - my ($name, $port) = @$data; - -+ print CONF "\n"; - print CONF "$name\n"; - print CONF "$service\n"; -- print CONF "TXT\n"; - print CONF "$port\n"; -- print CONF "\n"; - } - - close(CONF); diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-r1-aac-transcode-gentoo.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-r1-aac-transcode-gentoo.patch deleted file mode 100644 index 97cadbc27b90..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-r1-aac-transcode-gentoo.patch +++ /dev/null @@ -1,63 +0,0 @@ ---- convert.conf.old 2009-06-26 19:51:50.000000000 +0100 -+++ convert.conf 2009-07-10 08:30:31.000000000 +0100 -@@ -75,15 +75,15 @@ - - mp4 mp3 * * - # FB:{BITRATE=-B %B} -- [faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE - - -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 | [lame] --silent -q $QUALITY$ $BITRATE - - - - aac mp3 * * - # IFB:{BITRATE=-B %B} -- [faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE - - -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 | [lame] --silent -q $QUALITY$ $BITRATE - - - - mov mp3 * * -- # FRB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -- [mov123] $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - - -+ # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - - - - alc mp3 * * - # FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D} -@@ -167,15 +167,15 @@ - - mp4 wav * * - # F -- [faad] -q -w -f 2 -b 1 -s 44100 $FILE$ -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 - - aac wav * * - # IF -- [faad] -q -w -f 2 -b 1 -s 44100 $FILE$ -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 - --mov aif * * -- # FR -- [mov123] $FILE$ -+mov wav * * -+ # F -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 - - wma wma * * - - -@@ -214,15 +214,15 @@ - - mp4 flc * * - # F -- [faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - - - aac flc * * - # IF -- [faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes - - - mov flc * * -- # FR -- [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - -+ # F -+ [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null 2>&1 | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 - - - alc flc * * - # F diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave-2.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave-2.patch deleted file mode 100644 index 934aa5c836bf..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave-2.patch +++ /dev/null @@ -1,31 +0,0 @@ -Index: Slim/Player/SqueezeSlave.pm -=================================================================== ---- Slim/Player/SqueezeSlave.pm (revision 26719) -+++ Slim/Player/SqueezeSlave.pm (revision 26720) -@@ -102,6 +102,7 @@ - ); - - sub dBToFixed { -+ my $client = shift; - my $db = shift; - - # Map a floating point dB value to a 16.16 fixed point value to -@@ -147,7 +148,7 @@ - # With new style volume, let's try -49.5dB as the lowest - # value. - my $db = ($volume - 100)/2; -- $newGain = dBToFixed($db); -+ $newGain = $client->dBToFixed($db); - } - - my $data = pack('NNCCNN', $oldGain, $oldGain, $prefs->client($client)->get('digitalVolumeControl'), $preamp, $newGain, $newGain); -@@ -203,6 +204,9 @@ - sub hasDigitalOut { - return 0; - } -+sub hasPowerControl { -+ return 0; -+} - - sub pcm_sample_rates { - my $client = shift; diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave-3.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave-3.patch deleted file mode 100644 index 3634fd3a3079..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave-3.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: Slim/Player/SqueezeSlave.pm -=================================================================== ---- Slim/Player/SqueezeSlave.pm (revision 25815) -+++ Slim/Player/SqueezeSlave.pm (revision 25816) -@@ -133,7 +133,7 @@ - my $newvolume = shift; - - my $volume = $client->Slim::Player::Client::volume($newvolume, @_); -- my $preamp = 255 - int(2 * $prefs->client($client)->get('preampVolumeControl')); -+ my $preamp = 255 - int(2 * ($prefs->client($client)->get('preampVolumeControl') || 0)); - - if (defined($newvolume)) { - # Old style volume: diff --git a/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave.patch b/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave.patch deleted file mode 100644 index 3ade990a358e..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter-7.3.3-squeezeslave.patch +++ /dev/null @@ -1,514 +0,0 @@ -Index: Slim/Networking/Slimproto.pm -=================================================================== ---- Slim/Networking/Slimproto.pm (revision 25808) -+++ Slim/Networking/Slimproto.pm (revision 25809) -@@ -1081,7 +1081,7 @@ - } elsif ($deviceids[$deviceid] eq 'squeezeslave') { - - $client_class = 'Slim::Player::SqueezeSlave'; -- $display_class = 'Slim::Display::NoDisplay'; -+ $display_class = 'Slim::Display::Text'; - - } elsif ($deviceids[$deviceid] eq 'squeezeplay' || $deviceids[$deviceid] eq 'controller') { - -Index: Slim/Player/SqueezeSlave.pm -=================================================================== ---- Slim/Player/SqueezeSlave.pm (revision 25808) -+++ Slim/Player/SqueezeSlave.pm (revision 25809) -@@ -36,22 +36,9 @@ - our $defaultPrefs = { - 'replayGainMode' => 0, - 'minSyncAdjust' => 30, # ms -+ 'maxBitrate' => 0, # no bitrate limiting - }; - --# Keep track of direct stream redirects --our $redirects = {}; -- -- --sub new { -- my $class = shift; -- -- my $client = $class->SUPER::new(@_); -- -- bless $client, $class; -- -- return $client; --} -- - sub initPrefs { - my $client = shift; - -@@ -74,7 +61,7 @@ - - sub modelName { 'Squeezeslave' } - --sub hasIR { return 0; } -+sub hasIR { 1 } - - # in order of preference based on whether we're connected via wired or wireless... - sub formats { -@@ -130,6 +117,17 @@ - } - } - -+sub canDoReplayGain { -+ my $client = shift; -+ my $replay_gain = shift; -+ -+ if (defined($replay_gain)) { -+ return $client->dBToFixed($replay_gain); -+ } -+ -+ return 0; -+} -+ - sub volume { - my $client = shift; - my $newvolume = shift; -@@ -304,4 +302,28 @@ - } - - -+# We need to implement this to allow us to receive SETD commands -+# and we need SETD to support custom display widths -+sub directBodyFrame { -+ return 1; -+} -+ -+# Allow the player to define it's display width -+sub playerSettingsFrame { -+ my $client = shift; -+ my $data_ref = shift; -+ -+ my $value; -+ my $id = unpack('C', $$data_ref); -+ -+ # New SETD command 0xfe for display width -+ if ($id == 0xfe) { -+ $value = (unpack('CC', $$data_ref))[1]; -+ if ($value > 10 && $value < 200) { -+ $client->display->widthOverride(1, $value); -+ $client->update; -+ } -+ } -+} -+ - 1; -Index: Slim/Display/Text.pm -=================================================================== ---- Slim/Display/Text.pm (revision 25808) -+++ Slim/Display/Text.pm (revision 25809) -@@ -14,8 +14,8 @@ - =head1 DESCRIPTION - - L<Slim::Display::Text> -- Display code for text (character) based displays: Slimp3, SB1 -- - 40 character x 2 lines -+ Display code for text (character) based displays: Slimp3, SB1, squeezeslave -+ - 40 (or client controlled) character x 2 lines - - server side animation - - =cut -@@ -33,6 +33,8 @@ - my $scroll_pad_scroll = 6; # chars of padding between scrolling text - my $scroll_pad_ticker = 8; # chars of padding in ticker mode - -+my $defaultWidth = 40; # default character width of display (unless client tells us otherwise) -+ - our $defaultPrefs = { - 'doublesize' => 0, - 'offDisplaySize' => 0, -@@ -44,34 +46,7 @@ - 'playingDisplayModes' => [0..5] - }; - --# Display Modes - --my @modes = ( -- # mode 0 -- { desc => ['BLANK'], -- bar => 0, secs => 0, width => 40, }, -- # mode 1 -- { desc => ['ELAPSED'], -- bar => 0, secs => 1, width => 40, }, -- # mode 2 -- { desc => ['REMAINING'], -- bar => 0, secs => -1, width => 40, }, -- # mode 3 -- { desc => ['PROGRESS_BAR'], -- bar => 1, secs => 0, width => 40, }, -- # mode 4 -- { desc => ['ELAPSED', 'AND', 'PROGRESS_BAR'], -- bar => 1, secs => 1, width => 40, }, -- # mode 5 -- { desc => ['REMAINING', 'AND', 'PROGRESS_BAR'], -- bar => 1, secs => -1, width => 40, }, -- # mode 6 -- { desc => ['SETUP_SHOWBUFFERFULLNESS'], -- bar => 1, secs => 0, width => 40, fullness => 1, }, --); -- --my $nmodes = $#modes; -- - sub initPrefs { - my $display = shift; - -@@ -101,7 +76,8 @@ - } - - sub displayWidth { -- return 40; -+ my $display = shift; -+ return $display->widthOverride || $defaultWidth; - } - - sub vfdmodel { -@@ -109,7 +85,6 @@ - my $client = $display->client; - - if ($client->isa('Slim::Player::SLIMP3')) { -- - if ($client->revision >= 2.2) { - my $mac = $client->macaddress(); - if ($mac eq '00:04:20:03:04:e0') { -@@ -124,7 +99,8 @@ - } else { - return 'noritake-katakana'; - } -- -+ } elsif ($client->isa('Slim::Player::SqueezeSlave')) { -+ return 'squeezeslave'; - } else { - # Squeezebox 1 - return 'noritake-european'; -@@ -198,11 +174,11 @@ - $sc->{newscroll} = 0; - $sc->{present} = 1; - -- # force initialisation of cache if size = 0 (used to init cache) -- if ($sc->{ssize} != 40) { -- $sc->{ssize} = 40; -+ # force (re)initialisation of cache if size changed -+ if ($sc->{ssize} != $display->displayWidth) { - $sc->{double} = 0; - $sc->{changed} = 1; -+ $sc->{ssize} = $display->displayWidth; - } - - # check display hash for text size definitions -@@ -232,12 +208,13 @@ - if ($sc->{changed}) { - foreach my $l (0..1) { - $sc->{line}[$l] = undef; $sc->{linetext}[$l] = ''; $sc->{linefinish}[$l] = 0; -- $sc->{overlay}[$l] = undef; $sc->{overlaytext}[$l] = ''; $sc->{overlaystart}[$l] = 40; -+ $sc->{overlay}[$l] = undef; $sc->{overlaytext}[$l] = ''; $sc->{overlaystart}[$l] = $display->displayWidth; - $sc->{center}[$l] = undef; $sc->{centertext}[$l] = ''; - } - $sc->{scroll} = 0; - $sc->{scrollline} = undef; - } -+ - if (!$scroll) { - $sc->{scroll} = 0; - $sc->{scrollline} = undef; -@@ -298,17 +275,17 @@ - } else { - $sc->{overlaytext}[$l] = ''; - } -- if (lineLength($sc->{overlaytext}[$l]) > 40 ) { -- $sc->{overlaytext}[$l] = subString($sc->{overlaytext}[$l], 0, 40); -- $sc->{overlaystart}[$l] = 40; -+ if (lineLength($sc->{overlaytext}[$l]) > $display->displayWidth ) { -+ $sc->{overlaytext}[$l] = subString($sc->{overlaytext}[$l], 0, $display->displayWidth); -+ $sc->{overlaystart}[$l] = $display->displayWidth; - } else { -- $sc->{overlaystart}[$l] = 40 - lineLength($sc->{overlaytext}[$l]); -+ $sc->{overlaystart}[$l] = $display->displayWidth - lineLength($sc->{overlaytext}[$l]); - } - $sc->{changed} = 1; - } elsif (!defined($screen->{overlay}[$l]) && defined($sc->{overlay}[$l])) { - $sc->{overlay}[$l] = undef; - $sc->{overlaytext}[$l] = ''; -- $sc->{overlaystart}[$l] = 40; -+ $sc->{overlaystart}[$l] = $display->displayWidth; - $sc->{changed} = 1; - } - } -@@ -320,22 +297,22 @@ - $sc->{center}[$l] = $screen->{center}[$l]; - next if ($double && $l == 0); - if (!$double) { -- my $len = lineLength($sc->{center}[$l]); -- if ($len < 39) { -- $sc->{centertext}[$l] = ' ' x ((40 - $len)/2) . $screen->{center}[$l] . -- ' ' x (40 - $len - int((40 - $len)/2)); -+ my $len = lineLength($screen->{center}[$l]); -+ if ($len < $display->displayWidth - 1) { -+ $sc->{centertext}[$l] = ' ' x (($display->displayWidth - $len)/2) . $screen->{center}[$l] . -+ ' ' x ($display->displayWidth - $len - int(($display->displayWidth - $len)/2)); - } else { -- $sc->{centertext}[$l] = subString($sc->{center}[$l] . ' ', 0 ,40); -+ $sc->{centertext}[$l] = subString($screen->{center}[$l] . ' ', 0, $display->displayWidth); - } - } else { - my ($center1, $center2) = Slim::Display::Lib::TextVFD::doubleSize($client,$screen->{center}[1]); - my $len = lineLength($center1); -- if ($len < 39) { -- $sc->{centertext}[0] = ' ' x ((40 - $len)/2) . $center1 . ' ' x (40 - $len - int((40 - $len)/2)); -- $sc->{centertext}[1] = ' ' x ((40 - $len)/2) . $center2 . ' ' x (40 - $len - int((40 - $len)/2)); -+ if ($len < $display->displayWidth - 1) { -+ $sc->{centertext}[0] = ' ' x (($display->displayWidth - $len)/2) . $center1 . ' ' x ($display->displayWidth - $len - int(($display->displayWidth - $len)/2)); -+ $sc->{centertext}[1] = ' ' x (($display->displayWidth - $len)/2) . $center2 . ' ' x ($display->displayWidth - $len - int(($display->displayWidth - $len)/2)); - } else { -- $sc->{centertext}[0] = subString($center1 . ' ', 0 ,40); -- $sc->{centertext}[1] = subString($center2 . ' ', 0 ,40); -+ $sc->{centertext}[0] = subString($center1 . ' ', 0 ,$display->displayWidth); -+ $sc->{centertext}[1] = subString($center2 . ' ', 0 ,$display->displayWidth); - } - } - $sc->{changed} = 1; -@@ -426,11 +403,11 @@ - $sc->{scrollstart} = 0; - if ($scroll == 1) { - # normal wrapped text scrolling -- $scrolltext .= ' ' x $scroll_pad_scroll . subString($scrolltext, 0, 40); -+ $scrolltext .= ' ' x $scroll_pad_scroll . subString($scrolltext, 0, $display->displayWidth); - $sc->{scrollend} = $sc->{linefinish}[$l] + $scroll_pad_scroll; - } else { - # don't wrap text - scroll to end only -- $sc->{scrollend} = $sc->{linefinish}[$l] - 40; -+ $sc->{scrollend} = $sc->{linefinish}[$l] - $display->displayWidth; - } - - if (!$double || $l == 0) { -@@ -472,7 +449,7 @@ - my $line2 = $$line2start . $$line2end; - - $display->killAnimation(); -- $display->pushUpdate([\$line1, \$line2, 0, 5, 40, 0.02]); -+ $display->pushUpdate([\$line1, \$line2, 0, 4, $display->displayWidth, 0.02]); - } - - sub pushRight { -@@ -489,7 +466,7 @@ - my $line2 = $$line2end . $$line2start; - - $display->killAnimation(); -- $display->pushUpdate([\$line1, \$line2, 40, -5, 0, 0.02]); -+ $display->pushUpdate([\$line1, \$line2, $display->displayWidth, -4, 0, 0.02]); - } - - sub pushUp { -@@ -536,9 +513,12 @@ - my ($line1, $line2, $offset, $delta, $end, $deltatime) = @$params; - - $offset += $delta; -+ # With custom widths, offset may not be a factor of the width, so fix up to avoid problems! -+ $offset=$end if ($delta > 0 && $offset > $end); -+ $offset=$end if ($delta < 0 && $offset < $end); - -- my $screenline1 = subString($$line1, $offset, 40); -- my $screenline2 = subString($$line2, $offset, 40); -+ my $screenline1 = subString($$line1, $offset, $display->displayWidth); -+ my $screenline2 = subString($$line2, $offset, $display->displayWidth); - - Slim::Display::Lib::TextVFD::vfdUpdate($display->client, $screenline1, $screenline2); - -@@ -556,7 +536,7 @@ - - my $render = $display->render($display->renderCache()); - my $line1 = ${$render->{screen1}->{lineref}[1]}; -- my $line2 = ' ' x 40; -+ my $line2 = ' ' x $display->displayWidth; - - Slim::Display::Lib::TextVFD::vfdUpdate($display->client, $line1, $line2); - -@@ -569,7 +549,7 @@ - my $display = shift; - - my $render = $display->render($display->renderCache()); -- my $line1 = ' ' x 40; -+ my $line1 = ' ' x $display->displayWidth; - my $line2 = ${$render->{screen1}->{lineref}[0]}; - - Slim::Display::Lib::TextVFD::vfdUpdate($display->client, $line1, $line2); -@@ -598,12 +578,37 @@ - } - - sub modes { -+ my $display = shift; -+ # Display Modes -+ -+ my @modes = ( -+ # mode 0 -+ { desc => ['BLANK'], -+ bar => 0, secs => 0, width => $display->displayWidth, }, -+ # mode 1 -+ { desc => ['ELAPSED'], -+ bar => 0, secs => 1, width => $display->displayWidth, }, -+ # mode 2 -+ { desc => ['REMAINING'], -+ bar => 0, secs => -1, width => $display->displayWidth, }, -+ # mode 3 -+ { desc => ['PROGRESS_BAR'], -+ bar => 1, secs => 0, width => $display->displayWidth, }, -+ # mode 4 -+ { desc => ['ELAPSED', 'AND', 'PROGRESS_BAR'], -+ bar => 1, secs => 1, width => $display->displayWidth, }, -+ # mode 5 -+ { desc => ['REMAINING', 'AND', 'PROGRESS_BAR'], -+ bar => 1, secs => -1, width => $display->displayWidth, }, -+ # mode 6 -+ { desc => ['SETUP_SHOWBUFFERFULLNESS'], -+ bar => 1, secs => 0, width => $display->displayWidth, fullness => 1, }, -+ ); -+ - return \@modes; - } - --sub nmodes { -- return $nmodes; --} -+sub nmodes { 6 } - - sub scrollUpdateDisplay { - # update scrolling for character display -@@ -637,11 +642,11 @@ - } else { - # both lines scrolling - if ($padlen) { -- $line1 = subString(${$scroll->{scrollline1ref}} . $pad, $scroll->{offset}, 40); -- $line2 = subString(${$scroll->{scrollline2ref}} . $pad, $scroll->{offset}, 40); -+ $line1 = subString(${$scroll->{scrollline1ref}} . $pad, $scroll->{offset}, $display->displayWidth); -+ $line2 = subString(${$scroll->{scrollline2ref}} . $pad, $scroll->{offset}, $display->displayWidth); - } else { -- $line1 = subString(${$scroll->{scrollline1ref}}, $scroll->{offset}, 40); -- $line2 = subString(${$scroll->{scrollline2ref}}, $scroll->{offset}, 40); -+ $line1 = subString(${$scroll->{scrollline1ref}}, $scroll->{offset}, $display->displayWidth); -+ $line2 = subString(${$scroll->{scrollline2ref}}, $scroll->{offset}, $display->displayWidth); - } - } - -Index: Slim/Display/Lib/TextVFD.pm -=================================================================== ---- Slim/Display/Lib/TextVFD.pm (revision 25808) -+++ Slim/Display/Lib/TextVFD.pm (revision 25809) -@@ -66,7 +66,6 @@ - - my $vfdReset = $vfdCodeCmd . $vfdCommand{"INCSC"} . $vfdCodeCmd . $vfdCommand{"HOME"}; - --my $spaces = ' ' x 40; - - my %symbolmap = ( - 'katakana' => { -@@ -86,6 +85,13 @@ - 'rightarrow' => chr(0x7e), - 'hardspace' => chr(0x20), - 'solidblock' => chr(0x1f), -+ }, -+ 'squeezeslave' => { # These are from an Imon VFD, but squeezeslave can remap for other types -+ 'rightarrow' => chr(0x10), -+ 'hardspace' => chr(0x20), -+ 'solidblock' => chr(0x0B), -+ 'notesymbol' => chr(0x91), -+ 'bell' => chr(0x98), - } - ); - -@@ -121,6 +127,21 @@ - 'Zbottom' => '/', - 'leftvbar' => '|', - 'rightvbar' => '|', -+ 'rightprogress0' => ']', -+ 'rightprogress1' => ']', -+ 'rightprogress2' => ']', -+ 'rightprogress3' => ']', -+ 'rightprogress4' => ']', -+ 'leftprogress0' => '[', -+ 'leftprogress1' => '[', -+ 'leftprogress2' => '[', -+ 'leftprogress3' => '[', -+ 'leftprogress4' => '[', -+ 'middleprogress0' => ' ', -+ 'middleprogress1' => '.', -+ 'middleprogress2' => ':', -+ 'middleprogress3' => '!', -+ 'middleprogress4' => '|', - ); - - sub vfdUpdate { -@@ -133,6 +154,9 @@ - my $cur = -1; - my $pos; - -+ my $displaywidth = $client->display->displayWidth; -+ my $spaces = ' ' x $displaywidth; -+ - # convert to the VFD char set - my $lang = $client->vfdmodel; - if (!$lang) { -@@ -225,8 +249,10 @@ - - my $encodedCustom = "\x1F" . $custom . "\x1F"; - -- if ($usedCustom < 8) { # Room to add this one -+ my $maxCustom = $lang eq "squeezeslave" ? 0 : 8; # squeezeslave doesn't allow any custom character definitions - -+ if ($usedCustom < $maxCustom) { # Room to add this one -+ - while(defined $customUsed{$nextChr}) { - - $nextChr = chr(ord($nextChr)+1); -@@ -266,7 +292,6 @@ - delete $newCustom{$custom}; - } - } -- - if ($lang eq 'european') { - # why can't we all just get along? - $line =~ tr{\x1f\x92\xa1\xa2\xa3\xa4\xa5\xa6\xa8\xa9\xab\xad\xaf \xbb\xbf \xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf \xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf \xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef \xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff} -@@ -275,8 +300,9 @@ - # translate iso8859-1 to vfd charset - $line =~ tr{\x1f\x92\x0e\x0f\x5c\x70\x7e\x7f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff} - {\xff\x27\x19\x7e\x8c\xf0\x8e\x8f\x20\x98\xec\x92\xeb\x5c\x98\x8f\xde\x63\x61\x3c\xa3\x2d\x72\xb0\xdf\xb7\x32\x33\x60\xe4\xf1\x94\x2c\x31\xdf\x3e\x25\x25\x25\x3f\x81\x81\x82\x82\x80\x81\x90\x99\x45\x45\x45\x45\x49\x49\x49\x49\x44\xee\x4f\x4f\x4f\x4f\x86\x78\x30\x55\x55\x55\x8a\x59\x70\xe2\x84\x83\x84\x84\xe1\x84\x91\x99\x65\x65\x65\x65\x69\x69\x69\x69\x95\xee\x6f\x6f\x6f\x6f\xef\xfd\x88\x75\x75\x75\xf5\x79\xf0\x79}; -- } elsif ($lang eq 'latin1') { -+ } elsif (($lang eq 'latin1') || ($lang eq 'squeezeslave')) { - # golly, the latin1 character map _is_ latin1. Also, translate funky windows apostrophes to legal ones. -+ # squeezeslave uses latin1 too - $line =~ tr{\x92} - {\x26}; - }; -@@ -287,9 +313,10 @@ - my $vfdmodel = $client->vfdmodel(); - - # force the display out of 4 bit mode if it got there somehow, then set the brightness -+ # not used for Squeezeslave - if ( $vfdmodel =~ 'futaba') { - $vfddata .= $vfdCodeCmd . $vfdBrightFutaba[$brightness]; -- } else { -+ } elsif ( $vfdmodel ne 'squeezeslave') { - $vfddata .= $noritakeBrightPrelude . $vfdBright[$brightness]; - } - -@@ -310,17 +337,17 @@ - $line =~ s/(.)/$vfdCodeChar$1/gos; - - # split the line in two and move the cursor to the second line -- $line = substr($line, 0, 80) . $vfdCodeCmd . $vfdCommand{"HOME2"} . substr($line, 80); -+ $line = substr($line, 0, 2 * $displaywidth) . $vfdCodeCmd . $vfdCommand{"HOME2"} . substr($line, 2 * $displaywidth); - - $vfddata .= $line; - - # set the cursor - if ($cur >= 0) { - -- if ($cur < 40) { -+ if ($cur < $displaywidth) { - $vfddata .= $vfdCodeCmd.(pack 'C', (0b10000000 + $cur)); - } else { -- $vfddata .= $vfdCodeCmd.(pack 'C', (0b11000000 + $cur - 40)); -+ $vfddata .= $vfdCodeCmd.(pack 'C', (0b11000000 + $cur - $displaywidth)); - } - - # turn on the cursor diff --git a/media-sound/squeezecenter/files/squeezecenter.conf.d b/media-sound/squeezecenter/files/squeezecenter.conf.d deleted file mode 100644 index 4faca2bf422d..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter.conf.d +++ /dev/null @@ -1,23 +0,0 @@ -# /etc/conf.d/squeezecenter - -# Niceness level for the SqueezeCenter process. If not specified then the -# default is to run at standard priority. Uncomment the following to run at a -# high priority (in order to try to minimise drop-outs due to audio starvation -# of the players). Note that this requires "OpenRC", which will become the -# standard init system for Gentoo at some point. If you are not using OpenRC -# yet, this setting will have no effect: -#SC_NICENESS=-10 - -# Default path of your music library and playlists. You can leave these -# undefined and configure them through the web interface instead. -#SC_MUSIC_DIR=/mnt/media/Music -#SC_PLAYLISTS_DIR=/mnt/media/Playlists - -# The following contains any other options you want to specify, such as default -# logging options. The example below will prevent the discovery and display of -# UPnP devices within your players. -# -# See "squeezecenter-server --help" for a full list of possible options, -# but note that many of them are supplied by /etc/init.d/squeezecenter -# and so don't need to be present here. -#SC_OPTS="--noupnp" diff --git a/media-sound/squeezecenter/files/squeezecenter.init.d b/media-sound/squeezecenter/files/squeezecenter.init.d deleted file mode 100755 index 7082830bcb86..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter.init.d +++ /dev/null @@ -1,50 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.init.d,v 1.3 2008/12/20 01:24:43 lavajoe Exp $ - -# These fit the SqueezeCenter ebuild and so shouldn't need to be changed; -# user-servicable parts go in /etc/conf.d/squeezecenter. -pidfile=/var/run/squeezecenter/squeezecenter.pid -logdir=/var/log/squeezecenter -varlibdir=/var/lib/squeezecenter -prefsdir=${varlibdir}/prefs -cachedir=${varlibdir}/cache -prefsfile=${prefsdir}/squeezecenter.prefs -scuser=squeezecenter -scname=squeezecenter-server - -depend() { - need net mysql -} - -start() { - ebegin "Starting SqueezeCenter" - - export SSD_NICELEVEL=${SC_NICENESS} - cd / - start-stop-daemon \ - --start --exec /usr/bin/perl /usr/sbin/${scname} \ - --pidfile ${pidfile} \ - --startas /usr/sbin/${scname} \ - --chuid ${scuser} \ - -- \ - --quiet --daemon \ - --pidfile=${pidfile} \ - --cachedir=${cachedir} \ - --prefsfile=${prefsfile} \ - --prefsdir=${prefsdir} \ - --logdir=${logdir} \ - --audiodir=${SC_MUSIC_DIR} \ - --playlistdir=${SC_PLAYLISTS_DIR} \ - ${SC_OPTS} - - - eend $? "Failed to start SqueezeCenter" -} - -stop() { - ebegin "Stopping SqueezeCenter" - start-stop-daemon -o --stop --pidfile ${pidfile} - eend $? "Failed to stop SqueezeCenter" -} diff --git a/media-sound/squeezecenter/files/squeezecenter.logrotate.d b/media-sound/squeezecenter/files/squeezecenter.logrotate.d deleted file mode 100644 index 8ef9c789e4e9..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter.logrotate.d +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/files/squeezecenter.logrotate.d,v 1.1 2008/08/03 04:35:29 lavajoe Exp $ - -/var/log/squeezecenter/scanner.log /var/log/squeezecenter/server.log /var/log/squeezecenter/perfmon.log { - missingok - notifempty - copytruncate - rotate 5 - size 100k -} diff --git a/media-sound/squeezecenter/files/squeezecenter.prefs b/media-sound/squeezecenter/files/squeezecenter.prefs deleted file mode 100644 index a14b3fab8375..000000000000 --- a/media-sound/squeezecenter/files/squeezecenter.prefs +++ /dev/null @@ -1,3 +0,0 @@ -dbusername: squeezecenter -dbpassword: TBA -dbsource: dbi:mysql:database=squeezecenter;mysql_socket=/var/run/mysqld/mysqld.sock diff --git a/media-sound/squeezecenter/metadata.xml b/media-sound/squeezecenter/metadata.xml deleted file mode 100644 index 7e4d6e8e5a82..000000000000 --- a/media-sound/squeezecenter/metadata.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>no-herd</herd> - <maintainer> - <email>lavajoe@gentoo.org</email> - </maintainer> - <maintainer> - <email>stuart@hickinbottom.com</email> - <name>Stuart Hickinbottom</name> - </maintainer> - <longdescription lang="en"> - This package provides the Logitech SqueezeCenter audio server. - SqueezeCenter will allow access to your audio collection over local - and wide-area networks, as well as serving content to the Logitech - Squeezebox and Transporter streaming media players. In addition to - local content, SqueezeCenter will also provide access to internet - radio and audio podcasts. The SqueezeCenter package also includes - SoftSqueeze - a Logitech media player emulator that you can use as a - client. - </longdescription> - <use> - <flag name='aac'>Enable playback support for AAC (.m4a) encoded files</flag> - <flag name='alac'>Enable support for alac</flag> - <flag name='bonjour'>Enable support for bonjour</flag> - </use> -</pkgmetadata> diff --git a/media-sound/squeezecenter/squeezecenter-7.1.0-r1.ebuild b/media-sound/squeezecenter/squeezecenter-7.1.0-r1.ebuild deleted file mode 100644 index ee8fdf698dd5..000000000000 --- a/media-sound/squeezecenter/squeezecenter-7.1.0-r1.ebuild +++ /dev/null @@ -1,368 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/squeezecenter-7.1.0-r1.ebuild,v 1.5 2009/07/26 15:14:23 ssuominen Exp $ - -inherit eutils - -MAJOR_VER="${PV:0:3}" -MINOR_VER="${PV:4:1}" -SRC_DIR="SqueezeCenter_v${MAJOR_VER}.${MINOR_VER}" -MY_P="squeezecenter-${MAJOR_VER}-noCPAN" - -DESCRIPTION="Logitech SqueezeCenter music server" -HOMEPAGE="http://www.slimdevices.com/pi_features.html" -SRC_URI="http://www.slimdevices.com/downloads/${SRC_DIR}/${MY_P}.tgz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc x86" -IUSE="lame wavpack alac ogg bonjour flac avahi" - -# Note: virtual/perl-Module-Build necessary because of SC bug#5882 -# (http://bugs.slimdevices.com/show_bug.cgi?id=5882). -DEPEND=" - dev-perl/File-Which - virtual/perl-Module-Build - virtual/logger - virtual/mysql - avahi? ( net-dns/avahi ) - ogg? ( media-sound/sox ) - " -# Note: dev-perl/GD necessary because of SC bug#6143 -# (http://bugs.slimdevices.com/show_bug.cgi?id=6143). -RDEPEND="${DEPEND} - >=dev-lang/perl-5.8.8 - >=dev-perl/GD-2.35 - >=app-admin/sudo-1.6.8 - alac? ( media-sound/alac_decoder ) - lame? ( media-sound/lame ) - wavpack? ( media-sound/wavpack ) - bonjour? ( net-misc/mDNSResponder ) - flac? ( media-libs/flac ) - " - -S="${WORKDIR}/${MY_P}" - -PREFS="/var/lib/squeezecenter/prefs/squeezecenter.prefs" -LIVE_PREFS="/var/lib/squeezecenter/prefs/server.prefs" -DOCDIR="/usr/share/doc/squeezecenter-${MAJOR_VER}.${MINOR_VER}" -SHAREDIR="/usr/share/squeezecenter" -LIBDIR="/usr/lib/squeezecenter" -DBUSER="squeezecenter" -OLDPLUGINSDIR=/opt/squeezecenter/Plugins -NEWPLUGINSDIR=/var/lib/squeezecenter/Plugins - -pkg_setup() { - # Sox has optional OGG support, so make sure it has been built that way - if use ogg; then - if ! built_with_use media-sound/sox ogg; then - eerror "media-sound/sox not built with USE=ogg" - die "media-sound/sox not built with USE=ogg" - fi - fi - - # Create the user and group if not already present - enewgroup squeezecenter - enewuser squeezecenter -1 -1 "/dev/null" squeezecenter -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Apply patches - epatch "${FILESDIR}/mDNSResponder-${MAJOR_VER}-gentoo.patch" - epatch "${FILESDIR}/filepaths-${MAJOR_VER}-gentoo.patch" - - # Prune GD from the SqueezeCenter local CPAN. This is due to - # SC bug#5882 which means we need to bring in Portage's version of GD, - # which will fail if it is different to the version in the local CPAN - # tree. SqueezeCenter will then use the system-installed dev-perl/GD. - # (This fixes Gentoo bug #237548) - rm -r CPAN/GD.pm CPAN/GD || die "Unable to remove local CPAN GD" -} - -src_compile() { - einfo "Building required Perl modules (some warnings are normal here) ..." - mkdir "${T}/sc_compile" - echo -e "\n${S}\n${T}/sc_compile" | Bin/build-perl-modules.pl || die "Unable to build Perl modules" -} - -src_install() { - - # The main Perl executables - exeinto /usr/sbin - newexe slimserver.pl squeezecenter-server - newexe scanner.pl squeezecenter-scanner - - # Get the Perl package name and version - eval `perl '-V:package'` - eval `perl '-V:version'` - - # The server Perl modules - dodir "/usr/lib/${package}/vendor_perl/${version}" - cp -r Slim "${D}/usr/lib/${package}/vendor_perl/${version}" - - # Various directories of architecture-independent static files - dodir "${SHAREDIR}" - cp -r Firmware "${D}/${SHAREDIR}" - cp -r Graphics "${D}/${SHAREDIR}" - cp -r HTML "${D}/${SHAREDIR}" - cp -r IR "${D}/${SHAREDIR}" - cp -r SQL "${D}/${SHAREDIR}" - cp -r CPAN "${D}/${SHAREDIR}" - - # Architecture-dependent static files - dodir "${LIBDIR}" - cp -r lib/* "${D}/${LIBDIR}" - - # Strings and version identification - insinto "${SHAREDIR}" - doins strings.txt - doins revision.txt - - # Documentation - dodoc Changelog*.html - dodoc Installation.txt - dodoc License*.txt - newdoc "${FILESDIR}/Gentoo-plugins-README.txt" Gentoo-plugins-README.txt - - # Configuration files - insinto /etc/squeezecenter - doins convert.conf - doins types.conf - doins modules.conf - - # Install init scripts - newconfd "${FILESDIR}/squeezecenter.conf.d" squeezecenter - newinitd "${FILESDIR}/squeezecenter.init.d" squeezecenter - - # Install default preferences - insinto /var/lib/squeezecenter/prefs - newins "${FILESDIR}/squeezecenter.prefs" squeezecenter.prefs - fowners squeezecenter:squeezecenter /var/lib/squeezecenter/prefs - fperms 770 /var/lib/squeezecenter/prefs - - # Install the SQL configuration scripts - insinto "${SHAREDIR}/SQL/mysql" - doins "${FILESDIR}/dbdrop-gentoo.sql" - doins "${FILESDIR}/dbcreate-gentoo.sql" - - # Initialize run directory (where the PID file lives) - dodir /var/run/squeezecenter - fowners squeezecenter:squeezecenter /var/run/squeezecenter - fperms 770 /var/run/squeezecenter - - # Initialize server cache directory - dodir /var/lib/squeezecenter/cache - fowners squeezecenter:squeezecenter /var/lib/squeezecenter/cache - fperms 770 /var/lib/squeezecenter/cache - - # Initialize the log directory - dodir /var/log/squeezecenter - fowners squeezecenter:squeezecenter /var/log/squeezecenter - fperms 770 /var/log/squeezecenter - touch "${D}/var/log/squeezecenter/server.log" - touch "${D}/var/log/squeezecenter/scanner.log" - touch "${D}/var/log/squeezecenter/perfmon.log" - fowners squeezecenter:squeezecenter /var/log/squeezecenter/server.log - fowners squeezecenter:squeezecenter /var/log/squeezecenter/scanner.log - fowners squeezecenter:squeezecenter /var/log/squeezecenter/perfmon.log - - # Initialise the user-installed plugins directory - dodir "${NEWPLUGINSDIR}" - - # Install logrotate support - insinto /etc/logrotate.d - newins "${FILESDIR}/squeezecenter.logrotate.d" squeezecenter - - # Install Avahi support (if USE flag is set) - if use avahi; then - insinto /etc/avahi/services - newins "${FILESDIR}/avahi-squeezecenter.service" squeezecenter.service - fi -} - -sc_starting_instr() { - elog "SqueezeCenter can be started with the following command:" - elog "\t/etc/init.d/squeezecenter start" - elog "" - elog "SqueezeCenter can be automatically started on each boot with the" - elog "following command:" - elog "\trc-update add squeezecenter default" - elog "" - elog "You might want to examine and modify the following configuration" - elog "file before starting SqueezeCenter:" - elog "\t/etc/conf.d/squeezecenter" - elog "" - - # Discover the port number from the preferences, but if it isn't there - # then report the standard one. - httpport=$(gawk '$1 == "httpport:" { print $2 }' "${ROOT}${LIVE_PREFS}" 2>/dev/null) - elog "You may access and configure SqueezeCenter by browsing to:" - elog "\thttp://localhost:${httpport:-9000}/" -} - -pkg_postinst() { - # FLAC and LAME are quite useful (but not essential) for SqueezeCenter - - # if they're not enabled then make sure the user understands that. - if ! use flac; then - ewarn "'flac' USE flag is not set. Although not essential, FLAC is required" - ewarn "for playing lossless WAV and FLAC (for Squeezebox 1), and for" - ewarn "playing other less common file types (if you have a Squeezebox 2, 3," - ewarn "Receiver or Transporter)." - ewarn "For maximum flexibility you are recommended to set the 'flac' USE flag". - ewarn "" - fi - if ! use lame; then - ewarn "'lame' USE flag is not set. Although not essential, LAME is" - ewarn "required if you want to limit the bandwidth your Squeezebox or" - ewarn "Transporter uses when streaming audio." - ewarn "For maximum flexibility you are recommended to set the 'lame' USE flag". - ewarn "" - fi - - # Album art requires PNG and JPEG support from GD, so if it's not there - # then warn the user. It's not mandatory as the user may not be using - # album art. - if ! built_with_use dev-perl/GD jpeg || \ - ! built_with_use dev-perl/GD png || \ - ! built_with_use media-libs/gd jpeg || \ - ! built_with_use media-libs/gd png; then - ewarn "For correct operation of album art through SqueezeCenter's web" - ewarn "interface the GD library and Perl module must be built with PNG" - ewarn "and JPEG support. If necessary you can add the following lines" - ewarn "to the file /etc/portage/package.use:" - ewarn "\tdev-perl/GD jpeg png" - ewarn "\tmedia-libs/gd jpeg png" - ewarn "And then rebuild those packages with:" - ewarn "\temerge --newuse dev-perl/GD media-libs/gd" - ewarn "" - fi - - # Point user to database configuration step - elog "If this is a new installation of SqueezeCenter then the database" - elog "must be configured prior to use. This can be done by running the" - elog "following command:" - elog "\temerge --config =${CATEGORY}/${PF}" - - # Remind user to configure Avahi if necessary - if use avahi; then - elog "" - elog "Avahi support installed. Remember to edit the folowing file if" - elog "you run SqueezeCenter's web interface on a port other than 9000:" - elog "\t/etc/avahi/services/squeezecenter.service" - fi - - elog "" - sc_starting_instr -} - -sc_remove_db_prefs() { - MY_PREFS=$1 - - einfo "Configuring SqueezeCenter database preferences (${MY_PREFS}) ..." - TMPPREFS="${T}"/squeezecenter-prefs-$$ - touch "${ROOT}${MY_PREFS}" - sed -e '/^dbusername:/d' -e '/^dbpassword:/d' -e '/^dbsource:/d' < "${ROOT}${MY_PREFS}" > "${TMPPREFS}" - mv "${TMPPREFS}" "${ROOT}${MY_PREFS}" - chown squeezecenter:squeezecenter "${ROOT}${MY_PREFS}" - chmod 660 "${ROOT}${MY_PREFS}" -} - -sc_update_prefs() { - MY_PREFS=$1 - MY_DBUSER=$2 - MY_DBUSER_PASSWD=$3 - - echo "dbusername: ${MY_DBUSER}" >> "${ROOT}${MY_PREFS}" - echo "dbpassword: ${MY_DBUSER_PASSWD}" >> "${ROOT}${MY_PREFS}" - echo "dbsource: dbi:mysql:database=${MY_DBUSER};mysql_socket=/var/run/mysqld/mysqld.sock" >> "${ROOT}${MY_PREFS}" -} - -pkg_config() { - einfo "Press ENTER to create the SqueezeCenter database and set proper" - einfo "permissions on it. You will be prompted for the MySQL 'root' user's" - einfo "password during this process (note that the MySQL 'root' user is" - einfo "independent of the Linux 'root' user and so may have a different" - einfo "password)." - einfo "" - einfo "If you already have a SqueezeCenter database set up then this" - einfo "process will clear the existing database (your music files will not," - einfo "however, be affected)." - einfo "" - einfo "Alternatively, press Control-C to abort now..." - read - - # Get the MySQL root password from the user (not echoed to the terminal) - einfo "The MySQL 'root' user password is required to create the" - einfo "SqueezeCenter user and database." - DONE=0 - while [ $DONE -eq 0 ]; do - trap "stty echo; echo" EXIT - stty -echo - read -p "MySQL root password: " ROOT_PASSWD; echo - stty echo - trap ":" EXIT - echo quit | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 && DONE=1 - if [ $DONE -eq 0 ]; then - eerror "Incorrect MySQL root password, or MySQL is not running" - fi - done - - # Get the new password for the SqueezeCenter MySQL database user, and - # have it re-entered to confirm it. We should trivially check it's not - # the same as the MySQL root password. - einfo "A new MySQL user will be added to own the SqueezeCenter database." - einfo "Please enter the password for this new user (${DBUSER})." - DONE=0 - while [ $DONE -eq 0 ]; do - trap "stty echo; echo" EXIT - stty -echo - read -p "MySQL ${DBUSER} password: " DBUSER_PASSWD; echo - stty echo - trap ":" EXIT - if [ -z "$DBUSER_PASSWD" ]; then - eerror "The password should not be blank; try again." - elif [ "$DBUSER_PASSWD" == "$ROOT_PASSWD" ]; then - eerror "The ${DBUSER} password should be different to the root password" - else - DONE=1 - fi - done - - # Drop the existing database and user - note we don't care about errors - # from this as it probably just indicates that the database wasn't - # yet present. - einfo "Dropping old SqueezeCenter database and user ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" < "${SHAREDIR}/SQL/mysql/dbdrop-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 - - # Drop and create the SqueezeCenter user and database. - einfo "Creating SqueezeCenter MySQL user and database (${DBUSER}) ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" -e "s/__DBPASSWORD__/${DBUSER_PASSWD}/" < "${SHAREDIR}/SQL/mysql/dbcreate-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" || die "Unable to create MySQL database and user" - - # Remove the existing MySQL preferences from SqueezeCenter (if any). - sc_remove_db_prefs "${PREFS}" - [ -f "${LIVE_PREFS}" ] && sc_remove_db_prefs ${LIVE_PREFS} - - # Insert the external MySQL configuration into the preferences. - sc_update_prefs "${PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - [ -f "${LIVE_PREFS}" ] && sc_update_prefs "${LIVE_PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - - # Phew - all done. Give some tips on what to do now. - einfo "Database configuration complete." - einfo "" - sc_starting_instr -} - -pkg_preinst() { - # Warn the user if there are old plugins that he may need to migrate - if [ -d "${OLDPLUGINSDIR}" ]; then - if [ ! -z "$(ls ${OLDPLUGINSDIR})" ]; then - ewarn "Note: It appears that plugins are installed in the old location of:" - ewarn "${OLDPLUGINSDIR}" - ewarn "If these are to be used then they must be migrated to the new location:" - ewarn "${NEWPLUGINSDIR}" - ewarn "" - fi - fi -} diff --git a/media-sound/squeezecenter/squeezecenter-7.3.0.ebuild b/media-sound/squeezecenter/squeezecenter-7.3.0.ebuild deleted file mode 100644 index a93fde648bb0..000000000000 --- a/media-sound/squeezecenter/squeezecenter-7.3.0.ebuild +++ /dev/null @@ -1,391 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/squeezecenter-7.3.0.ebuild,v 1.3 2009/07/26 15:14:23 ssuominen Exp $ - -inherit eutils - -MAJOR_VER="${PV:0:3}" -MINOR_VER="${PV:4:1}" -SRC_DIR="SqueezeCenter_v${MAJOR_VER}.${MINOR_VER}" -MY_P="squeezecenter-${MAJOR_VER}-noCPAN" - -DESCRIPTION="Logitech SqueezeCenter music server" -HOMEPAGE="http://www.slimdevices.com/pi_features.html" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="lame wavpack alac ogg bonjour flac avahi" - -SRC_URI="http://www.slimdevices.com/downloads/${SRC_DIR}/${MY_P}.tgz - mirror://gentoo/SqueezeCenter-AutoXS-Header-0.03.tar.gz - mirror://gentoo/SqueezeCenter-Class-XSAccessor-Array-0.05.tar.gz - mirror://gentoo/SqueezeCenter-Compress-Zlib-1.41.tar.gz - mirror://gentoo/SqueezeCenter-DBD-mysql-3.0002.tar.gz - mirror://gentoo/SqueezeCenter-DBI-1.604.tar.gz - mirror://gentoo/SqueezeCenter-Digest-SHA1-2.11.tar.gz - mirror://gentoo/SqueezeCenter-Encode-Detect-1.00.tar.gz - mirror://gentoo/SqueezeCenter-HTML-Parser-3.48.tar.gz - mirror://gentoo/SqueezeCenter-JSON-XS-1.5.tar.gz - mirror://gentoo/SqueezeCenter-POE-XS-Queue-Array-0.002.tar.gz - mirror://gentoo/SqueezeCenter-Template-Toolkit-2.15.tar.gz - mirror://gentoo/SqueezeCenter-Time-HiRes-1.86.tar.gz - mirror://gentoo/SqueezeCenter-XML-Parser-2.34.tar.gz - mirror://gentoo/SqueezeCenter-YAML-Syck-0.64.tar.gz" - -# Note: dev-perl/module-build necessary because of SC bug#5882 -# (http://bugs.slimdevices.com/show_bug.cgi?id=5882). -DEPEND=" - dev-perl/File-Which - virtual/perl-Module-Build - virtual/logger - virtual/mysql - avahi? ( net-dns/avahi ) - ogg? ( media-sound/sox ) - " -# Note: dev-perl/GD necessary because of SC bug#6143 -# (http://bugs.slimdevices.com/show_bug.cgi?id=6143). -RDEPEND="${DEPEND} - >=dev-lang/perl-5.8.8 - >=dev-perl/GD-2.35 - >=app-admin/sudo-1.6.8 - alac? ( media-sound/alac_decoder ) - lame? ( media-sound/lame ) - wavpack? ( media-sound/wavpack ) - bonjour? ( net-misc/mDNSResponder ) - flac? ( media-libs/flac ) - " - -S="${WORKDIR}/${MY_P}" - -PREFS="/var/lib/squeezecenter/prefs/squeezecenter.prefs" -LIVE_PREFS="/var/lib/squeezecenter/prefs/server.prefs" -DOCDIR="/usr/share/doc/squeezecenter-${PV}" -SHAREDIR="/usr/share/squeezecenter" -LIBDIR="/usr/lib/squeezecenter" -DBUSER="squeezecenter" -OLDPLUGINSDIR=/opt/squeezecenter/Plugins -NEWPLUGINSDIR=/var/lib/squeezecenter/Plugins - -pkg_setup() { - # Sox has optional OGG support, so make sure it has been built that way - if use ogg; then - if ! built_with_use media-sound/sox ogg; then - eerror "media-sound/sox not built with USE=ogg" - die "media-sound/sox not built with USE=ogg" - fi - fi - - # Create the user and group if not already present - enewgroup squeezecenter - enewuser squeezecenter -1 -1 "/dev/null" squeezecenter -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Apply patches - epatch "${FILESDIR}/mDNSResponder-gentoo.patch" - epatch "${FILESDIR}/${P}-build-perl-modules-gentoo.patch" - - # Prune GD from the SqueezeCenter local CPAN. This is due to - # SC bug#5882 which means we need to bring in Portage's version of GD, - # which will fail if it is different to the version in the local CPAN - # tree. SqueezeCenter will then use the system-installed dev-perl/GD. - # (This fixes Gentoo bug #237548) - rm -r CPAN/GD.pm CPAN/GD || die "Unable to remove local CPAN GD" -} - -src_compile() { - einfo "Building required Perl modules (some warnings are normal here) ..." - echo -e "\n${S}\n${WORKDIR}" | Bin/build-perl-modules.pl || die "Unable to build Perl modules" -} - -src_install() { - - # The main Perl executables - exeinto /usr/sbin - newexe slimserver.pl squeezecenter-server - newexe scanner.pl squeezecenter-scanner - newexe cleanup.pl squeezecenter-cleanup - - # Get the Perl package name and version - eval `perl '-V:package'` - eval `perl '-V:version'` - - # The custom OS module for Gentoo - provides OS-specific path details - cp "${FILESDIR}/gentoo-filepaths.pm" "Slim/Utils/OS/Custom.pm" || die "Unable to install Gentoo custom OS module" - - # The server Perl modules - dodir "/usr/lib/${package}/vendor_perl/${version}" - cp -r Slim "${D}/usr/lib/${package}/vendor_perl/${version}" || die "Unable to install server Perl modules" - - # Compiled CPAN module go under lib as they are arch-specific - dodir "/usr/lib/squeezecenter/CPAN" - cp -r CPAN/arch "${D}/usr/lib/squeezecenter/CPAN" || die "Unable to install compiled CPAN modules" - rm -r CPAN/arch || die "Unable to remove compiled CPAN modules from source" - - # Various directories of architecture-independent static files - dodir "${SHAREDIR}" - cp -r Firmware "${D}/${SHAREDIR}" || die "Unable to install firmware" - cp -r Graphics "${D}/${SHAREDIR}" || die "Unable to install Graphics" - cp -r HTML "${D}/${SHAREDIR}" || die "Unable to install HTML" - cp -r IR "${D}/${SHAREDIR}" || die "Unable to install IR" - cp -r SQL "${D}/${SHAREDIR}" || die "Unable to install SQL" - cp -r CPAN "${D}/${SHAREDIR}" || die "Unable to install CPAN" - - # Architecture-dependent static files - dodir "${LIBDIR}" - cp -r lib/* "${D}/${LIBDIR}" || die "Unable to install architecture-dependent files" - - # Strings and version identification - insinto "${SHAREDIR}" - doins strings.txt - doins revision.txt - - # Documentation - dodoc Changelog*.html - dodoc Installation.txt - dodoc License*.txt - newdoc "${FILESDIR}/Gentoo-plugins-README.txt" Gentoo-plugins-README.txt - - # Configuration files - insinto /etc/squeezecenter - doins convert.conf - doins types.conf - doins modules.conf - - # Install init scripts - newconfd "${FILESDIR}/squeezecenter.conf.d" squeezecenter - newinitd "${FILESDIR}/squeezecenter.init.d" squeezecenter - - # Install default preferences - insinto /var/lib/squeezecenter/prefs - newins "${FILESDIR}/squeezecenter.prefs" squeezecenter.prefs - fowners squeezecenter:squeezecenter /var/lib/squeezecenter/prefs - fperms 770 /var/lib/squeezecenter/prefs - - # Install the SQL configuration scripts - insinto "${SHAREDIR}/SQL/mysql" - doins "${FILESDIR}/dbdrop-gentoo.sql" - doins "${FILESDIR}/dbcreate-gentoo.sql" - - # Initialize run directory (where the PID file lives) - dodir /var/run/squeezecenter - fowners squeezecenter:squeezecenter /var/run/squeezecenter - fperms 770 /var/run/squeezecenter - - # Initialize server cache directory - dodir /var/lib/squeezecenter/cache - fowners squeezecenter:squeezecenter /var/lib/squeezecenter/cache - fperms 770 /var/lib/squeezecenter/cache - - # Initialize the log directory - dodir /var/log/squeezecenter - fowners squeezecenter:squeezecenter /var/log/squeezecenter - fperms 770 /var/log/squeezecenter - touch "${D}/var/log/squeezecenter/server.log" - touch "${D}/var/log/squeezecenter/scanner.log" - touch "${D}/var/log/squeezecenter/perfmon.log" - fowners squeezecenter:squeezecenter /var/log/squeezecenter/server.log - fowners squeezecenter:squeezecenter /var/log/squeezecenter/scanner.log - fowners squeezecenter:squeezecenter /var/log/squeezecenter/perfmon.log - - # Initialise the user-installed plugins directory - dodir "${NEWPLUGINSDIR}" - - # Install logrotate support - insinto /etc/logrotate.d - newins "${FILESDIR}/squeezecenter.logrotate.d" squeezecenter - - # Install Avahi support (if USE flag is set) - if use avahi; then - insinto /etc/avahi/services - newins "${FILESDIR}/avahi-squeezecenter.service" squeezecenter.service - fi -} - -sc_starting_instr() { - elog "SqueezeCenter can be started with the following command:" - elog "\t/etc/init.d/squeezecenter start" - elog "" - elog "SqueezeCenter can be automatically started on each boot with the" - elog "following command:" - elog "\trc-update add squeezecenter default" - elog "" - elog "You might want to examine and modify the following configuration" - elog "file before starting SqueezeCenter:" - elog "\t/etc/conf.d/squeezecenter" - elog "" - - # Discover the port number from the preferences, but if it isn't there - # then report the standard one. - httpport=$(gawk '$1 == "httpport:" { print $2 }' "${ROOT}${LIVE_PREFS}" 2>/dev/null) - elog "You may access and configure SqueezeCenter by browsing to:" - elog "\thttp://localhost:${httpport:-9000}/" -} - -pkg_postinst() { - # FLAC and LAME are quite useful (but not essential) for SqueezeCenter - - # if they're not enabled then make sure the user understands that. - if ! use flac; then - ewarn "'flac' USE flag is not set. Although not essential, FLAC is required" - ewarn "for playing lossless WAV and FLAC (for Squeezebox 1), and for" - ewarn "playing other less common file types (if you have a Squeezebox 2, 3," - ewarn "Receiver or Transporter)." - ewarn "For maximum flexibility you are recommended to set the 'flac' USE flag". - ewarn "" - fi - if ! use lame; then - ewarn "'lame' USE flag is not set. Although not essential, LAME is" - ewarn "required if you want to limit the bandwidth your Squeezebox or" - ewarn "Transporter uses when streaming audio." - ewarn "For maximum flexibility you are recommended to set the 'lame' USE flag". - ewarn "" - fi - - # Album art requires PNG and JPEG support from GD, so if it's not there - # then warn the user. It's not mandatory as the user may not be using - # album art. - if ! built_with_use dev-perl/GD jpeg || \ - ! built_with_use dev-perl/GD png || \ - ! built_with_use media-libs/gd jpeg || \ - ! built_with_use media-libs/gd png; then - ewarn "For correct operation of album art through SqueezeCenter's web" - ewarn "interface the GD library and Perl module must be built with PNG" - ewarn "and JPEG support. If necessary you can add the following lines" - ewarn "to the file /etc/portage/package.use:" - ewarn "\tdev-perl/GD jpeg png" - ewarn "\tmedia-libs/gd jpeg png" - ewarn "And then rebuild those packages with:" - ewarn "\temerge --newuse dev-perl/GD media-libs/gd" - ewarn "" - fi - - # Point user to database configuration step - elog "If this is a new installation of SqueezeCenter then the database" - elog "must be configured prior to use. This can be done by running the" - elog "following command:" - elog "\temerge --config =${CATEGORY}/${PF}" - - # Remind user to configure Avahi if necessary - if use avahi; then - elog "" - elog "Avahi support installed. Remember to edit the folowing file if" - elog "you run SqueezeCenter's web interface on a port other than 9000:" - elog "\t/etc/avahi/services/squeezecenter.service" - fi - - elog "" - sc_starting_instr -} - -sc_remove_db_prefs() { - MY_PREFS=$1 - - einfo "Configuring SqueezeCenter database preferences (${MY_PREFS}) ..." - TMPPREFS="${T}"/squeezecenter-prefs-$$ - touch "${ROOT}${MY_PREFS}" - sed -e '/^dbusername:/d' -e '/^dbpassword:/d' -e '/^dbsource:/d' < "${ROOT}${MY_PREFS}" > "${TMPPREFS}" - mv "${TMPPREFS}" "${ROOT}${MY_PREFS}" - chown squeezecenter:squeezecenter "${ROOT}${MY_PREFS}" - chmod 660 "${ROOT}${MY_PREFS}" -} - -sc_update_prefs() { - MY_PREFS=$1 - MY_DBUSER=$2 - MY_DBUSER_PASSWD=$3 - - echo "dbusername: ${MY_DBUSER}" >> "${ROOT}${MY_PREFS}" - echo "dbpassword: ${MY_DBUSER_PASSWD}" >> "${ROOT}${MY_PREFS}" - echo "dbsource: dbi:mysql:database=${MY_DBUSER};mysql_socket=/var/run/mysqld/mysqld.sock" >> "${ROOT}${MY_PREFS}" -} - -pkg_config() { - einfo "Press ENTER to create the SqueezeCenter database and set proper" - einfo "permissions on it. You will be prompted for the MySQL 'root' user's" - einfo "password during this process (note that the MySQL 'root' user is" - einfo "independent of the Linux 'root' user and so may have a different" - einfo "password)." - einfo "" - einfo "If you already have a SqueezeCenter database set up then this" - einfo "process will clear the existing database (your music files will not," - einfo "however, be affected)." - einfo "" - einfo "Alternatively, press Control-C to abort now..." - read - - # Get the MySQL root password from the user (not echoed to the terminal) - einfo "The MySQL 'root' user password is required to create the" - einfo "SqueezeCenter user and database." - DONE=0 - while [ $DONE -eq 0 ]; do - trap "stty echo; echo" EXIT - stty -echo - read -p "MySQL root password: " ROOT_PASSWD; echo - stty echo - trap ":" EXIT - echo quit | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 && DONE=1 - if [ $DONE -eq 0 ]; then - eerror "Incorrect MySQL root password, or MySQL is not running" - fi - done - - # Get the new password for the SqueezeCenter MySQL database user, and - # have it re-entered to confirm it. We should trivially check it's not - # the same as the MySQL root password. - einfo "A new MySQL user will be added to own the SqueezeCenter database." - einfo "Please enter the password for this new user (${DBUSER})." - DONE=0 - while [ $DONE -eq 0 ]; do - trap "stty echo; echo" EXIT - stty -echo - read -p "MySQL ${DBUSER} password: " DBUSER_PASSWD; echo - stty echo - trap ":" EXIT - if [ -z "$DBUSER_PASSWD" ]; then - eerror "The password should not be blank; try again." - elif [ "$DBUSER_PASSWD" == "$ROOT_PASSWD" ]; then - eerror "The ${DBUSER} password should be different to the root password" - else - DONE=1 - fi - done - - # Drop the existing database and user - note we don't care about errors - # from this as it probably just indicates that the database wasn't - # yet present. - einfo "Dropping old SqueezeCenter database and user ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" < "${SHAREDIR}/SQL/mysql/dbdrop-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 - - # Drop and create the SqueezeCenter user and database. - einfo "Creating SqueezeCenter MySQL user and database (${DBUSER}) ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" -e "s/__DBPASSWORD__/${DBUSER_PASSWD}/" < "${SHAREDIR}/SQL/mysql/dbcreate-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" || die "Unable to create MySQL database and user" - - # Remove the existing MySQL preferences from SqueezeCenter (if any). - sc_remove_db_prefs "${PREFS}" - [ -f "${LIVE_PREFS}" ] && sc_remove_db_prefs ${LIVE_PREFS} - - # Insert the external MySQL configuration into the preferences. - sc_update_prefs "${PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - [ -f "${LIVE_PREFS}" ] && sc_update_prefs "${LIVE_PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - - # Phew - all done. Give some tips on what to do now. - einfo "Database configuration complete." - einfo "" - sc_starting_instr -} - -pkg_preinst() { - # Warn the user if there are old plugins that he may need to migrate - if [ -d "${OLDPLUGINSDIR}" ]; then - if [ ! -z "$(ls ${OLDPLUGINSDIR})" ]; then - ewarn "Note: It appears that plugins are installed in the old location of:" - ewarn "${OLDPLUGINSDIR}" - ewarn "If these are to be used then they must be migrated to the new location:" - ewarn "${NEWPLUGINSDIR}" - ewarn "" - fi - fi -} diff --git a/media-sound/squeezecenter/squeezecenter-7.3.3-r1.ebuild b/media-sound/squeezecenter/squeezecenter-7.3.3-r1.ebuild deleted file mode 100644 index bbd0f7961d9e..000000000000 --- a/media-sound/squeezecenter/squeezecenter-7.3.3-r1.ebuild +++ /dev/null @@ -1,478 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/squeezecenter/squeezecenter-7.3.3-r1.ebuild,v 1.3 2009/07/26 15:14:23 ssuominen Exp $ - -inherit eutils - -MAJOR_VER="${PV:0:3}" -MINOR_VER="${PV:4:1}" -SRC_DIR="SqueezeCenter_v${MAJOR_VER}.${MINOR_VER}" -MY_P="squeezecenter-${MAJOR_VER}.${MINOR_VER}-noCPAN" - -DESCRIPTION="Logitech SqueezeCenter music server" -HOMEPAGE="http://www.slimdevices.com/pi_features.html" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="lame wavpack alac ogg bonjour flac avahi aac" - -#SRC_URI="http://www.slimdevices.com/downloads/${SRC_DIR}/${MY_P}.tgz -SRC_URI="http://downloads.slimdevices.com/${SRC_DIR}/${MY_P}.tgz - mirror://gentoo/SqueezeCenter-AutoXS-Header-0.03.tar.gz - mirror://gentoo/SqueezeCenter-Class-XSAccessor-Array-0.05.tar.gz - mirror://gentoo/SqueezeCenter-POE-XS-Queue-Array-0.002.tar.gz" - -# Note: virtual/perl-Module-Build necessary because of SC bug#5882 -# (http://bugs.slimdevices.com/show_bug.cgi?id=5882). -DEPEND=" - dev-perl/File-Which - virtual/perl-Module-Build - virtual/logger - virtual/mysql - avahi? ( net-dns/avahi ) - " -# Note: dev-perl/GD necessary because of SC bug#6143 -# (http://bugs.slimdevices.com/show_bug.cgi?id=6143). -RDEPEND=" - dev-perl/File-Which - virtual/logger - virtual/mysql - avahi? ( net-dns/avahi ) - >=dev-lang/perl-5.8.8 - >=dev-perl/GD-2.35 - >=virtual/perl-IO-Compress-2.015 - >=dev-perl/YAML-Syck-1.05 - >=dev-perl/DBD-mysql-4.00.5 - >=dev-perl/DBI-1.607 - >=dev-perl/Digest-SHA1-2.11 - >=dev-perl/Encode-Detect-1.01 - >=dev-perl/HTML-Parser-3.56 - >=dev-perl/JSON-XS-2.2.3.1 - >=dev-perl/Template-Toolkit-2.19 - >=virtual/perl-Time-HiRes-1.97.15 - >=dev-perl/XML-Parser-2.36 - >=dev-perl/Cache-Cache-1.04 - >=dev-perl/Class-Data-Inheritable-0.08 - >=dev-perl/Class-Inspector-1.23 - >=dev-perl/File-Next-1.02 - >=virtual/perl-File-Temp-0.20 - >=dev-perl/File-Which-0.05 - >=perl-core/i18n-langtags-0.35 - >=dev-perl/IO-String-1.08 - >=dev-perl/Log-Log4perl-1.13 - >=dev-perl/libwww-perl-5.805 - >=perl-core/CGI-3.29 - >=dev-perl/TimeDate-1.16 - >=dev-perl/Math-VecStat-0.08 - >=dev-perl/Net-DNS-0.63 - >=dev-perl/Net-IP-1.25 - >=dev-perl/Path-Class-0.16 - >=dev-perl/SQL-Abstract-1.22 - >=dev-perl/SQL-Abstract-Limit-0.12 - >=dev-perl/URI-1.35 - >=dev-perl/XML-Simple-2.18 - >=perl-core/version-0.76 - >=dev-perl/Carp-Clan-5.9 - >=dev-perl/Readonly-1.03 - >=dev-perl/Carp-Assert-0.20 - >=dev-perl/Class-Virtual-0.06 - >=dev-perl/File-Slurp-9999.13 - >=dev-perl/Exporter-Lite-0.02 - >=dev-perl/Tie-IxHash-1.21 - >=virtual/perl-Module-Pluggable-3.6 - >=dev-perl/Archive-Zip-1.23 - lame? ( media-sound/lame ) - alac? ( media-sound/alac_decoder ) - wavpack? ( media-sound/wavpack ) - bonjour? ( net-misc/mDNSResponder ) - flac? ( - media-libs/flac - media-sound/sox - ) - ogg? ( media-sound/sox ) - aac? ( media-video/mplayer ) - " - -S="${WORKDIR}/${MY_P}" - -# Selected contents of SqueezeCenter's local CPAN collection that we include -# in the installation. This removes duplication of CPAN modules. (See Gentoo -# bug #251494). -CPANKEEP=" - Class/XSAccessor/Array.pm - POE/XS/Queue/Array.pm - - JSON/XS/VersionOneAndTwo.pm - Class/Accessor/ - Class/Accessor.pm - Class/C3.pm - Class/Data/Accessor.pm - Algorithm/C3.pm - Data/ - DBIx/ - File/BOM.pm - Net/UPnP/ - Net/UPnP.pm - POE/Queue/Array.pm - Proc/Background/ - Proc/Background.pm - Text/Unidecode/ - Text/Unidecode.pm - Tie/Cache/LRU/ - Tie/Cache/LRU.pm - Tie/LLHash.pm - Tie/RegexpHash.pm - URI/Find.pm - PAR/ - PAR.pm - enum.pm - " - -PREFS="/var/lib/squeezecenter/prefs/squeezecenter.prefs" -LIVE_PREFS="/var/lib/squeezecenter/prefs/server.prefs" -DOCDIR="/usr/share/doc/squeezecenter-${PV}" -SHAREDIR="/usr/share/squeezecenter" -LIBDIR="/usr/lib/squeezecenter" -DBUSER="squeezecenter" -OLDPLUGINSDIR=/opt/squeezecenter/Plugins -NEWPLUGINSDIR=/var/lib/squeezecenter/Plugins - -pkg_setup() { - # Sox has optional OGG and FLAC support, so make sure it has that included - # if required - if use ogg; then - if ! built_with_use media-sound/sox ogg; then - eerror "media-sound/sox not built with USE=ogg" - die "SqueezeCenter needs media-sound/sox to be built with USE=ogg" - fi - fi - if use flac; then - if ! built_with_use media-sound/sox flac; then - eerror "media-sound/sox not built with USE=flac" - die "SqueezeCenter needs media-sound/sox to be built with USE=flac" - fi - fi - if use aac; then - if ! built_with_use media-video/mplayer aac; then - eerror "media-video/mplayer not built with USE=aac" - die "SqueezeCenter needs media-video/mplayer to be built with USE=aac" - fi - fi - - # Create the user and group if not already present - enewgroup squeezecenter - enewuser squeezecenter -1 -1 "/dev/null" squeezecenter -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Apply patches - epatch "${FILESDIR}/${P}-mDNSResponder-gentoo.patch" - epatch "${FILESDIR}/${P}-build-perl-modules-gentoo.patch" - epatch "${FILESDIR}/${PF}-aac-transcode-gentoo.patch" - epatch "${FILESDIR}/${P}-json-xs-gentoo.patch" - epatch "${FILESDIR}/${P}-squeezeslave.patch" - epatch "${FILESDIR}/${P}-squeezeslave-2.patch" - epatch "${FILESDIR}/${P}-squeezeslave-3.patch" -} - -src_compile() { - einfo "Building required Perl modules (some warnings are normal here) ..." - echo -e "\n${S}\n${WORKDIR}" | Bin/build-perl-modules.pl || die "Unable to build Perl modules" -} - -src_install() { - - # The main Perl executables - exeinto /usr/sbin - newexe slimserver.pl squeezecenter-server - newexe scanner.pl squeezecenter-scanner - newexe cleanup.pl squeezecenter-cleanup - - # Get the Perl package name and version - eval `perl '-V:package'` - eval `perl '-V:version'` - - # The custom OS module for Gentoo - provides OS-specific path details - cp "${FILESDIR}/gentoo-filepaths.pm" "Slim/Utils/OS/Custom.pm" || die "Unable to install Gentoo custom OS module" - - # The server Perl modules - dodir "/usr/lib/${package}/vendor_perl/${version}" - cp -r Slim "${D}/usr/lib/${package}/vendor_perl/${version}" || die "Unable to install server Perl modules" - - # Compiled CPAN module go under lib as they are arch-specific - dodir "/usr/lib/squeezecenter/CPAN" - cp -r CPAN/arch "${D}/usr/lib/squeezecenter/CPAN" || die "Unable to install compiled CPAN modules" - - # Preseve some of the SqueezeCenter-packaged CPAN modules that Gentoo - # doesn't provide ebuilds for. - for ITEM in ${CPANKEEP}; do - dodir "/usr/lib/squeezecenter/CPAN/$(dirname ${ITEM})" - cp -r "CPAN/${ITEM}" "${D}/usr/lib/squeezecenter/CPAN/${ITEM}" || die "Unable to preserve CPAN item ${ITEM}" - done - - # Various directories of architecture-independent static files - dodir "${SHAREDIR}" - cp -r Firmware "${D}/${SHAREDIR}" || die "Unable to install firmware" - cp -r Graphics "${D}/${SHAREDIR}" || die "Unable to install Graphics" - cp -r HTML "${D}/${SHAREDIR}" || die "Unable to install HTML" - cp -r IR "${D}/${SHAREDIR}" || die "Unable to install IR" - cp -r SQL "${D}/${SHAREDIR}" || die "Unable to install SQL" - - # Architecture-dependent static files - dodir "${LIBDIR}" - cp -r lib/* "${D}/${LIBDIR}" || die "Unable to install architecture-dependent files" - - # Strings and version identification - insinto "${SHAREDIR}" - doins strings.txt - doins revision.txt - - # Documentation - dodoc Changelog*.html - dodoc Installation.txt - dodoc License*.txt - newdoc "${FILESDIR}/Gentoo-plugins-README.txt" Gentoo-plugins-README.txt - - # Configuration files - insinto /etc/squeezecenter - doins convert.conf - doins types.conf - doins modules.conf - - # Install init scripts - newconfd "${FILESDIR}/squeezecenter.conf.d" squeezecenter - newinitd "${FILESDIR}/squeezecenter.init.d" squeezecenter - - # Install default preferences - insinto /var/lib/squeezecenter/prefs - newins "${FILESDIR}/squeezecenter.prefs" squeezecenter.prefs - fowners squeezecenter:squeezecenter /var/lib/squeezecenter/prefs - fperms 770 /var/lib/squeezecenter/prefs - - # Install the SQL configuration scripts - insinto "${SHAREDIR}/SQL/mysql" - doins "${FILESDIR}/dbdrop-gentoo.sql" - doins "${FILESDIR}/dbcreate-gentoo.sql" - - # Initialize run directory (where the PID file lives) - dodir /var/run/squeezecenter - fowners squeezecenter:squeezecenter /var/run/squeezecenter - fperms 770 /var/run/squeezecenter - - # Initialize server cache directory - dodir /var/lib/squeezecenter/cache - fowners squeezecenter:squeezecenter /var/lib/squeezecenter/cache - fperms 770 /var/lib/squeezecenter/cache - - # Initialize the log directory - dodir /var/log/squeezecenter - fowners squeezecenter:squeezecenter /var/log/squeezecenter - fperms 770 /var/log/squeezecenter - touch "${D}/var/log/squeezecenter/server.log" - touch "${D}/var/log/squeezecenter/scanner.log" - touch "${D}/var/log/squeezecenter/perfmon.log" - fowners squeezecenter:squeezecenter /var/log/squeezecenter/server.log - fowners squeezecenter:squeezecenter /var/log/squeezecenter/scanner.log - fowners squeezecenter:squeezecenter /var/log/squeezecenter/perfmon.log - - # Initialise the user-installed plugins directory - dodir "${NEWPLUGINSDIR}" - - # Install logrotate support - insinto /etc/logrotate.d - newins "${FILESDIR}/squeezecenter.logrotate.d" squeezecenter - - # Install Avahi support (if USE flag is set) - if use avahi; then - insinto /etc/avahi/services - newins "${FILESDIR}/avahi-squeezecenter.service" squeezecenter.service - fi -} - -sc_starting_instr() { - elog "SqueezeCenter can be started with the following command:" - elog "\t/etc/init.d/squeezecenter start" - elog "" - elog "SqueezeCenter can be automatically started on each boot with the" - elog "following command:" - elog "\trc-update add squeezecenter default" - elog "" - elog "You might want to examine and modify the following configuration" - elog "file before starting SqueezeCenter:" - elog "\t/etc/conf.d/squeezecenter" - elog "" - - # Discover the port number from the preferences, but if it isn't there - # then report the standard one. - httpport=$(gawk '$1 == "httpport:" { print $2 }' "${ROOT}${LIVE_PREFS}" 2>/dev/null) - elog "You may access and configure SqueezeCenter by browsing to:" - elog "\thttp://localhost:${httpport:-9000}/" -} - -pkg_postinst() { - # FLAC and LAME are quite useful (but not essential) for SqueezeCenter - - # if they're not enabled then make sure the user understands that. - if ! use flac; then - ewarn "'flac' USE flag is not set. Although not essential, FLAC is required" - ewarn "for playing lossless WAV and FLAC (for Squeezebox 1), and for" - ewarn "playing other less common file types (if you have a Squeezebox 2, 3," - ewarn "Receiver or Transporter)." - ewarn "For maximum flexibility you are recommended to set the 'flac' USE flag". - ewarn "" - fi - if ! use lame; then - ewarn "'lame' USE flag is not set. Although not essential, LAME is" - ewarn "required if you want to limit the bandwidth your Squeezebox or" - ewarn "Transporter uses when streaming audio." - ewarn "For maximum flexibility you are recommended to set the 'lame' USE flag". - ewarn "" - fi - - # Album art requires PNG and JPEG support from GD, so if it's not there - # then warn the user. It's not mandatory as the user may not be using - # album art. - if ! built_with_use dev-perl/GD jpeg || \ - ! built_with_use dev-perl/GD png || \ - ! built_with_use media-libs/gd jpeg || \ - ! built_with_use media-libs/gd png; then - ewarn "For correct operation of album art through SqueezeCenter's web" - ewarn "interface the GD library and Perl module must be built with PNG" - ewarn "and JPEG support. If necessary you can add the following lines" - ewarn "to the file /etc/portage/package.use:" - ewarn "\tdev-perl/GD jpeg png" - ewarn "\tmedia-libs/gd jpeg png" - ewarn "And then rebuild those packages with:" - ewarn "\temerge --newuse dev-perl/GD media-libs/gd" - ewarn "" - fi - - # Point user to database configuration step - elog "If this is a new installation of SqueezeCenter then the database" - elog "must be configured prior to use. This can be done by running the" - elog "following command:" - elog "\temerge --config =${CATEGORY}/${PF}" - - # Remind user to configure Avahi if necessary - if use avahi; then - elog "" - elog "Avahi support installed. Remember to edit the folowing file if" - elog "you run SqueezeCenter's web interface on a port other than 9000:" - elog "\t/etc/avahi/services/squeezecenter.service" - fi - - elog "" - sc_starting_instr -} - -sc_remove_db_prefs() { - MY_PREFS=$1 - - einfo "Configuring SqueezeCenter database preferences (${MY_PREFS}) ..." - TMPPREFS="${T}"/squeezecenter-prefs-$$ - touch "${ROOT}${MY_PREFS}" - sed -e '/^dbusername:/d' -e '/^dbpassword:/d' -e '/^dbsource:/d' < "${ROOT}${MY_PREFS}" > "${TMPPREFS}" - mv "${TMPPREFS}" "${ROOT}${MY_PREFS}" - chown squeezecenter:squeezecenter "${ROOT}${MY_PREFS}" - chmod 660 "${ROOT}${MY_PREFS}" -} - -sc_update_prefs() { - MY_PREFS=$1 - MY_DBUSER=$2 - MY_DBUSER_PASSWD=$3 - - echo "dbusername: ${MY_DBUSER}" >> "${ROOT}${MY_PREFS}" - echo "dbpassword: ${MY_DBUSER_PASSWD}" >> "${ROOT}${MY_PREFS}" - echo "dbsource: dbi:mysql:database=${MY_DBUSER};mysql_socket=/var/run/mysqld/mysqld.sock" >> "${ROOT}${MY_PREFS}" -} - -pkg_config() { - einfo "Press ENTER to create the SqueezeCenter database and set proper" - einfo "permissions on it. You will be prompted for the MySQL 'root' user's" - einfo "password during this process (note that the MySQL 'root' user is" - einfo "independent of the Linux 'root' user and so may have a different" - einfo "password)." - einfo "" - einfo "If you already have a SqueezeCenter database set up then this" - einfo "process will clear the existing database (your music files will not," - einfo "however, be affected)." - einfo "" - einfo "Alternatively, press Control-C to abort now..." - read - - # Get the MySQL root password from the user (not echoed to the terminal) - einfo "The MySQL 'root' user password is required to create the" - einfo "SqueezeCenter user and database." - DONE=0 - while [ $DONE -eq 0 ]; do - trap "stty echo; echo" EXIT - stty -echo - read -p "MySQL root password: " ROOT_PASSWD; echo - stty echo - trap ":" EXIT - echo quit | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 && DONE=1 - if [ $DONE -eq 0 ]; then - eerror "Incorrect MySQL root password, or MySQL is not running" - fi - done - - # Get the new password for the SqueezeCenter MySQL database user, and - # have it re-entered to confirm it. We should trivially check it's not - # the same as the MySQL root password. - einfo "A new MySQL user will be added to own the SqueezeCenter database." - einfo "Please enter the password for this new user (${DBUSER})." - DONE=0 - while [ $DONE -eq 0 ]; do - trap "stty echo; echo" EXIT - stty -echo - read -p "MySQL ${DBUSER} password: " DBUSER_PASSWD; echo - stty echo - trap ":" EXIT - if [ -z "$DBUSER_PASSWD" ]; then - eerror "The password should not be blank; try again." - elif [ "$DBUSER_PASSWD" == "$ROOT_PASSWD" ]; then - eerror "The ${DBUSER} password should be different to the root password" - else - DONE=1 - fi - done - - # Drop the existing database and user - note we don't care about errors - # from this as it probably just indicates that the database wasn't - # yet present. - einfo "Dropping old SqueezeCenter database and user ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" < "${SHAREDIR}/SQL/mysql/dbdrop-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" >/dev/null 2>&1 - - # Drop and create the SqueezeCenter user and database. - einfo "Creating SqueezeCenter MySQL user and database (${DBUSER}) ..." - sed -e "s/__DATABASE__/${DBUSER}/" -e "s/__DBUSER__/${DBUSER}/" -e "s/__DBPASSWORD__/${DBUSER_PASSWD}/" < "${SHAREDIR}/SQL/mysql/dbcreate-gentoo.sql" | mysql --user=root --password="${ROOT_PASSWD}" || die "Unable to create MySQL database and user" - - # Remove the existing MySQL preferences from SqueezeCenter (if any). - sc_remove_db_prefs "${PREFS}" - [ -f "${LIVE_PREFS}" ] && sc_remove_db_prefs ${LIVE_PREFS} - - # Insert the external MySQL configuration into the preferences. - sc_update_prefs "${PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - [ -f "${LIVE_PREFS}" ] && sc_update_prefs "${LIVE_PREFS}" "${DBUSER}" "${DBUSER_PASSWD}" - - # Phew - all done. Give some tips on what to do now. - einfo "Database configuration complete." - einfo "" - sc_starting_instr -} - -pkg_preinst() { - # Warn the user if there are old plugins that he may need to migrate - if [ -d "${OLDPLUGINSDIR}" ]; then - if [ ! -z "$(ls ${OLDPLUGINSDIR})" ]; then - ewarn "Note: It appears that plugins are installed in the old location of:" - ewarn "${OLDPLUGINSDIR}" - ewarn "If these are to be used then they must be migrated to the new location:" - ewarn "${NEWPLUGINSDIR}" - ewarn "" - fi - fi -} |