From 4f0a4c93c2b5ae8a1eb80edeb99bc04f6a8ce4b9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 8 Jan 2018 00:40:40 +0000 Subject: net-fs/samba-config-redcore && x11-misc/pcmanfm-qt-share : prepare samba usershares --- .../pcmanfm-qt-share/files/ShareReadOnly.desktop | 2 +- .../pcmanfm-qt-share/files/ShareReadWrite.desktop | 4 ++-- x11-misc/pcmanfm-qt-share/files/Unshare.desktop | 8 +++++++ .../pcmanfm-qt-share/pcmanfm-qt-share-1710.ebuild | 26 ---------------------- .../pcmanfm-qt-share/pcmanfm-qt-share-1801.ebuild | 26 ++++++++++++++++++++++ 5 files changed, 37 insertions(+), 29 deletions(-) create mode 100644 x11-misc/pcmanfm-qt-share/files/Unshare.desktop delete mode 100644 x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1710.ebuild create mode 100644 x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1801.ebuild (limited to 'x11-misc/pcmanfm-qt-share') diff --git a/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop b/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop index e3ef10ac..7cebbc3b 100644 --- a/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop +++ b/x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Type=Action -Name=Samba Network Share (readonly) +Name=Samba network share (readonly) Profiles=profile-zero; [X-Action-Profile profile-zero] diff --git a/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop b/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop index 44a3d165..7c30ff1c 100644 --- a/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop +++ b/x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop @@ -1,8 +1,8 @@ [Desktop Entry] Type=Action -Name=Samba Network Share (readwrite) +Name=Samba network share (readwrite) Profiles=profile-zero; [X-Action-Profile profile-zero] -Exec=/usr/bin/net usershare add %w %f "" Everyone:F guest_ok=y && chmod = 777 %f +Exec=/usr/bin/net usershare add %w %f "" Everyone:F guest_ok=y && chmod = 777 %f && find %f -type d -exec chmod 777 {} \; && find %f -type f -exec chmod 666 {} \; Name=Default profile diff --git a/x11-misc/pcmanfm-qt-share/files/Unshare.desktop b/x11-misc/pcmanfm-qt-share/files/Unshare.desktop new file mode 100644 index 00000000..23db87d0 --- /dev/null +++ b/x11-misc/pcmanfm-qt-share/files/Unshare.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Action +Name=Samba network unshare +Profiles=profile-zero; + +[X-Action-Profile profile-zero] +Exec=/usr/bin/net usershare delete %w %f "" && chmod = 755 %f && find %f -type d -exec chmod 755 {} \; && find %f -type f -exec chmod 644 {} \; +Name=Default profile diff --git a/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1710.ebuild b/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1710.ebuild deleted file mode 100644 index c7c24c35..00000000 --- a/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1710.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils - -DESCRIPTION="PCManFM-QT custom action to share folder using Samba" -HOMEPAGE="https://redcorelinux.org" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -DEPEND="net-fs/samba" -RDEPEND="${DEPEND}" - -S="${FILESDIR}" - -src_install() { - dodir "/usr/share/file-manager/actions" || die - insinto "/usr/share/file-manager/actions" || die - doins -r "${S}/"* || die -} diff --git a/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1801.ebuild b/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1801.ebuild new file mode 100644 index 00000000..c7c24c35 --- /dev/null +++ b/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1801.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="PCManFM-QT custom action to share folder using Samba" +HOMEPAGE="https://redcorelinux.org" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="net-fs/samba" +RDEPEND="${DEPEND}" + +S="${FILESDIR}" + +src_install() { + dodir "/usr/share/file-manager/actions" || die + insinto "/usr/share/file-manager/actions" || die + doins -r "${S}/"* || die +} -- cgit v1.2.3