first commit

This commit is contained in:
bronze 2021-07-29 00:50:37 -04:00
commit ed03bd713c
7 changed files with 106 additions and 0 deletions

7
README.md Normal file
View File

@ -0,0 +1,7 @@
### Bronze's Personal Gentoo Overlay ###
Misc package repo for myself and anyone else to use.
To add this overlay:
`layman -o https://kitsunemimi.club/git/bronze/bronze-overlay/overlay.xml -f -a bronze-overlay`

2
metadata/layout.conf Normal file
View File

@ -0,0 +1,2 @@
masters = gentoo
auto-sync = false

13
overlay.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<repositories version="1.0">
<repo priority="50" quality="experimental" status="unofficial">
<name>bronze-overlay</name>
<description>bronze's misc gentoo overlay</description>
<homepage>https://kitsunemimi.club/git/bronze/bronze-overlay</homepage>
<owner>
<email>bronze@kitsunemimi.club</email>
</owner>
<source type="git">https://kitsunemimi.club/git/bronze/bronze-overlay.git</source>
</repo>
</repositories>

1
profiles/repo_name Normal file
View File

@ -0,0 +1 @@
bronze

View File

@ -0,0 +1,3 @@
AUX opentmpfiles-0.3.1-fix-setfacl-options.patch 747 BLAKE2B 0e7d1bfc476f247444c08d27833f6307d819144fae9cb40e1314723d30ea06465fe570e5b4f10bdfa7509b2d3e2b9ba835f3ba5c5b081decca94f1edb9459338 SHA512 0970dfccd898ab557643a483dd9a64182bfcf17504d352fcd4f85e0e6e756a118459cdeaaae876925473a65b9772337f43441d0df22c0a2e9e7240896024041d
DIST opentmpfiles-0.3.1.tar.gz 6843 BLAKE2B 20cb40b34fd8db37da5797dc25912000f7d1feb38952b99c044220666cb21871eb40d3853074cb33ee8bcce8dc4858d102aeccb5730ce28df47e99a7edb50f2d SHA512 1e0985403013ac10c0fe50a7ba61a250357b1ea7ea426f9dc92d7071e97eb0e5209448550cf427734b917599defa5123254044d5352b9dcaa22e562e5ca6821f
EBUILD opentmpfiles-0.3.1.ebuild 1108 BLAKE2B e7d563e45f0fa270bf289b631cfa6919eb60089b31ee1c4115dce2483a13009466c4f0bc3ea649bebce0094a77afc31c07db7443762b3ee1589e82e06a76270f SHA512 d3ecc358dccfcc8ea049c52b1410974ed294f8e74e0117f9344dbdbe3b25146726c9f3a7abae9ecb74498a5b75ddfd525462b198c6aeccbf06a21c47a2c15164

View File

@ -0,0 +1,30 @@
diff -urN a/tmpfiles.sh b/tmpfiles.sh
--- a/tmpfiles.sh 2020-11-21 17:17:21.869243322 -0300
+++ b/tmpfiles.sh 2020-11-21 17:18:13.205241217 -0300
@@ -59,7 +59,7 @@
}
_setfacl() {
- dryrun_or_real setfacl -P "$1" "$2" "$3" -- "$4"
+ dryrun_or_real setfacl "$1" "$2" "$3" -- "$4"
}
relabel() {
@@ -293,7 +293,7 @@
# The format of the argument field matches setfacl
local ACTION='--remove-all --set'
[ "$FORCE" -gt 0 ] && ACTION='--modify'
- _setfacl '' "$ACTION" "$6" "$1"
+ _setfacl '-P' "$ACTION" "$6" "$1"
}
_A() {
@@ -302,7 +302,7 @@
# Does not follow symlinks
local ACTION='--remove-all --set'
[ "$FORCE" -gt 0 ] && ACTION='--modify'
- _setfacl -R "$ACTION" "$6" "$1"
+ _setfacl '-P -R' "$ACTION" "$6" "$1"
}
_h() {

View File

@ -0,0 +1,50 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit prefix
DESCRIPTION="A standalone utility to process systemd-style tmpfiles.d files"
HOMEPAGE="https://github.com/openrc/opentmpfiles"
SRC_URI="https://github.com/openrc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="*"
IUSE="selinux"
RDEPEND="!<sys-apps/openrc-0.23
selinux? ( sec-policy/selinux-base-policy )"
PATCHES=(
"${FILESDIR}/${P}-fix-setfacl-options.patch"
)
src_prepare() {
default
hprefixify tmpfiles.sh
}
src_install() {
emake DESTDIR="${ED}" install
einstalldocs
cd openrc
for f in opentmpfiles-dev opentmpfiles-setup; do
newconfd ${f}.confd ${f}
newinitd ${f}.initd ${f}
done
}
add_service() {
local initd=$1
local runlevel=$2
elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
mkdir -p "${EROOT}"etc/runlevels/${runlevel}
ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
}
pkg_postinst() {
if [[ -z $REPLACING_VERSIONS ]]; then
add_service opentmpfiles-dev sysinit
add_service opentmpfiles-setup boot
fi
}