SHA256
1
0
forked from jengelh/sssd

Accepting request 678007 from network:ldap

- Install systemd service unit file created from source's template
  (bsc#1120852)
- Install logrotate configuration (bsc#1004220)
- Set journald as system logger

OBS-URL: https://build.opensuse.org/request/show/678007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sssd?expand=0&rev=93
This commit is contained in:
Stephan Kulow 2019-02-28 20:23:57 +00:00 committed by Git OBS Bridge
commit dc67d7d5d3
3 changed files with 24 additions and 22 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Feb 20 16:01:52 UTC 2019 - Samuel Cabrero <scabrero@suse.de>
- Install systemd service unit file created from source's template
(bsc#1120852)
- Install logrotate configuration (bsc#1004220)
- Set journald as system logger
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 15 17:36:22 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Fri Feb 15 17:36:22 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,15 +0,0 @@
[Unit]
Description=System Security Services Daemon
Before=nss-user-lookup.target
Wants=nss-user-lookup.target
[Service]
EnvironmentFile=-/etc/sysconfig/sssd
ExecStart=/usr/sbin/sssd -D -f
# These two should be used with traditional UNIX forking daemons
# consult systemd.service(5) for more details
Type=forking
PIDFile=/var/run/sssd.pid
[Install]
WantedBy=multi-user.target

View File

@ -1,7 +1,7 @@
# #
# spec file for package sssd # spec file for package sssd
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -28,7 +28,6 @@ Url: https://pagure.io/SSSD/sssd
Source: http://releases.pagure.org/SSSD/sssd/%name-%version.tar.gz Source: http://releases.pagure.org/SSSD/sssd/%name-%version.tar.gz
Source2: http://releases.pagure.org/SSSD/sssd/%name-%version.tar.gz.asc Source2: http://releases.pagure.org/SSSD/sssd/%name-%version.tar.gz.asc
Source3: baselibs.conf Source3: baselibs.conf
Source4: sssd.service
Source5: %name.keyring Source5: %name.keyring
Patch1: krb-noversion.diff Patch1: krb-noversion.diff
BuildRoot: %_tmppath/%name-%version-build BuildRoot: %_tmppath/%name-%version-build
@ -391,6 +390,9 @@ export LDFLAGS="-pie"
--with-pipe-path="%pipepath" \ --with-pipe-path="%pipepath" \
--with-pubconf-path="%pubconfpath" \ --with-pubconf-path="%pubconfpath" \
--with-init-dir="%_initrddir" \ --with-init-dir="%_initrddir" \
--with-environment-file="%_sysconfdir/sysconfig/sssd" \
--with-initscript=systemd \
--with-syslog=journald \
--enable-nsslibdir="/%_lib" \ --enable-nsslibdir="/%_lib" \
--enable-pammoddir="/%_lib/security" \ --enable-pammoddir="/%_lib/security" \
--with-ldb-lib-dir="$LDB_DIR" \ --with-ldb-lib-dir="$LDB_DIR" \
@ -405,7 +407,7 @@ make %{?_smp_mflags} all
%install %install
# sss_obfuscate is compatible with both python 2 and 3 # sss_obfuscate is compatible with both python 2 and 3
sed -i -e 's:/usr/bin/python:/usr/bin/python3:' src/tools/sss_obfuscate sed -i -e 's:%_bindir/python:%_bindir/python3:' src/tools/sss_obfuscate
b="%buildroot" b="%buildroot"
make install DESTDIR="$b" make install DESTDIR="$b"
@ -417,7 +419,11 @@ install -d "$b/%_sysconfdir/sssd"
install -m600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf" install -m600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf"
install -d "$b/%_sysconfdir/sssd/conf.d" install -d "$b/%_sysconfdir/sssd/conf.d"
install -d "$b/%_unitdir" install -d "$b/%_unitdir"
install -m644 %{S:4} "$b/%_unitdir/sssd.service"
# Copy default logrotate file
install -d "$b/%_sysconfdir/logrotate.d"
install -m644 src/examples/logrotate "$b/%_sysconfdir/logrotate.d/sssd"
rm -Rf "$b/%_initddir" rm -Rf "$b/%_initddir"
ln -s service "$b/%_sbindir/rcsssd" ln -s service "$b/%_sbindir/rcsssd"
@ -472,8 +478,9 @@ rm -f /var/lib/sss/db/*.ldb
%files -f sssd.lang %files -f sssd.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %license COPYING
%_unitdir %_unitdir
%_unitdir/sssd.service
%_bindir/sss_ssh_* %_bindir/sss_ssh_*
%_sbindir/sssctl %_sbindir/sssctl
%_sbindir/sssd %_sbindir/sssd
@ -529,6 +536,7 @@ rm -f /var/lib/sss/db/*.ldb
%_libexecdir/%name/sssd_ssh %_libexecdir/%name/sssd_ssh
%_libexecdir/%name/sssd_sudo %_libexecdir/%name/sssd_sudo
%_libexecdir/%name/sss_signal %_libexecdir/%name/sss_signal
%_libexecdir/%name/sssd_check_socket_activated_responders
%dir %sssdstatedir %dir %sssdstatedir
%attr(700,root,root) %dir %dbpath/ %attr(700,root,root) %dir %dbpath/
%attr(755,root,root) %dir %pipepath/ %attr(755,root,root) %dir %pipepath/
@ -539,6 +547,7 @@ rm -f /var/lib/sss/db/*.ldb
%attr(750,root,root) %dir %_localstatedir/log/%name/ %attr(750,root,root) %dir %_localstatedir/log/%name/
%dir %_sysconfdir/sssd/ %dir %_sysconfdir/sssd/
%config(noreplace) %_sysconfdir/sssd/sssd.conf %config(noreplace) %_sysconfdir/sssd/sssd.conf
%config(noreplace) %_sysconfdir/logrotate.d/sssd
%dir %_sysconfdir/sssd/conf.d %dir %_sysconfdir/sssd/conf.d
%dir %_sysconfdir/pam.d/ %dir %_sysconfdir/pam.d/
%config(noreplace) %_sysconfdir/pam.d/sssd-shadowutils %config(noreplace) %_sysconfdir/pam.d/sssd-shadowutils