Add spotify and libgcrypt on .11
authorkristianf <devnull@localhost>
Mon, 31 Mar 2014 17:07:26 +0000 (19:07 +0200)
committerkristianf <devnull@localhost>
Mon, 31 Mar 2014 17:07:26 +0000 (19:07 +0200)
app-crypt/monkeysphere/Manifest
app-crypt/monkeysphere/monkeysphere-0.36-r2.ebuild
dev-libs/libgcrypt/Manifest
dev-libs/libgcrypt/libgcrypt-1.5.3-r101.ebuild [new file with mode: 0644]
dev-libs/libgcrypt/libgcrypt-9999.ebuild
media-sound/spotify/Manifest [new file with mode: 0644]
media-sound/spotify/spotify-0.9.4.183-r5.ebuild [new file with mode: 0644]

index 671a74f..4597556 100644 (file)
@@ -5,5 +5,5 @@ AUX monkeysphere-0.36_openpgp2ssh_sanity_check.patch 1194 SHA256 e179ae2226f04f8
 AUX monkeysphere-0.36_tests_gnupg2.patch 2272 SHA256 381c351000d940e8b1e1a429265276266e590b5dc02c865e30780f723fa9fb9c SHA512 e75f82793419dd2e99aa95765e9d954437d0e78294ed4188a9e7fa246b85ddbcd755eb566a1e9a9c20f2f2634150d65caa0715993863f59f9146f5cc95457975 WHIRLPOOL 36ffb05c4362fb3b193187b3637263b95aef95b85ed70d6bb51a36bf8e8dba392b2363b401b8902b0a9ef7f91ddba304c8982d32815d273c9b009652d482e334
 AUX monkeysphere-0.36_userid_empty_line.patch 292 SHA256 bf3eefe21edd72ad813888bcd91a9c6cef8a90d0e5f8272f847cb278750ab787 SHA512 15b8e8ff71537e79d069d0f298326cc6705931c58ff1cf2f16c5486e587fe69f610dc1e0ebd0006e0bdef12f936685a0594dc3f9dbdadb928fba25a8e2982eb7 WHIRLPOOL bf27a00f18407a616e22340d10d15837fca21b659ab57fbd603718c49fb15533734d660ee061bc544cb281c6d4bb073aabff6c85d3f4b232b0872da512ae8964
 DIST monkeysphere_0.36.orig.tar.gz 98876 SHA256 6ae4edeff2cc29b6913346e15b61500ea7cc06d761a9f42e67de83b7d2607be7 SHA512 eb6776bd9996db8a5d6a1d16b5b06e6733069cbb3cb35f4e3965508575e084c6f08576f31c71429432daf93910d145804ecf155c3d7550a0f4550a056cb4f0c8 WHIRLPOOL c163d0be77d3c6d838f752c8f53d967b17aeafd798e4fca694a31bf55628fb57d18b6a4664ca9552bd3daf3b89b6f86452d430529985ca0a31c3c4aa48470bc0
-EBUILD monkeysphere-0.36-r2.ebuild 1745 SHA256 1b2d3a72f64e30c8a5559c1bc663c725debed72ca08e667f73ae79c75f4e2f86 SHA512 51d90860b643e2d86108c3bcb6d66319d933ecadab14f9c163a44becebfbdd022f2c99a9d49c69a3a517f4c657e719389785cb97c5fa1972a9bf54603dd1574a WHIRLPOOL e75862b7d1f6219651fd8014106800a155324dc6c20eecc09df19f639d95017337cf0f8e4d6430ffea5a482de693c2b611d66b92d523219dffaf562765fa2415
+EBUILD monkeysphere-0.36-r2.ebuild 1745 SHA256 ec4631d5e292a38f35a106f15b3e07c2afc62b9995e578198f112f74fb559246 SHA512 12d91e5d22552fdae836b79e99c8fe18341ac6a6c572ce0c14e939c937ed49dbd1f56f460018453052470f95e5e9a604d518e234c091c5e09be7814a53aeac4b WHIRLPOOL f51dd89513952c409b4d82e1ab9a9109f1bc9f0ba586e670d0eace5e15b9e5253b549635dd21be930d3f18492e35eb4e7293d2300553d2e10029d03cced12ed4
 MISC metadata.xml 209 SHA256 1395b5c18e78e85c534a39796fdd1d97be9e17d1800cca5e9a8b1341743f847c SHA512 ba9a5a751095aa33d737e0a6647b78f067497aad54ab0193a5aa2ec01c92a30f613ed85015f2ffda846acea85e892ea498b300f7ebae2e8f31c9cf3e4839db98 WHIRLPOOL b1d84fa003d98e38b81d14580a881417aac75958e924fcbad16cb8803b0b1e6831dc8fbfcb758d5b96e38c6f5f27bdc290bade36adb0a8d67121e169b7cbf2ff
index 352ce7b..c4e39d2 100644 (file)
@@ -32,6 +32,10 @@ pkg_setup()
        einfo "Creating named group and user"
        enewgroup monkeysphere
        enewuser monkeysphere -1 -1 /var/lib/monkeysphere monkeysphere
+       # Using fperms and fowner in src_install leave unusable config with error
+        # Authentication refused: bad ownership or modes for directory /var/lib/monkeysphere
+       chown root:monkeysphere /var/lib/monkeysphere
+       chmod 751 /var/lib/monkeysphere
 }
 
 src_prepare()
@@ -60,8 +64,4 @@ src_install()
 pkg_postinst()
 {
        monkeysphere-authentication setup || die
-       # Using fperms and fowner in src_install leave unusable config with error
-        # Authentication refused: bad ownership or modes for directory /var/lib/monkeysphere
-       chown root:monkeysphere /var/lib/monkeysphere
-       chmod 751 /var/lib/monkeysphere
 }
index 30f55df..3e7e0f3 100644 (file)
@@ -1,4 +1,6 @@
 AUX 0002-Fix-building-with-GNU-Automake-1.13.patch 2050 SHA256 78b5786783d326a77323cbdb9294544d184a2ddfc3d8d298be170e5b585ea45a SHA512 3b66d6a0e02f0ba16dbcf509b045d771c40865bd6054bd928506cc2c157f764d55f352d557ac33cc0dbc0892351998723306ee61609e5459141b48c9158a86b3 WHIRLPOOL ea63892696187afe9fe9be752247056f4062019a413370186ee28383b4f97c0a4bba43ec5212dc433d94d1f831ec90bd5dac84a37dc5b99faa63f45006fd732e
 AUX libgcrypt-1.5.0-uscore.patch 981 SHA256 4cbb34cebce02531b9b940494b78b7186b2fd05b802866d9ecb42d478e88e845 SHA512 716e182684886c905525ab9218b3453fd968ee8f73da83d3ba97ca84a868e18eb1c1c9bb3891a1e4b25f870eb3d762a5e8a415168c9804e9367d8dd12090a601 WHIRLPOOL 6b6b1944539127c9c41fda46c54d8e331597d249ab91a0024a38d60a907a0fba114fb064c8d956c90a91e27e6ae30aa2e6dd4a3b61b2e8d771e53499b9810016
 AUX libgcrypt-multilib-syspath.patch 588 SHA256 a3fc53f24b9cd0355a5267bc3ca8e88c397878473046536068c8ae4ae0b526eb SHA512 913c1a474aba50ec3589fb5a991f65204ba2cc28203b92353fdef8fb092350c3be814a57f29a26a2176627509a4f573f6db02ebdbcde3f04a2f1d632879293dc WHIRLPOOL 8d066987dc3cfa1dd686047fd5332b11199e5add63f82e397a34b22b5ce2f97af17d60042681c1eb50617402189a0d7fca5db48db7d41f4ef0f1cbe1acc645ab
-EBUILD libgcrypt-9999.ebuild 730 SHA256 045875634a5cc65f110e1089a5b6108093c92930e6c4c20b65ff55a46ead7cf5 SHA512 79bafe3bf871fd6e6fc488f611f5da7f97ee80bd7496cad93d373974ed1ec0f63656b2718368a462a71330253b0c3ebb506766b6cec7b52a9ade815542037fb8 WHIRLPOOL 661db759459dee92426f93bdd462f441e9f021ea56ad0de8782540f64da986ae3ee71ac8509e9157ad2d589f69981c46d0272ccd608057aa3a903382b309e2dc
+DIST libgcrypt-1.5.3.tar.bz2 1508530 SHA256 bcf5334e7da352c45de6aec5d2084ce9a1d30029ff4a4a5da13f1848874759d1 SHA512 2fc2771d00d5fef9a7158790a8914da10154a5fac9124bf21ee43edd08b43dd4452f38a3aee12deb46d86f574ffdd0688c5829e978f4de2fa3e07be486e99723 WHIRLPOOL da8b354e772ba830d3fbecc2c707c96f8b0f65f98d4af9d5b79ac639a9029bc364688836e0af1d9f7810c5df2679f8d4ba61d9afa775530c4b0f755ac88049fe
+EBUILD libgcrypt-1.5.3-r101.ebuild 1752 SHA256 4e856c899d1fdfb867d60ed087241609a4204f4f957796ad4646856716891671 SHA512 ac0e42d48214d70ad335ead496cb0cf2fcac46d5fe51df5b2ee9a1fe79c00bc9cdd9963d16dd1db989aa1ed35067cdb4e70d2f0679cb22935c3effca54a43bd7 WHIRLPOOL 0964e97684665639cb1e91f191114aa7e67a75b09825f91653f2ffbe29f6782084c1da0a49f4beeda800e46c2cd799893443073fabc69d8f383da57499c441a0
+EBUILD libgcrypt-9999.ebuild 733 SHA256 de86b7f60da47b63ae1d4947981537cfd52eb9df748442a30e8c0d9f58da1b76 SHA512 7b45aef98334e43f376c01565efdcb69f790daca7c1cd4e1bb9ae87ee2db52e5226981a16639870944e15e01ec0fdaab5c9c334b8f46cfe89b87c3b74387a8c4 WHIRLPOOL 80c172fd94e24b9259136c564b8c1238efeeca132db8c6b1087c5f3863bfa17372ad1130a68a3f268d43fea4dd1d9ee20a14390d8d7ed342d84dfc5d2bcf7388
diff --git a/dev-libs/libgcrypt/libgcrypt-1.5.3-r101.ebuild b/dev-libs/libgcrypt/libgcrypt-1.5.3-r101.ebuild
new file mode 100644 (file)
index 0000000..bd3f0fd
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgcrypt/libgcrypt-1.5.3-r100.ebuild,v 1.3 2014/03/01 18:49:18 mgorny Exp $
+
+EAPI=5
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-multilib
+
+DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
+HOMEPAGE="http://www.gnupg.org/"
+SRC_URI="mirror://gnupg/libgcrypt/${P}.tar.bz2
+       ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 MIT"
+SLOT="11/11" # subslot = soname major version
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND=">=dev-libs/libgpg-error-1.8
+       !dev-libs/libgcrypt:0/11"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.5.0-uscore.patch
+       "${FILESDIR}"/${PN}-multilib-syspath.patch
+)
+
+src_configure() {
+       local myeconfargs=(
+               --disable-padlock-support # bug 201917
+               --disable-dependency-tracking
+               --enable-noexecstack
+               --disable-O-flag-munging
+
+               # disabled due to various applications requiring privileges
+               # after libgcrypt drops them (bug #468616)
+               --without-capabilities
+
+               # http://trac.videolan.org/vlc/ticket/620
+               # causes bus-errors on sparc64-solaris
+               $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
+               $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
+       )
+       autotools-multilib_src_configure
+}
+
+src_install() {
+       autotools-multilib_src_install
+
+       rm -r "${ED%/}"/usr/{bin,include,lib*/*.so,share} || die
+}
index 5330e2f..d6747b1 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: Exp $
 
-EAPI=4
+EAPI=5
 
 inherit autotools flag-o-matic user git-2
 
@@ -11,7 +11,7 @@ EGIT_REPO_URI="git://git.gnupg.org/${PN}.git"
 HOMEPAGE="http://gnupg.org/"
 
 LICENSE="GPL-2"
-SLOT="0"
+SLOT="0/20"
 KEYWORDS="~amd64 ~x86"
 
 IUSE=""
diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest
new file mode 100644 (file)
index 0000000..9661240
--- /dev/null
@@ -0,0 +1,3 @@
+DIST spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb 47355040 SHA256 dd0d072013918498a65dbc26bfb3dda0aacd7ee122e300bccd39731d8da5d1fa SHA512 f596c79cc69508ec47f7579e73033127c403bed9209cef5b9c1cb88805054f85ebb38eaa28037ae2955a5fb14cc8b3c76b3c2d7668316e4d5a2c80d6fdd6c571 WHIRLPOOL 088c73004fb273d1d0ea143f4da212402a82109f9eb7464cf829f96cd8e0446a8adc976ecc16020a664653d2c8e6bc521b843d075a52c5867d97bbfac1b8cba3
+DIST spotify-client_0.9.4.183.g644e24e.428-1_i386.deb 41740148 SHA256 ca45d057357e4c30efee3838dd941222500463ddd0a1db6981e4d48d7ad986f2 SHA512 0f31fbf2274ca6cf16144bc85c8e71cfe347ad2994c100917a5912b413e976b2f913c3aea4d6cc7fd83bdf9d3c2836cc4d758f90f7afdb1078a14c93c23436d9 WHIRLPOOL bcce68c713606a3c092cf82356f56f4ad84f1e70046eef68ba9263ced73c0e101de082362e44050640ac8bfa968716d2ef7ca97f9e3cd2323e91ee4403b3b58d
+EBUILD spotify-0.9.4.183-r5.ebuild 5603 SHA256 957d171e16b5ed4a3b4180b450864a1b91e2aab6a2fc65cd01a1cdbc9bcbc633 SHA512 a3ea600ce9aefd7a025bea49201fffd86568653ec7a8e8e6e0c33e530a2e5acac93fc64544d6cdf3b721465d61ab1a7505db1092033e73d9a0fd7fe7af701196 WHIRLPOOL 13bdbf299a7d1e81077760a7febe047c7d061eab620e04c389ec438b655259df90caf2ec7df123593015d3f1631413642261d68d24e43ceb038f4a8d264dc011
diff --git a/media-sound/spotify/spotify-0.9.4.183-r5.ebuild b/media-sound/spotify/spotify-0.9.4.183-r5.ebuild
new file mode 100644 (file)
index 0000000..169071b
--- /dev/null
@@ -0,0 +1,180 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.9.4.183-r5.ebuild,v 1.2 2014/01/28 04:24:21 prometheanfire Exp $
+
+EAPI=5
+inherit eutils fdo-mime gnome2-utils pax-utils unpacker
+
+DESCRIPTION="Spotify is a social music platform"
+HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
+MY_PV="${PV}.g644e24e.428-1"
+MY_P="${PN}-client_${MY_PV}"
+SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
+SRC_URI="
+       x86?   ( ${SRC_BASE}${MY_P}_i386.deb )
+       amd64? ( ${SRC_BASE}${MY_P}_amd64.deb )
+       "
+LICENSE="Spotify"
+SLOT="0"
+#amd64 and x86 keywords removed due to security concerns, see bug 474010
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome pax_kernel pulseaudio"
+RESTRICT="mirror strip"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+               x11-libs/libxcb
+               x11-libs/libICE
+               x11-libs/libSM
+               x11-libs/libX11
+               x11-libs/libXau
+               x11-libs/libXext
+               x11-libs/libXinerama
+               x11-libs/libXdmcp
+               x11-libs/libXScrnSaver
+               x11-libs/libXrandr
+               x11-libs/libXrender
+               dev-qt/qtcore:4[qt3support]
+               dev-qt/qtdbus:4
+               dev-qt/qtgui:4[qt3support]
+               dev-qt/qtwebkit:4
+               x11-misc/xdg-utils
+               media-libs/alsa-lib
+               media-libs/fontconfig
+               media-libs/freetype
+               dev-libs/openssl:0
+               dev-libs/glib:2
+               dev-libs/libgcrypt:11
+               media-libs/libpng:1.2
+               dev-db/sqlite:3
+               sys-libs/zlib
+               app-arch/bzip2
+               sys-apps/dbus
+               sys-apps/util-linux
+               dev-libs/expat
+               >=dev-libs/nspr-4.9
+               gnome-base/gconf:2
+               x11-libs/gtk+:2
+               dev-libs/nss
+               dev-libs/glib:2
+               net-print/cups
+               virtual/udev
+               pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
+               gnome? ( gnome-extra/gnome-integration-spotify )"
+
+S=${WORKDIR}
+
+QA_PREBUILT="/opt/spotify/spotify-client/spotify
+                       /opt/spotify/spotify-client/Data/SpotifyHelper
+                       /opt/spotify/spotify-client/Data/libcef.so"
+
+src_prepare() {
+       # link against openssl-1.0.0 as it crashes with 0.9.8
+       sed -i \
+               -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
+               opt/spotify/spotify-client/spotify || die "sed failed"
+       sed -i \
+               -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
+               opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed"
+       # different NSPR / NSS library names for some reason
+       sed -i \
+               -e 's/\(lib\(plc4\|nspr4\).so\).9\(.\)/\1.0d\3\3/g' \
+               opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed"
+       sed -i \
+               -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1\x00\x00\x00/g' \
+               -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1\x00\x00\3\3/g' \
+               opt/spotify/spotify-client/Data/libcef.so || die "sed failed"
+       # Fix desktop entry to launch spotify-dbus.py for GNOME integration
+       if use gnome ; then
+       sed -i \
+               -e 's/spotify \%U/spotify-dbus.py \%U/g' \
+               opt/spotify/spotify-client/spotify.desktop || die "sed failed"
+       fi
+       #and fix other stuff in the desktop file as well
+       sed -i \
+               -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \
+               -e 's/AudioVideo$/AudioVideo\;/g' \
+               opt/spotify/spotify-client/spotify.desktop || die "sed failed"
+}
+
+src_install() {
+       dodoc opt/spotify/spotify-client/changelog
+       dodoc usr/share/doc/spotify-client/changelog.Debian.gz
+       dodoc usr/share/doc/spotify-client/copyright
+
+       insinto /usr/share/pixmaps
+       doins opt/spotify/spotify-client/Icons/*.png
+
+       # install in /opt/spotify
+       SPOTIFY_HOME=/opt/spotify/spotify-client
+       insinto ${SPOTIFY_HOME}
+       doins -r opt/spotify/spotify-client/*
+       fperms +x ${SPOTIFY_HOME}/spotify
+       fperms +x ${SPOTIFY_HOME}/Data/SpotifyHelper
+
+       dodir /usr/bin
+       cat <<-EOF >"${D}"/usr/bin/spotify
+               #! /bin/sh
+               LD_PRELOAD="\${LD_PRELOAD} ${SPOTIFY_HOME}/libnspr4.so.9 ${SPOTIFY_HOME}/libplc4.so.9"
+               LD_LIBRARY_PATH="${SPOTIFY_HOME}/Data/"
+               export LD_PRELOAD
+               export LD_LIBRARY_PATH
+               exec ${SPOTIFY_HOME}/spotify "\$@"
+       EOF
+       fperms +x /usr/bin/spotify
+
+       # revdep-rebuild produces a false positive because of symbol versioning
+       dodir /etc/revdep-rebuild
+       cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN}
+               SEARCH_DIRS_MASK="${SPOTIFY_HOME}"
+       EOF
+
+       for size in 16 22 24 32 48 64 128 256; do
+               newicon -s ${size} "${S}${SPOTIFY_HOME}/Icons/spotify-linux-${size}.png" \
+                       "spotify-client.png"
+       done
+       domenu "${S}${SPOTIFY_HOME}/spotify.desktop"
+
+       if use pax_kernel; then
+               #create the headers, reset them to default, then paxmark -m them
+               pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
+               pax-mark C "${ED}${SPOTIFY_HOME}/Data/SpotifyHelper" || die
+               pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
+               pax-mark z "${ED}${SPOTIFY_HOME}/Data/SpotifyHelper" || die
+               pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
+               pax-mark m "${ED}${SPOTIFY_HOME}/Data/SpotifyHelper" || die
+               eqawarn "You have set USE=pax_kernel meaning that you intendto run"
+               eqawarn "${PN} under a PaX enabled kernel.  To do so, we must modify"
+               eqawarn "the ${PN} binary itself and this *may* lead to breakage!  If"
+               eqawarn "you suspect that ${PN} is being broken by this modification,"
+               eqawarn "please open a bug."
+       fi
+
+       #hack to fix the nspr linking in spotify
+       dosym /usr/lib/libnspr4.so "${SPOTIFY_HOME}/libnspr4.so.9"
+       dosym /usr/lib/libplc4.so "${SPOTIFY_HOME}/libplc4.so.9"
+       #TODO fix for x86
+       dosym /usr/lib/libudev.so "${SPOTIFY_HOME}/Data/libudev.so.0"
+}
+
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       fdo-mime_mime_database_update
+       fdo-mime_desktop_database_update
+
+       ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
+       ewarn "To remove the cache:"
+       ewarn "rm -rf ~/.cache/spotify"
+       ewarn
+       ewarn "you need to use the ld.bfd linker with openssl"
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       fdo-mime_mime_database_update
+       fdo-mime_desktop_database_update
+}