diff options
-rw-r--r-- | net-fs/samba-config-redcore/files/redcore-smb.conf | 19 | ||||
-rw-r--r-- | net-fs/samba-config-redcore/samba-config-redcore-1801.ebuild | 35 | ||||
-rw-r--r-- | x11-misc/pcmanfm-qt-share/files/ShareReadOnly.desktop | 2 | ||||
-rw-r--r-- | x11-misc/pcmanfm-qt-share/files/ShareReadWrite.desktop | 4 | ||||
-rw-r--r-- | x11-misc/pcmanfm-qt-share/files/Unshare.desktop | 8 | ||||
-rw-r--r-- | x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1801.ebuild (renamed from x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1710.ebuild) | 0 |
6 files changed, 65 insertions, 3 deletions
diff --git a/net-fs/samba-config-redcore/files/redcore-smb.conf b/net-fs/samba-config-redcore/files/redcore-smb.conf new file mode 100644 index 00000000..139d7d87 --- /dev/null +++ b/net-fs/samba-config-redcore/files/redcore-smb.conf @@ -0,0 +1,19 @@ +[global] + workgroup = WORKGROUP + server string = Samba Server + server role = standalone server + log file = /var/log/samba/log.%m + max log size = 50 + dns proxy = no + usershare path = /var/lib/samba/usershare + usershare max shares = 100 + usershare allow guests = yes + usershare owner only = yes +[tmp] + comment = Temporary file space + path = /var/tmp + public = yes + writeable = yes + read only = no + printable = no + guest ok = yes diff --git a/net-fs/samba-config-redcore/samba-config-redcore-1801.ebuild b/net-fs/samba-config-redcore/samba-config-redcore-1801.ebuild new file mode 100644 index 00000000..1b3e2c9d --- /dev/null +++ b/net-fs/samba-config-redcore/samba-config-redcore-1801.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils user + +DESCRIPTION="Redcore Linux Samba configuration files" +HOMEPAGE="https://redcorelinux.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S=${FILESDIR} + +src_install() { + dodir etc/samba + insinto etc/samba + newins redcore-smb.conf smb.conf + dodir var/lib/samba/usershare +} + +pkg_preinst() { + enewgroup smbshare +} + +pkg_postinst() { + chown root:smbshare /var/lib/samba/usershare + chmod 1770 /var/lib/samba/usershare +} 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-1801.ebuild index c7c24c35..c7c24c35 100644 --- a/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1710.ebuild +++ b/x11-misc/pcmanfm-qt-share/pcmanfm-qt-share-1801.ebuild |