public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/asterisk] epel8: Add sysusers.d config file to allow rpm to create users/groups automatically
Date: Mon, 02 Nov 2026 14:33:31 GMT [thread overview]
Message-ID: <179363001154.1.16890658934718954494.rpms-asterisk-8345eac1a48d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/asterisk
Branch : epel8
Commit : 8345eac1a48d4a9a4ca440898160a5a119bf1ea6
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-02-11T14:36:18+01:00
Stats : +12/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/asterisk/c/8345eac1a48d4a9a4ca440898160a5a119bf1ea6?branch=epel8
Log:
Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
---
diff --git a/asterisk.spec b/asterisk.spec
index 6f335ae..3a08030 100644
--- a/asterisk.spec
+++ b/asterisk.spec
@@ -51,7 +51,7 @@
Summary: The Open Source PBX
Name: asterisk
Version: 18.12.1
-Release: %{?_rc||?_beta:0.}1%{?_rc:.rc%{_rc}}%{?_beta:.beta%{_beta}}%{?dist}.13
+Release: %{?_rc||?_beta:0.}1%{?_rc:.rc%{_rc}}%{?_beta:.beta%{_beta}}%{?dist}.14
# Automatically converted from old format: GPLv2 - review is highly recommended.
License: GPL-2.0-only
URL: http://www.asterisk.org/
@@ -259,8 +259,6 @@ Provides: bundled(jansson) = 2.11
BuildRequires: libgcrypt
BuildRequires: make
-Requires(pre): %{_sbindir}/useradd
-Requires(pre): %{_sbindir}/groupadd
Requires(post): systemd-units
Requires(post): systemd-sysv
@@ -746,6 +744,11 @@ chmod -x contrib/scripts/dbsep.cgi
%{__perl} -pi -e 's/^MENUSELECT_APPS=(.*)$/MENUSELECT_APPS=\1 app_voicemail_imap/g' menuselect.makeopts
%endif
+# Create a sysusers.d config file
+cat >asterisk.sysusers.conf <<EOF
+u asterisk - 'Asterisk User' /var/lib/asterisk -
+EOF
+
%build
export CFLAGS="%{optflags}"
@@ -943,10 +946,8 @@ rm -f %{buildroot}%{_sysconfdir}/asterisk/motif.conf
rm -f %{buildroot}%{_sysconfdir}/asterisk/ooh323.conf
%endif
-%pre
-%{_sbindir}/groupadd -r asterisk &>/dev/null || :
-%{_sbindir}/useradd -r -s /sbin/nologin -d /var/lib/asterisk -M \
- -c 'Asterisk User' -g asterisk asterisk &>/dev/null || :
+install -m0644 -D asterisk.sysusers.conf %{buildroot}%{_sysusersdir}/asterisk.conf
+
%post
if [ $1 -eq 1 ] ; then
@@ -1374,6 +1375,7 @@ fi
%attr(0755,asterisk,asterisk) %dir %{astvarrundir}
%{_datarootdir}/asterisk/scripts/
+%{_sysusersdir}/asterisk.conf
%files ael
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/extensions.ael
@@ -1696,6 +1698,9 @@ fi
%endif
%changelog
+* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 18.12.1-1.14
+- Add sysusers.d config file to allow rpm to create users/groups automatically
+
* Sat Feb 01 2025 Björn Esser <besser82@fedoraproject.org> - 18.12.1-1.13
- Add explicit BR: libxcrypt-devel
reply other threads:[~2026-11-02 14:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179363001154.1.16890658934718954494.rpms-asterisk-8345eac1a48d@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox