diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-05-21 05:32:01 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-05-21 05:32:01 +0000 |
commit | 2ae17d57f529945672062f23ebe8261222fdda3f (patch) | |
tree | e9c0b4f06c49ab98f39c429fa31d05a7f0da198b /gnome-extra | |
parent | Sorted tree for vlc and nsplugin, and ruby's gtkmozembed, sort profiles accor... (diff) | |
download | gentoo-2-2ae17d57f529945672062f23ebe8261222fdda3f.tar.gz gentoo-2-2ae17d57f529945672062f23ebe8261222fdda3f.tar.bz2 gentoo-2-2ae17d57f529945672062f23ebe8261222fdda3f.zip |
Add to gnome herd (acked by Maxim), do not install static libraries, add missing build dependencies.
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra')
-rw-r--r-- | gnome-extra/nautilus-share/ChangeLog | 9 | ||||
-rw-r--r-- | gnome-extra/nautilus-share/metadata.xml | 1 | ||||
-rw-r--r-- | gnome-extra/nautilus-share/nautilus-share-0.7.3-r1.ebuild | 77 |
3 files changed, 86 insertions, 1 deletions
diff --git a/gnome-extra/nautilus-share/ChangeLog b/gnome-extra/nautilus-share/ChangeLog index a7374b8c950f..518d0b846795 100644 --- a/gnome-extra/nautilus-share/ChangeLog +++ b/gnome-extra/nautilus-share/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for gnome-extra/nautilus-share # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/nautilus-share/ChangeLog,v 1.1 2012/05/20 11:54:23 maksbotan Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/nautilus-share/ChangeLog,v 1.2 2012/05/21 05:32:01 tetromino Exp $ + +*nautilus-share-0.7.3-r1 (21 May 2012) + + 21 May 2012; Alexandre Rostovtsev <tetromino@gentoo.org> + +nautilus-share-0.7.3-r1.ebuild, metadata.xml: + Add to gnome herd (acked by Maxim), do not install static libraries, add + missing build dependencies. *nautilus-share-0.7.3 (20 May 2012) diff --git a/gnome-extra/nautilus-share/metadata.xml b/gnome-extra/nautilus-share/metadata.xml index d0aaaaf05732..5225cea25f55 100644 --- a/gnome-extra/nautilus-share/metadata.xml +++ b/gnome-extra/nautilus-share/metadata.xml @@ -5,4 +5,5 @@ <email>maksbotan@gentoo.org</email> <name>Maxim Koltsov</name> </maintainer> +<herd>gnome</herd> </pkgmetadata> diff --git a/gnome-extra/nautilus-share/nautilus-share-0.7.3-r1.ebuild b/gnome-extra/nautilus-share/nautilus-share-0.7.3-r1.ebuild new file mode 100644 index 000000000000..2398656c5920 --- /dev/null +++ b/gnome-extra/nautilus-share/nautilus-share-0.7.3-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/nautilus-share/nautilus-share-0.7.3-r1.ebuild,v 1.1 2012/05/21 05:32:01 tetromino Exp $ + +EAPI=4 + +GNOME2_LA_PUNT="yes" +GCONF_DEBUG="no" + +inherit gnome2 eutils + +DESCRIPTION="A nautilus plugin to easily share folders over the SMB protocol" +HOMEPAGE="http://gentoo.ovibes.net/nautilus-share http://packages.debian.org/unstable/nautilus-share" +SRC_URI="mirror://debian/pool/main/n/${PN}/${PN}_${PV}.orig.tar.bz2 + mirror://debian/pool/main/n/${PN}/${PN}_${PV}-1.debian.tar.gz" + +IUSE="" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +COMMON_DEPEND=">=dev-libs/glib-2.4:2 + >=gnome-base/nautilus-2.10" +RDEPEND="${COMMON_DEPEND} + net-fs/samba" +DEPEND="${COMMON_DEPEND} + sys-devel/gettext + virtual/pkgconfig" + +USERSHARES_DIR="/var/lib/samba/usershare" +USERSHARES_GROUP="samba" + +pkg_setup() { + DOCS="AUTHORS ChangeLog NEWS README TODO" + G2CONF="${G2CONF} --disable-static" +} + +src_prepare() { + epatch "${WORKDIR}"/debian/patches/15_user-acl.patch + gnome2_src_prepare +} + +src_install() { + gnome2_src_install + keepdir ${USERSHARES_DIR} +} + +pkg_postinst() { + enewgroup ${USERSHARES_GROUP} + einfo "Fixing ownership and permissions on ${EROOT}${USERSHARES_DIR#/}..." + chown root:${USERSHARES_GROUP} "${EROOT}"${USERSHARES_DIR#/} + chmod 01770 "${EROOT}"${USERSHARES_DIR#/} + + einfo "To get nautilus-share working, add the lines" + einfo + einfo " # Allow users in group \"${USERSHARES_GROUP}\" to share" + einfo " # directories with the \"net usershare\" commands" + einfo " usershare path = \"${EROOT}${USERSHARES_DIR#/}\"" + einfo " # Set a maximum of 100 user-defined shares in total" + einfo " usershare max shares = 100" + einfo " # Allow users to permit guest access" + einfo " usershare allow guests = yes" + einfo " # Only allow users to share directories they own" + einfo " usershare owner only = yes" + einfo + einfo "to the end of the [global] section in /etc/samba/smb.conf." + einfo + einfo "Users who are to be allowed to use nautilus-share should be added" + einfo "to the \"${USERSHARES_GROUP}\" group:" + einfo + einfo "# gpasswd -a USER ${USERSHARES_GROUP}" + einfo + einfo "Users may need to log out and in again for the group assignment to" + einfo "take effect and to restart Nautilus." + einfo + einfo "For more information, see USERSHARE in net(8)." +} |