mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 07:48:56 -04:00
sys-apps/wait-online: new package, add 9999
Signed-off-by: ston <ston.jia@qq.com>
This commit is contained in:
parent
9e2a1f5e28
commit
0cc4ba5b55
11
sys-apps/wait-online/metadata.xml
Normal file
11
sys-apps/wait-online/metadata.xml
Normal 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>
|
34
sys-apps/wait-online/wait-online-9999.ebuild
Normal file
34
sys-apps/wait-online/wait-online-9999.ebuild
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user