summaryrefslogtreecommitdiff
path: root/net-fs/sambacfg/sambacfg-1337-r1.ebuild
blob: f8be26599b8872414de6e1a95e93596e5146d683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 arm64"
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
}