Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes some boot issues with systemd and dbus. Add the manifest to build the sys-libs/pam* package. #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions sys-apps/dbus.py → sys-apps/dbus/dbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,38 @@
],
build_dependencies=[
'sys-apps/systemd-dev',
'sys-libs/expat-dev'
'sys-libs/expat-dev',
'dev-libs/glib-dev',
'sys-apps/util-linux-dev',
'sys-libs/x11-dev',
]
)
def build(build):
packages = autotools.build(
configure=lambda: configure(
'--enable-user-session',
'--enable-systemd',
'--disable-doxygen-docs',
'--disable-xml-docs',
'--docdir=/usr/share/doc/dbus',
'--with-console-auth-dir=/run/console',
'--with-dbus-user=messagebus',
'--with-session-socket-dir=/tmp',
'--with-system-pid-file=/run/dbus.pid',
'--with-system-socket=/run/dbus/system_bus_socket',
'--with-systemdsystemunitdir=/usr/lib64/systemd/system',
'--with-systemduserunitdir=/usr/lib64/systemd/user',
),
)

# Make a keeper for /run/dbus
packages['sys-apps/dbus'].make_keepers('run/dbus/')

# Drain common and shared files
packages['sys-apps/dbus'].drain(
'usr/share/',
'usr/lib64/dbus-daemon-launch-helper',
'usr/lib64/systemd/',
'usr/lib/**/*.conf',
)

# Drain the development files laying in unusual places
Expand All @@ -61,5 +76,9 @@ def build(build):
# Packages member of `raven-os/essentials` should explicitly state all
# of their dependencies, including indirect ones.
packages['sys-apps/dbus'].requires('raven-os/corefs')
packages['sys-apps/dbus'].requires('sys-apps/bash')
packages['sys-apps/dbus'].requires('sys-apps/coreutils')

packages['sys-apps/dbus'].load_instructions('./instructions.sh')

return packages
21 changes: 21 additions & 0 deletions sys-apps/dbus/instructions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env sh

before_install() {
:
}
Comment on lines +3 to +5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those aren't needed anymore


after_install() {
# Generate dbus users
useradd -M -s /usr/bin/nologin messagebus

chown -v root:messagebus /usr/lib64/dbus-daemon-launch-helper
chmod -v 4750 /usr/lib64/dbus-daemon-launch-helper
}

before_remove() {
:
}

after_remove() {
:
}
45 changes: 45 additions & 0 deletions sys-apps/shadow/login
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# Raven-OS - /etc/pam.d/login
#

# Set failure delay before next prompt to 3 seconds
auth optional pam_faildelay.so delay=3000000

# Check to make sure that the user is allowed to login
auth requisite pam_nologin.so

# Check to make sure that root is allowed to login
# Disabled by default. You will need to create /etc/securetty
# file for this module to function. See man 5 securetty.
#auth required pam_securetty.so

# Additional group memberships - disabled by default
#auth optional pam_group.so

# include system auth settings
auth include system-auth

# check access for the user
account required pam_access.so

# include system account settings
account include system-account

# Set default environment variables for the user
session required pam_env.so

# Set resource limits for the user
session required pam_limits.so

# Display date of last login - Disabled by default
#session optional pam_lastlog.so

# Display the message of the day - Disabled by default
#session optional pam_motd.so

# Check user's mail - Disabled by default
#session optional pam_mail.so standard quiet

# include system session and password settings
session include system-session
password include system-password
Loading