summaryrefslogtreecommitdiff
path: root/sys-apps/seedfiles/seedfiles-1.5.1.ebuild
blob: 286d449107b86e1ddab9db8dd65106db0ce38f6a (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
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# We want to avoid tmpfiles.eclass because we provide it
TMPFILES_OPTIONAL=1

inherit meson

DESCRIPTION="Portable drop-in reimplementation of systemd-tmpfiles"
HOMEPAGE="https://git.pinkro.se/Rose/gardenhouse/seedfiles.git/about/"

if [[ ${PV} = 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://clone.git.pinkro.se/Rose/gardenhouse/seedfiles.git"
	EGIT_BRANCH="main"
else
	SRC_URI="https://git.pinkro.se/Rose/gardenhouse/seedfiles.git/snapshot/${P}.tar.gz"
	KEYWORDS="~amd64"
fi

LICENSE="GPL-3+"
SLOT="0"

RDEPEND="virtual/acl
	!sys-apps/systemd
	!sys-apps/systemd-utils[tmpfiles]"
DEPEND="${RDEPEND}"

src_install() {
	meson_src_install
	doinitd "${FILESDIR}"/seedfiles-setup
	doinitd "${FILESDIR}"/seedfiles-setup-dev

	# We want to avoid tmpfiles.eclass because we provide it
	insinto /usr/lib/tmpfiles.d
	doins "${FILESDIR}"/{tmp,legacy}.conf
}