summaryrefslogtreecommitdiff
path: root/net-fs/sambacfg/sambacfg-1337-r1.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-02 17:43:54 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-02 17:43:54 +0000
commit50e019aab74a3eb18b1067b8cff3bfdf0ccc76c6 (patch)
tree60bee2c236e873a38c16df1f192aa0fae3823716 /net-fs/sambacfg/sambacfg-1337-r1.ebuild
parente58aa514e5f5554a1c5f02dc76fe857f00f2f88a (diff)
net-fs/sambacfg : migrate from enewgroup to acct-group
Diffstat (limited to 'net-fs/sambacfg/sambacfg-1337-r1.ebuild')
-rw-r--r--net-fs/sambacfg/sambacfg-1337-r1.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-fs/sambacfg/sambacfg-1337-r1.ebuild b/net-fs/sambacfg/sambacfg-1337-r1.ebuild
new file mode 100644
index 00000000..2ac3cd32
--- /dev/null
+++ b/net-fs/sambacfg/sambacfg-1337-r1.ebuild
@@ -0,0 +1,31 @@
+# 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="acct-group/smbshare"
+RDEPEND="${DEPEND}"
+
+S=${FILESDIR}
+
+src_install() {
+ dodir etc/samba
+ insinto etc/samba
+ newins redcore-smb.conf smb.conf
+ keepdir var/lib/samba/usershare
+}
+
+pkg_postinst() {
+ chown root:smbshare /var/lib/samba/usershare
+ chmod 1770 /var/lib/samba/usershare
+}