summaryrefslogtreecommitdiffstats
path: root/net-nds/pamldapd/pamldapd-0.3.ebuild
blob: 64db4842f432b05deadca55b71fa49ff42370dd3 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
EAPI=8
inherit go-module
# max 80 chars
DESCRIPTION="Simple LDAP server, uses PAM as backend"
HOMEPAGE="https://github.com/eisin/pamldapd"
SRC_URI="http://ni.4a.si./sijanec/pamldapd/snapshot/pamldapd-${PV}.tar.gz http://splet.4a.si./dir/pamldapd-${PV}-vendor.tar.xz"
# https://wiki.gentoo.org/wiki/Writing_go_Ebuilds

LICENSE="Apache-2.0"
SLOT="0"
IUSE=""

# vsi moji programi so nestabilni (:
KEYWORDS="*"

DEPEND="acct-user/pamldapd acct-group/pamldapd"
RDEPEND="${DEPEND}"
BDEPEND=""

# do not use mirrors to download
RESTRICT="mirror"

src_unpack() {
	unpack ${A}
}

src_compile() {
	ego build
}

src_install() {
	keepdir /var/log/pamldapd
	fowners pamldapd:pamldapd /var/log/pamldapd
	fperms 750 /var/log/pamldapd
	keepdir /var/lib/pamldapd
	fowners pamldapd:pamldapd /var/lib/pamldapd
	fperms 755 /var/lib/pamldapd
	insinto /etc
	newins "${FILESDIR}/pamldapd.json" pamldapd.json
	newinitd "${FILESDIR}/pamldapd.initd" pamldapd
	dobin pamldapd
	default
}