sys-apps/wait-online: new package, add 9999

Signed-off-by: ston <ston.jia@qq.com>
This commit is contained in:
ston 2023-08-01 02:48:22 +08:00 committed by 梁永祥
parent 9e2a1f5e28
commit 0cc4ba5b55
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>ston</name>
<email>ston.jia@qq.com</email>
</maintainer>
<upstream>
<remote-id type="github">lilydjwg/wait-online</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,34 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit git-r3 systemd python-r1
DESCRIPTION="Wait until we're connected to the Internet"
HOMEPAGE="https://github.com/lilydjwg/wait-online"
# SRC_URI=""
EGIT_REPO_URI="https://github.com/lilydjwg/wait-online"
LICENSE="GPL-3"
SLOT="0"
# KEYWORDS="~amd64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
${PYTHON_DEPS}
dev-python/python-systemd[${PYTHON_USEDEP}]
"
RDEPEND="${DEPEND}"
src_install(){
# python_fix_shebang wait-online check-online
dobin wait-online check-online
python_replicate_script "${ED}"/usr/bin/{wait-online,check-online}
systemd_dounit wait-online.service wait-online-onresume.service
insinto /usr/lib/tmpfiles.d/
newins tmpfiles.conf ${PN}.conf
dosym ../network-online.target /usr/lib/systemd/system/multi-user.target.wants/network-online.target
}