commit: 0495a08b9e5fbf22803c65bde5cf43462bef0bb0
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 28 02:34:26 2021 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Sun Nov 28 02:36:01 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0495a08b
app-laptop/tuxedo-control-center-bin: cleanups, fix init script
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
...0-r1.ebuild => tuxedo-control-center-bin-1.1.0-r2.ebuild} | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild
b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r2.ebuild
similarity index 86%
rename from
app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild
rename to
app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r2.ebuild
index 2f860b756324..fe2d893bd421 100644
---
a/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild
+++
b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r2.ebuild
@@ -26,15 +26,15 @@ S="${WORKDIR}"
src_prepare() {
default
- rm -rf usr/lib
- mkdir files
+ rm -rf usr/lib || die "could not remove usr/lib"
+ mkdir files || die "could not create files dir"
}
src_install() {
insinto /
doins -r usr opt
find . -type f -perm -a=x | while read f; do
- chmod 0755 "${D}/${f}"
+ fperms 0755 "${f/./}"
done
dosym ../../opt/tuxedo-control-center/tuxedo-control-center
/usr/bin/tuxedo-control-center
@@ -48,7 +48,7 @@ src_install() {
systemd_dounit
opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd.service
systemd_dounit
opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd-sleep.service
- doinitd "${FILESDIR}/tccd.initd"
+ newinitd "${FILESDIR}/tccd.initd" tccd
}
pkg_config() {
@@ -69,8 +69,8 @@ pkg_postinst() {
elog
elog "You need to enable tccd and tccd-sleep service before running
tuxedo-control-center"
elog
- elog "For your convenience you may just call:"
- elog " emerge --config =${P}"
+ elog "For your convenience, if you use systemd, you may just call:"
+ elog " emerge --config =app-laptop/${PF}"
elog
}