Skip to content
Merged
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
1 change: 1 addition & 0 deletions dist-git/configs/sysusers.d/dist-git.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
g packager -
8 changes: 7 additions & 1 deletion dist-git/dist-git.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ Requires: git
Requires: git-daemon
Requires: mod_ssl
Requires: crudini
%if 0%{?rhel} && 0%{?rhel} < 10
Requires(pre): shadow-utils
%endif

Requires: python3-requests
Recommends: python3-grokmirror
Expand Down Expand Up @@ -92,13 +94,14 @@ cd -


%pre
%if 0%{?rhel} && 0%{?rhel} < 10
# ------------------------------------------------------------------------------
# Users and Groups
# ------------------------------------------------------------------------------
getent group packager > /dev/null || \
groupadd -r packager
exit 0

%endif

%check
%if 0%{?rhel} && 0%{?rhel} <= 8
Expand Down Expand Up @@ -131,6 +134,8 @@ cp -a configs/httpd/dist-git.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/
cp -a configs/httpd/dist-git/* %{buildroot}%{_sysconfdir}/httpd/conf.d/dist-git/
cp -a configs/systemd/* %{buildroot}%{_unitdir}/

install -m0644 -D configs/sysusers.d/dist-git.conf %{buildroot}%{_sysusersdir}/dist-git.conf

# ------------------------------------------------------------------------------
# /var/lib/ ...... dynamic persistent files
# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -247,6 +252,7 @@ fi
%{_bindir}/remove_unused_sources
%{_bindir}/setup_git_package

%{_sysusersdir}/dist-git.conf

%files selinux
%doc selinux/*
Expand Down