/[gentoo-x86]/net-misc/dropbox/dropbox-1.4.3.ebuild
Gentoo

Contents of /net-misc/dropbox/dropbox-1.4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jul 25 02:39:58 2012 UTC (7 years, 4 months ago) by naota
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Update init script to use correct pid file. #427800

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dropbox/dropbox-1.4.3.ebuild,v 1.3 2012/07/08 20:44:32 naota Exp $
4
5 EAPI="4"
6
7 inherit gnome2-utils pax-utils
8
9 DESCRIPTION="Dropbox daemon (pretends to be GUI-less)"
10 HOMEPAGE="http://dropbox.com/"
11 SRC_URI="x86? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86-${PV}.tar.gz )
12 amd64? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86_64-${PV}.tar.gz )"
13
14 LICENSE="CCPL-Attribution-NoDerivs-3.0 FTL MIT LGPL-2 openssl dropbox"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="+librsync-bundled"
18 RESTRICT="mirror strip"
19
20 QA_DT_HASH="opt/${PN}/.*"
21 QA_EXECSTACK_x86="opt/dropbox/_ctypes.so"
22 QA_EXECSTACK_amd64="opt/dropbox/_ctypes.so"
23
24 DEPEND="dev-util/patchelf"
25
26 # Be sure to have GLIBCXX_3.4.9, #393125
27 RDEPEND="
28 app-arch/bzip2
29 dev-libs/popt
30 dev-libs/openssl:0.9.8
31 media-libs/libpng:1.2
32 !librsync-bundled? ( net-libs/librsync )
33 net-misc/wget
34 >=sys-devel/gcc-4.2.0
35 sys-libs/zlib
36 x11-themes/hicolor-icon-theme
37 "
38
39 src_unpack() {
40 unpack ${A}
41 mkdir -p "${S}"
42 mv "${WORKDIR}/.dropbox-dist" "${S}"/src || die
43 cd "${S}"/src
44 rm -vf libstdc++.so.6 libz* libssl* libbz2* libpopt.so.0 libcrypto.so.0.9.8 libpng12.so.0 || die
45 if ! use librsync-bundled; then
46 rm -vf librsync.so.1 || die
47 else
48 patchelf --set-rpath '$ORIGIN' _librsync.so || die
49 fi
50 pax-mark cm "${S}/src/dropbox"
51 cd "${WORKDIR}"
52 }
53
54 src_install() {
55 cd src || die
56 dodoc README ACKNOWLEDGEMENTS
57 rm README ACKNOWLEDGEMENTS || die
58
59 local targetdir="/opt/dropbox"
60 insinto "${targetdir}"
61 doins -r *
62 fperms a+x "${targetdir}/dropbox"
63 fperms a+x "${targetdir}/dropboxd"
64 dosym "${targetdir}/dropboxd" "/opt/bin/dropbox"
65
66 insinto /usr/share
67 doins -r icons
68
69 newinitd "${FILESDIR}"/dropbox.initd dropbox
70 newconfd "${FILESDIR}"/dropbox.conf dropbox
71 }
72
73 pkg_preinst() {
74 gnome2_icon_savelist
75 }
76
77 pkg_postinst() {
78 gnome2_icon_cache_update
79 }
80
81 pkg_postrm() {
82 gnome2_icon_cache_update
83 }

  ViewVC Help
Powered by ViewVC 1.1.20