define static group ids and same with user ids

This commit is contained in:
sulincix committed 2024-09-27 18:12:14 +00:00
1 parent 1dfe9b2692
commit 8ab79cf8a0
12 files changed
+61 -50

No files matched your search

+2 -2
View File
@@ -1,10 +1,10 @@
#!/bin/sh
set -o pipefail
if [ ! -f /etc/machine-id ] ; then
dbus-uuidgen --ensure=/etc/machine-id
fi
if busybox ls /bin/su -la | grep "^...s" >/dev/null ; then
if busybox ls /usr/libexec/dbus-daemon-launch-helper -la | grep "^...s" >/dev/null ; then
chmod 4755 /usr/libexec/dbus-daemon-launch-helper
fi
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / \
org.freedesktop.DBUS.ReloadConfig >/dev/null 2>&1 || :
+12 -11
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
name='dbus'
release='1'
version='1.15.2'
release='2'
version='1.15.10'
url='https://dbus.freedesktop.org/releases/dbus/'
description='A message bus system, a simple way for applications to talk to each other'
email='aliriza.keskin@pardus.org.tr'
@@ -14,7 +14,7 @@ source=("https://dbus.freedesktop.org/releases/dbus/dbus-$version.tar.xz"
"dbus.xinit")
depends=(audit expat libcap-ng elogind)
makedepends=()
md5sums=('c56de960ea9031b92ee71aaa0e8e72c2'
sha256sums=('f700f2f1d0473f11e52f3f3e179f577f31b85419f9ae1972af8c3db0bcfde178'
'SKIP'
'SKIP'
'SKIP'
@@ -27,24 +27,25 @@ arch=('x86_64')
cd $name-$version
setup(){
./configure --prefix=/usr \
meson setup build --prefix=/usr \
--libdir=/usr/lib64/ \
--localstatedir=/var \
--sysconfdir=/etc \
--disable-xml-docs \
--with-system-pid-file=/run/dbus/dbus.pid \
$(use_opt x11 --with-x --without-x)
-Dxml_docs=disabled \
-Dsystem_pid_file=/run/dbus/dbus.pid \
-Dx11_autolaunch=$(use_opt x11 enabled disabled)
}
build(){
make
ninja -C build $jobs
}
package(){
make $jobs install
ninja -C build install $jobs
mkdir -p "$DESTDIR"/etc/{passwd,group,sysconf,init,conf}.d "$DESTDIR"/etc/X11/xinit/xinitrc.d/
echo "messagebus:x:109:" > "$DESTDIR"/etc/group.d/dbus
echo "messagebus:x:103:109::/nonexistent:/usr/sbin/nologin" > "$DESTDIR"/etc/passwd.d/dbus
# GID: messagebus 103
echo "messagebus:x:103:" > "$DESTDIR"/etc/group.d/dbus
echo "messagebus:x:103:103::/nonexistent:/usr/sbin/nologin" > "$DESTDIR"/etc/passwd.d/dbus
install ../dbus.sysconf "$DESTDIR"/etc/sysconf.d/dbus
install ../dbus.initd "$DESTDIR"/etc/init.d/dbus
install ../dbus.confd "$DESTDIR"/etc/conf.d/dbus
Binary file not shown.
+12 -11
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
name='openrc'
release='4'
version='0.54'
release='5'
version='0.55.1'
url='https://github.com/OpenRC/openrc'
description='The OpenRC init system'
email='aliriza.keskin@pardus.org.tr'
@@ -16,7 +16,7 @@ source=("https://github.com/OpenRC/openrc/archive/refs/tags/$version.zip"
"extras/disable-secondary-gpu.sh")
depends=()
makedepends=()
sha256sums=('ad808516cb9b9a6e031ac2faeef88214164db3b11d5659a542501491e48b298d'
sha256sums=('62e2c72cd3b10a4db2b0cf2ef25a52fc2b269f50c934329ff5f8e973cd81d5a4'
'SKIP'
'SKIP'
'SKIP'
@@ -33,7 +33,7 @@ cd $name-$version
prepare(){
# hidepid=2 by default
sed -i "s/ proc \/proc/,hidepid=2,gid=31&/g" sh/init.sh.Linux.in
sed -i "s/ proc \/proc/,hidepid=2,gid=31&/g" sh/init.sh.Linux.in
}
setup(){
@@ -52,7 +52,6 @@ build(){
}
package(){
export DESTDIR=${DESTDIR}//
ninja -C build install
# disable all services
rm -f ${DESTDIR}/etc/runlevels/*/*
@@ -63,9 +62,11 @@ package(){
install ../openrc.sysconf ${DESTDIR}/etc/sysconf.d/openrc
mkdir -p ${DESTDIR}/etc/group.d
mkdir -p ${DESTDIR}/etc/passwd.d
echo "uucp:x:14:" > ${DESTDIR}/etc/group.d/uucp
echo "proc:x:31:" > ${DESTDIR}/etc/group.d/proc
echo "uucp:x:10:14:uucp:/var/spool/uucp:/bin/false" > ${DESTDIR}/etc/passwd.d/uucp
# GID: uucp 14
# GID: proc 31
echo "uucp:x:14:" >> ${DESTDIR}/etc/group.d/openrc
echo "proc:x:31:" >> ${DESTDIR}/etc/group.d/openrc
echo "uucp:x:14:14:uucp:/var/spool/uucp:/bin/false" > ${DESTDIR}/etc/passwd.d/uucp
# move /share to /usr/share
mkdir -p ${DESTDIR}/usr ${DESTDIR}/sbin
mv ${DESTDIR}/{,usr}/share
@@ -76,12 +77,12 @@ package(){
# install extras
mkdir -p ${DESTDIR}/usr/libexec
install ../disable-secondary-gpu.sh ${DESTDIR}/usr/libexec/disable-secondary-gpu
install ../disable-secondary-gpu.initd ${DESTDIR}/etc/init.d
install ../backlight-restore.initd ${DESTDIR}/etc/init.d
install ../disable-secondary-gpu.initd ${DESTDIR}/etc/init.d/disable-secondary-gpu
install ../backlight-restore.initd ${DESTDIR}/etc/init.d/backlight-restore
# systemd /proc/1/comm hack
# move openrc-run as systemd path and symlink
mkdir -p $DESTDIR/lib/systemd/
mv $DESTDIR/sbin/openrc-init $DESTDIR/lib/systemd/systemd
ln -s ../lib/systemd/systemd $DESTDIR/sbin/openrc-init
ln -s ../lib/systemd/systemd $DESTDIR/sbin/openrc-init
}