diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-12-28 13:27:46 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-12-28 13:27:46 +0000 |
commit | 1cbb8913f19e1b43c42463243be918bb539d3085 (patch) | |
tree | ea4345d2688833d53679191f5d02782dd9d75f23 /net-misc/dropbox | |
parent | Version bump. (diff) | |
download | gentoo-2-1cbb8913f19e1b43c42463243be918bb539d3085.tar.gz gentoo-2-1cbb8913f19e1b43c42463243be918bb539d3085.tar.bz2 gentoo-2-1cbb8913f19e1b43c42463243be918bb539d3085.zip |
Add unit file (#496214 by Leho Kraav)
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-misc/dropbox')
-rw-r--r-- | net-misc/dropbox/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/dropbox/dropbox-2.4.8-r1.ebuild | 104 | ||||
-rw-r--r-- | net-misc/dropbox/files/dropbox_at.service | 13 |
3 files changed, 124 insertions, 1 deletions
diff --git a/net-misc/dropbox/ChangeLog b/net-misc/dropbox/ChangeLog index c0f109246bc3..958ab421ab12 100644 --- a/net-misc/dropbox/ChangeLog +++ b/net-misc/dropbox/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/dropbox # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbox/ChangeLog,v 1.43 2013/12/08 10:51:43 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbox/ChangeLog,v 1.44 2013/12/28 13:27:46 pacho Exp $ + +*dropbox-2.4.8-r1 (28 Dec 2013) + + 28 Dec 2013; Pacho Ramos <pacho@gentoo.org> +dropbox-2.4.8-r1.ebuild, + +files/dropbox_at.service: + Add unit file (#496214 by Leho Kraav) 08 Dec 2013; Pacho Ramos <pacho@gentoo.org> dropbox-2.4.7.ebuild: x86 stable, bug #492256 diff --git a/net-misc/dropbox/dropbox-2.4.8-r1.ebuild b/net-misc/dropbox/dropbox-2.4.8-r1.ebuild new file mode 100644 index 000000000000..bc582b58dc2a --- /dev/null +++ b/net-misc/dropbox/dropbox-2.4.8-r1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbox/dropbox-2.4.8-r1.ebuild,v 1.1 2013/12/28 13:27:46 pacho Exp $ + +EAPI=5 + +inherit eutils gnome2-utils pax-utils systemd + +DESCRIPTION="Dropbox daemon (pretends to be GUI-less)" +HOMEPAGE="http://dropbox.com/" +SRC_URI=" + x86? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86-${PV}.tar.gz ) + amd64? ( http://dl-web.dropbox.com/u/17/dropbox-lnx.x86_64-${PV}.tar.gz )" + +LICENSE="CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-linux" +IUSE="+librsync-bundled X" +RESTRICT="mirror strip" + +QA_PREBUILT="opt/.*" +QA_EXECSTACK="opt/dropbox/dropbox" + +DEPEND="librsync-bundled? ( dev-util/patchelf )" + +# Be sure to have GLIBCXX_3.4.9, #393125 +# USE=X require wxGTK's dependencies. system-library cannot be used due to +# missing symbol (CtlColorEvent). #443686 +RDEPEND=" + X? ( + dev-libs/glib:2 + media-libs/libpng:1.2 + sys-libs/zlib + virtual/jpeg + x11-libs/gtk+:2 + x11-libs/libSM + x11-libs/libXinerama + x11-libs/libXxf86vm + x11-libs/pango[X] + x11-themes/hicolor-icon-theme + ) + app-arch/bzip2 + dev-libs/popt + !librsync-bundled? ( net-libs/librsync ) + net-misc/wget + >=sys-devel/gcc-4.2.0 + sys-libs/zlib +" + +src_unpack() { + unpack ${A} + mkdir -p "${S}" + mv "${WORKDIR}"/.dropbox-dist/* "${S}" || die + rmdir .dropbox-dist +} + +src_prepare() { + rm -vf libbz2* libpopt.so.0 libpng12.so.0 || die + if use X ; then + mv images/hicolor/16x16/status "${T}" || die + else + rm -vrf *wx* images || die + fi + if use librsync-bundled ; then + patchelf --set-rpath '$ORIGIN' _librsync.so || die + else + rm -vf librsync.so.1 || die + fi + mv cffi-0.6-py2.7-*.egg "${T}" || die + rm -rf *.egg library.zip || die + mv "${T}"/cffi-0.6-py2.7-*.egg "${S}" || die + ln -s dropbox library.zip || die + pax-mark cm dropbox + mv README ACKNOWLEDGEMENTS "${T}" || die +} + +src_install() { + local targetdir="/opt/dropbox" + + insinto "${targetdir}" + doins -r * + fperms a+x "${targetdir}"/{dropbox,dropboxd} + dosym "${targetdir}/dropboxd" "/opt/bin/dropbox" + + use X && doicon -s 16 -c status "${T}"/status + + newinitd "${FILESDIR}"/dropbox.initd dropbox + newconfd "${FILESDIR}"/dropbox.conf dropbox + systemd_newunit "${FILESDIR}"/dropbox_at.service "dropbox@.service" + + dodoc "${T}"/{README,ACKNOWLEDGEMENTS} +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/net-misc/dropbox/files/dropbox_at.service b/net-misc/dropbox/files/dropbox_at.service new file mode 100644 index 000000000000..1cea6177ce7b --- /dev/null +++ b/net-misc/dropbox/files/dropbox_at.service @@ -0,0 +1,13 @@ +[Unit] +Description=Dropbox +After=local-fs.target network.target + +[Service] +ExecStart=/opt/dropbox/dropboxd +ExecReload=/bin/kill -HUP $MAINPID +KillMode=process +Restart=always +User=%I + +[Install] +WantedBy=multi-user.target |