/[gentoo-x86]/gnome-extra/nautilus-share/nautilus-share-0.7.3-r1.ebuild
Gentoo

Contents of /gnome-extra/nautilus-share/nautilus-share-0.7.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jun 7 22:23:13 2012 UTC (22 months, 1 week ago) by zmedico
Branch: MAIN
Changes since 1.1: +2 -2 lines
inherit user for enewgroup

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 EAPI=4
6
7 GNOME2_LA_PUNT="yes"
8 GCONF_DEBUG="no"
9
10 inherit gnome2 eutils user
11
12 DESCRIPTION="A nautilus plugin to easily share folders over the SMB protocol"
13 HOMEPAGE="http://gentoo.ovibes.net/nautilus-share http://packages.debian.org/unstable/nautilus-share"
14 SRC_URI="mirror://debian/pool/main/n/${PN}/${PN}_${PV}.orig.tar.bz2
15 mirror://debian/pool/main/n/${PN}/${PN}_${PV}-1.debian.tar.gz"
16
17 IUSE=""
18 SLOT="0"
19 LICENSE="GPL-2"
20 KEYWORDS="~amd64 ~x86"
21
22 COMMON_DEPEND=">=dev-libs/glib-2.4:2
23 >=gnome-base/nautilus-2.10"
24 RDEPEND="${COMMON_DEPEND}
25 net-fs/samba"
26 DEPEND="${COMMON_DEPEND}
27 sys-devel/gettext
28 virtual/pkgconfig"
29
30 USERSHARES_DIR="/var/lib/samba/usershare"
31 USERSHARES_GROUP="samba"
32
33 pkg_setup() {
34 DOCS="AUTHORS ChangeLog NEWS README TODO"
35 G2CONF="${G2CONF} --disable-static"
36 }
37
38 src_prepare() {
39 epatch "${WORKDIR}"/debian/patches/15_user-acl.patch
40 gnome2_src_prepare
41 }
42
43 src_install() {
44 gnome2_src_install
45 keepdir ${USERSHARES_DIR}
46 }
47
48 pkg_postinst() {
49 enewgroup ${USERSHARES_GROUP}
50 einfo "Fixing ownership and permissions on ${EROOT}${USERSHARES_DIR#/}..."
51 chown root:${USERSHARES_GROUP} "${EROOT}"${USERSHARES_DIR#/}
52 chmod 01770 "${EROOT}"${USERSHARES_DIR#/}
53
54 einfo "To get nautilus-share working, add the lines"
55 einfo
56 einfo " # Allow users in group \"${USERSHARES_GROUP}\" to share"
57 einfo " # directories with the \"net usershare\" commands"
58 einfo " usershare path = \"${EROOT}${USERSHARES_DIR#/}\""
59 einfo " # Set a maximum of 100 user-defined shares in total"
60 einfo " usershare max shares = 100"
61 einfo " # Allow users to permit guest access"
62 einfo " usershare allow guests = yes"
63 einfo " # Only allow users to share directories they own"
64 einfo " usershare owner only = yes"
65 einfo
66 einfo "to the end of the [global] section in /etc/samba/smb.conf."
67 einfo
68 einfo "Users who are to be allowed to use nautilus-share should be added"
69 einfo "to the \"${USERSHARES_GROUP}\" group:"
70 einfo
71 einfo "# gpasswd -a USER ${USERSHARES_GROUP}"
72 einfo
73 einfo "Users may need to log out and in again for the group assignment to"
74 einfo "take effect and to restart Nautilus."
75 einfo
76 einfo "For more information, see USERSHARE in net(8)."
77 }

  ViewVC Help
Powered by ViewVC 1.1.20