summaryrefslogtreecommitdiffstats
path: root/net-nds/pamldapd/pamldapd-0.3.ebuild
blob: 2b380f7a604e0002acd088bc4698fc7de77fd87e (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
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
	insinto /etc
	newins "${FILESDIR}/pamldapd.json" pamldapd.json
	newinitd "${FILESDIR}/pamldapd.initd" pamldapd
	dobin pamldapd
	default
}