summaryrefslogtreecommitdiff
path: root/app-admin/aerie/aerie-9999.ebuild
blob: 3656a235200735e7762259575d7632509989ac57 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2026 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

EGIT_REPO_URI="https://git.baldeagleos.com/aerie.git"

inherit git-r3

DESCRIPTION="BaldEagleOS profile and repository management tool"
HOMEPAGE="https://git.baldeagleos.com/aerie.git"

LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
SLOT="0"
KEYWORDS=""

BDEPEND="dev-lang/go"

DOCS=( Changelog README.md )
PROG_VERS=${PV}

program_make() {
	local my_tags=(
		prod
	)
	local my_makeopt=(
		TAGS="${my_tags[@]}"
		LDFLAGS="-extldflags \"${LDFLAGS}\""
	)
	export MDATE="$(date -u +%Y%m%d.%H%M%S)"
	export PROG_VERS="${PROG_VERS}"
	emake "${my_makeopt[@]}" "$@"
}

src_compile() {
	program_make build
}

src_test() {
	GO111MODULE=on go test -mod=vendor ./...
}

src_install() {
	dobin "${PN}"

	einstalldocs

	insinto "/etc/${PN}"
	doins "etc/${PN}.yml"
	doins etc/baldeagleos.conf.example
	doins etc/parent.example
}