commit 2a599f397130e05c042cae68997e370f4f0a9d98
parent 4efd3542fb12d5eb2801a3cbad9dd329209abc25
Author: Plat <plat@stellar-nexus.ru>
Date: Fri, 9 Aug 2024 02:33:33 +0000
Added app-admin/rdo. Various fixes.
Diffstat:
12 files changed, 115 insertions(+), 9 deletions(-)
diff --git a/app-admin/rdo/Manifest b/app-admin/rdo/Manifest
@@ -0,0 +1 @@
+DIST rdo.tar.gz 17449 BLAKE2B 31e46e655323cf22ad7e33a763ac2348dac4054601d046b08ebe2bee0a6d50763de1a0f4db0b22543e30438bbf345714fc4336d4efa6d5c5d8f83e976e6944f4 SHA512 19991a7098d84a5de3c1fdbcbe1051efb278701392660e9fe970975c59f79dc55167c1f2ebb61b5b7d0a3314609c5f59f18e00b49dc63c764437a78993da9702
diff --git a/app-admin/rdo/metadata.xml b/app-admin/rdo/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<upstream>
+<remote-id type="codeberg">sw1tchbl4d3/rdo</remote-id>
+</upstream>
+<maintainer type="person">
+<email>plat@stellar-nexus.ru</email>
+<name>Plat</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-admin/rdo/rdo-1.4.3.ebuild b/app-admin/rdo/rdo-1.4.3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="RootDO, a simple doas/sudo alternative."
+HOMEPAGE="https://codeberg.org/sw1tchbl4d3/rdo"
+SRC_URI="https://codeberg.org/sw1tchbl4d3/rdo/archive/main.tar.gz -> rdo.tar.gz"
+
+S="${WORKDIR}"/"$PN"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="virtual/libcrypt"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s/ -O2 / /" \
+ -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
+ -e "s/\/usr\/local\/bin\//${EPREFIX}\/bin\//" \
+ Makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dodir bin
+ dodir etc
+ emake DESTDIR="${D}" install
+}
diff --git a/metadata/md5-cache/app-admin/rdo-1.4.3 b/metadata/md5-cache/app-admin/rdo-1.4.3
@@ -0,0 +1,9 @@
+DEFINED_PHASES=-
+DESCRIPTION=RootDO, a simple doas/sudo alternative.
+EAPI=8
+HOMEPAGE=https://codeberg.org/sw1tchbl4d3/rdo
+KEYWORDS=~amd64
+LICENSE=GPL-3
+SLOT=0
+SRC_URI=https://codeberg.org/sw1tchbl4d3/rdo
+_md5_=78a01898b3e490d9fd3d705e3fa8010e
diff --git a/metadata/md5-cache/net-misc/sdhcp-0.1 b/metadata/md5-cache/net-misc/sdhcp-0.1
@@ -0,0 +1,11 @@
+DEFINED_PHASES=compile install prepare unpack
+DESCRIPTION=simple dhcp client
+EAPI=8
+HOMEPAGE=https://core.suckless.org/sdhcp https://git.2f30.org/sdhcp/files.html
+INHERIT=toolchain-funcs
+KEYWORDS=~amd64
+LICENSE=MIT
+SLOT=0
+SRC_URI=https://dl.2f30.org/releases/sdhcp-0.1.tar.gz
+_eclasses_=toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0
+_md5_=0d2da3f03d7b5aa8651dd59b91ac057a
diff --git a/metadata/md5-cache/sys-apps/littkit-0.90 b/metadata/md5-cache/sys-apps/littkit-0.90
@@ -0,0 +1,9 @@
+DEFINED_PHASES=install
+DESCRIPTION=a set of shell scripts to implement oredered-startup and run-once capabilities
+EAPI=8
+HOMEPAGE=https://troubleshooters.com/projects/littkit
+KEYWORDS=~amd64
+LICENSE=MIT
+SLOT=0
+SRC_URI=https://troubleshooters.com/projects/littkit/downloads/littkit_0_90.tgz
+_md5_=ab35990af21dce189012351db8c87322
diff --git a/metadata/md5-cache/sys-apps/sinit-1.1 b/metadata/md5-cache/sys-apps/sinit-1.1
@@ -0,0 +1,14 @@
+DEFINED_PHASES=compile install postinst prepare unpack
+DESCRIPTION=suckless init
+EAPI=8
+HOMEPAGE=https://core.suckless.org/sinit
+INHERIT=toolchain-funcs
+IUSE=minimal
+KEYWORDS=~amd64
+LICENSE=MIT
+PDEPEND=!minimal? ( sys-apps/sinit-scripts )
+RDEPEND=!minimal? ( sys-process/daemontools-encore ) !minimal? ( sys-apps/littkit )
+SLOT=0
+SRC_URI=https://dl.suckless.org/sinit/sinit-1.1.tar.gz
+_eclasses_=toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0
+_md5_=d7093a3b1eb223ed92a6c452d3a68f8d
diff --git a/metadata/md5-cache/sys-apps/sinit-scripts-1.0-r1 b/metadata/md5-cache/sys-apps/sinit-scripts-1.0-r1
@@ -0,0 +1,14 @@
+DEFINED_PHASES=install postinst prepare
+DEPEND=sys-apps/sinit
+DESCRIPTION=Collection of services for suckless init
+EAPI=8
+HOMEPAGE=https://github.com/Andrey0189/sinit-scripts
+INHERIT=savedconfig
+IUSE=savedconfig
+KEYWORDS=~amd64
+LICENSE=MIT
+RDEPEND=sys-apps/sinit sys-process/daemontools-encore sys-apps/littkit
+SLOT=0
+SRC_URI=https://github.com/Andrey0189/sinit-scripts/archive/refs/heads/main.tar.gz
+_eclasses_=portability 225656ad6c6594fe3b0187bdd50707fb savedconfig b9131abe556ad2ea96c01b06d658d363
+_md5_=6a2e8364954994e8c884182a137a5a96
diff --git a/net-misc/sdhcp/sdhcp-0.1.ebuild b/net-misc/sdhcp/sdhcp-0.1.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://core.suckless.org/sdhcp
https://git.2f30.org/sdhcp/files.html"
SRC_URI="https://dl.2f30.org/releases/${P}.tar.gz"
-S="${S%-0.1}"
+S="${WORKDIR}"/"${PN}"
LICENSE="MIT"
SLOT="0"
@@ -18,14 +18,13 @@ KEYWORDS="~amd64"
src_unpack() {
cd "${WORKDIR}"
- tar xf "${WORKDIR}"/../distdir/sdhcp-0.1.tar.gz
+ tar xf "${WORKDIR}"/../distdir/"${P}".tar.gz
}
src_prepare() {
default
sed -i \
- -e "s/ -Os / /" \
-e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
config.mk
}
diff --git a/sys-apps/sinit-scripts/Manifest b/sys-apps/sinit-scripts/Manifest
@@ -1 +1 @@
-DIST main.tar.gz 25163 BLAKE2B 57829490ae929b6e9fd84a66bb82847f4ba450223cde12c85304063f289d6bac578ff45cb8035fb5a91c9146073133f5684aa355cfb83afb463de0f74d24c03a SHA512 36959ae403f85425d68123b304cd8a901bdd1a16ffd0caa234605b5287f1d04ec2973c15790f426442c955d0aec2ec1baa2e443115e39d71f650c74602b4dd0f
+DIST sinit-scripts.tar.gz 25163 BLAKE2B 57829490ae929b6e9fd84a66bb82847f4ba450223cde12c85304063f289d6bac578ff45cb8035fb5a91c9146073133f5684aa355cfb83afb463de0f74d24c03a SHA512 36959ae403f85425d68123b304cd8a901bdd1a16ffd0caa234605b5287f1d04ec2973c15790f426442c955d0aec2ec1baa2e443115e39d71f650c74602b4dd0f
diff --git a/sys-apps/sinit-scripts/sinit-scripts-1.0-r1.ebuild b/sys-apps/sinit-scripts/sinit-scripts-1.0-r1.ebuild
@@ -7,9 +7,9 @@ inherit savedconfig
DESCRIPTION="Collection of services for suckless init"
HOMEPAGE="https://github.com/Andrey0189/sinit-scripts"
-SRC_URI="https://github.com/Andrey0189/sinit-scripts/archive/refs/heads/main.tar.gz"
+SRC_URI="https://github.com/Andrey0189/sinit-scripts/archive/refs/heads/main.tar.gz -> sinit-scripts.tar.gz"
-S="${S%1.0}main"
+S="${WORKDIR}"/"$PN"-main
LICENSE="MIT"
SLOT="0"
@@ -37,7 +37,7 @@ src_install() {
dodir var/rc
cp -r ./var/rc "${D}"/var/
keepdir etc/rc
- into /
+ into ${ROOT}
dobin ./bin/*
dosbin ./sbin/*
save_config var/rc/dtinit/dtinit.sh
diff --git a/sys-apps/sinit/sinit-1.1.ebuild b/sys-apps/sinit/sinit-1.1.ebuild
@@ -9,7 +9,7 @@ DESCRIPTION="suckless init"
HOMEPAGE="https://core.suckless.org/sinit"
SRC_URI="https://dl.suckless.org/${PN}/${P}.tar.gz"
-S="${S%-1.1}"
+S="${WORKDIR}"/"${PN}"
LICENSE="MIT"
SLOT="0"
@@ -30,7 +30,7 @@ src_prepare() {
default
sed -i \
- -e "s/ -Os / /" \
+ -e "s/ -Os//" \
-e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \
config.mk
}