summaryrefslogtreecommitdiff
path: root/net-mail/goget/goget-1.0.0-r1.ebuild
blob: 179e874f062a8e25ad0ebef76b9112176f3399fb (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
53
54
55
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{13..14} )
inherit python-single-r1

DESCRIPTION="IMAP email-to-folder routing daemon — fetch mail, strip contents, drop to disk"
HOMEPAGE="https://github.com/trunkmasters/goget"

# Immutable project source release
SRC_URI="https://www.hedronfire.com/distfiles/${P}.tar.xz"
S="${WORKDIR}/${P}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="
	${PYTHON_DEPS}
	sys-apps/openrc
"
BDEPEND="${PYTHON_DEPS}"


src_install() {
	# Main daemon script
	python_newscript "${S}/goget.py" goget

	# Config file
	insinto /etc
	doins "${S}/goget.conf"
	fperms 0640 /etc/goget.conf

	# OpenRC init script
	newinitd "${S}/goget.initd" goget

	# Spool directory
	keepdir /var/spool/goget
}

pkg_postinst() {
	elog ""
	elog "GoGet — email-to-folder routing daemon"
	elog ""
	elog "1. Edit /etc/goget.conf with your IMAP server and credentials"
	elog "2. Start the daemon:"
	elog "     rc-service goget start"
	elog "     rc-update add goget default"
	elog ""
	elog "Email subject line = target folder under /var/spool/goget/"
	elog ""
}