2019-11-14 10:32:45 +04:00
%define _unpackaged_files_terminate_build 1
Name : gpupdate
2021-10-25 20:38:05 +04:00
Version : 0.9.9
Release : alt0.dev1
2019-11-14 10:32:45 +04:00
Summary : GPT applier
2020-02-11 19:52:10 +04:00
License : GPLv3+
2019-11-14 10:32:45 +04:00
Group : Other
2020-04-22 00:54:48 +04:00
Url : https://github.com/altlinux/gpupdate
2019-11-14 10:32:45 +04:00
BuildArch : noarch
Requires : control
2019-11-15 16:37:46 +04:00
BuildRequires : rpm-build-python3
2021-07-04 21:01:33 +04:00
BuildRequires : gettext-tools
2019-12-20 00:45:47 +04:00
Requires : python3-module-rpm
2020-04-21 23:56:11 +04:00
Requires : python3-module-dbus
2020-01-30 10:39:17 +04:00
Requires : oddjob-%name >= 0.2.0
2020-04-16 04:33:00 +04:00
Requires : libnss-role >= 0.5.0
2021-09-14 04:00:27 +04:00
Requires : local-policy >= 0.4.9
2020-05-20 01:06:28 +04:00
Requires : pam-config >= 1.9.0
2020-05-14 22:18:31 +04:00
Requires : autofs
2020-04-21 23:56:43 +04:00
# This is needed by shortcuts_applier
Requires : desktop-file-utils
2021-09-08 05:54:41 +04:00
# This is needed for smb file cache support
Requires : python3-module-smbc >= 1.0.23-alt3
2019-11-14 10:32:45 +04:00
Source0 : %name-%version.tar
%description
2019-12-26 01:12:59 +04:00
gpupdate is the facility to apply various GPO/GPT settings retrieved
from Active Directory domain in UNIX environment.
2019-11-14 10:32:45 +04:00
%prep
%setup -q
%install
mkdir -p \
2019-11-15 16:37:46 +04:00
%buildroot%python3_sitelibdir/
2019-11-14 10:32:45 +04:00
cp -r gpoa \
2019-11-15 16:37:46 +04:00
%buildroot%python3_sitelibdir/
2019-11-14 10:32:45 +04:00
2020-08-03 21:04:04 +04:00
# Generate translations
2021-07-04 21:01:33 +04:00
msgfmt \
2020-08-03 21:29:02 +04:00
-o %buildroot%python3_sitelibdir/gpoa/locale/ru_RU/LC_MESSAGES/gpoa.mo \
%buildroot%python3_sitelibdir/gpoa/locale/ru_RU/LC_MESSAGES/gpoa.po
2020-08-03 21:04:04 +04:00
2019-11-17 21:55:28 +04:00
mkdir -p \
2020-01-10 23:48:15 +04:00
%buildroot%_bindir / \
2020-01-14 22:31:49 +04:00
%buildroot%_sbindir / \
2020-06-25 14:33:15 +04:00
%buildroot%_cachedir /%name/ \
2021-09-03 03:47:34 +04:00
%buildroot%_cachedir /%{name} _file_cache/ \
2020-06-25 14:33:15 +04:00
%buildroot%_cachedir /%name/creds
2019-12-26 01:12:59 +04:00
ln -s %python3_sitelibdir/gpoa/gpoa \
2019-11-17 21:55:28 +04:00
%buildroot%_sbindir /gpoa
2019-12-26 01:12:59 +04:00
ln -s %python3_sitelibdir/gpoa/gpupdate \
%buildroot%_bindir /gpupdate
2020-08-13 16:38:59 +04:00
ln -s %python3_sitelibdir/gpoa/gpupdate-setup \
2020-03-23 16:14:25 +04:00
%buildroot%_sbindir /gpupdate-setup
2019-11-17 21:55:28 +04:00
2021-09-29 14:01:37 +04:00
mkdir -p \
%buildroot%_prefix /libexec/%name
ln -s %python3_sitelibdir/gpoa/pkcon_runner \
%buildroot%_prefix /libexec/%name/pkcon_runner
2019-11-28 22:06:32 +04:00
mkdir -p %buildroot%_datadir /%name
mv %buildroot%python3_sitelibdir/gpoa/templates \
%buildroot%_datadir /%name/
2020-05-20 01:06:28 +04:00
mkdir -p %buildroot%_sysconfdir /%name
touch %buildroot%_sysconfdir /%name/environment
2020-04-21 21:01:11 +04:00
install -Dm0644 dist/%name.service %buildroot%_unitdir /%name.service
2021-09-14 00:58:33 +04:00
install -Dm0644 dist/%name-user.service %buildroot/usr/lib/systemd/user/%name-user.service
2020-04-21 21:01:11 +04:00
install -Dm0644 dist/system-policy-%name %buildroot%_sysconfdir /pam.d/system-policy-%name
2022-02-18 06:00:51 +04:00
install -Dm0644 dist/%name-remote-policy %buildroot%_sysconfdir /pam.d/%name-remote-policy
2020-08-20 18:33:33 +04:00
install -Dm0644 dist/%name.ini %buildroot%_sysconfdir /%name/%name.ini
2020-05-15 23:29:18 +04:00
install -Dm0644 doc/gpoa.1 %buildroot/%_man1dir/gpoa.1
install -Dm0644 doc/gpupdate.1 %buildroot/%_man1dir/gpupdate.1
2019-11-28 00:36:10 +04:00
2021-09-29 08:34:57 +04:00
for i in gpupdate-localusers \
gpupdate-group-users \
gpupdate-system-uids
do
install -pD -m755 " d i s t / $ i " \
" % b u i l d r o o t %_sysconfdir / c o n t r o l . d / f a c i l i t i e s / $ i "
done
2019-11-28 00:36:10 +04:00
%preun
%preun _service gpupdate
%post
%post _service gpupdate
2020-08-21 16:21:15 +04:00
# Remove storage in case we've lost compatibility between versions.
# The storage will be regenerated on GPOA start.
2020-10-07 05:47:22 +04:00
%define active_policy %_sysconfdir/local-policy/active
2021-09-20 07:41:21 +04:00
%triggerpostun -- %name < 0.9.6
2020-08-21 16:21:15 +04:00
rm -f %_cachedir /%name/registry.sqlite
2020-10-07 05:47:22 +04:00
if test -L %active_policy; then
sed -i " s | ^ \ s * l o c a l - p o l i c y \ s * = . * | l o c a l - p o l i c y = $ ( r e a d l i n k - f % a c t i v e _ p o l i c y ) | " \
%_sysconfdir /%name/%name.ini
fi
2020-08-21 16:21:15 +04:00
2019-11-14 10:32:45 +04:00
%files
2019-11-17 21:55:28 +04:00
%_sbindir /gpoa
2020-03-23 16:14:25 +04:00
%_sbindir /gpupdate-setup
2019-11-15 16:37:46 +04:00
%_bindir /gpupdate
2021-09-29 14:01:37 +04:00
%_prefix /libexec/%name/pkcon_runner
2019-12-26 01:12:59 +04:00
%attr (755,root,root) %python3_sitelibdir/gpoa/gpoa
%attr (755,root,root) %python3_sitelibdir/gpoa/gpupdate
2020-08-13 16:38:59 +04:00
%attr (755,root,root) %python3_sitelibdir/gpoa/gpupdate-setup
2021-09-29 14:01:37 +04:00
%attr (755,root,root) %python3_sitelibdir/gpoa/pkcon_runner
2019-11-15 16:37:46 +04:00
%python3_sitelibdir/gpoa
2019-11-28 22:06:32 +04:00
%_datadir /%name
2019-11-28 00:36:10 +04:00
%_unitdir /%name.service
2020-04-22 00:54:48 +04:00
%_man1dir/gpoa.1.*
%_man1dir/gpupdate.1.*
/usr/lib/systemd/user/%name-user.service
2020-05-20 01:06:28 +04:00
%dir %_sysconfdir /%name
2021-09-29 08:34:57 +04:00
%_sysconfdir /control.d/facilities/*
2020-05-20 01:06:28 +04:00
%config (noreplace) %_sysconfdir /%name/environment
2020-08-20 18:33:33 +04:00
%config (noreplace) %_sysconfdir /%name/%name.ini
2020-05-20 01:06:28 +04:00
%config (noreplace) %_sysconfdir /pam.d/system-policy-%name
2022-02-18 06:00:51 +04:00
%config (noreplace) %_sysconfdir /pam.d/%name-remote-policy
2020-06-25 14:33:15 +04:00
%dir %attr (0700, root, root) %_cachedir /%name
2021-09-03 03:47:34 +04:00
%dir %attr (0755, root, root) %_cachedir /%{name} _file_cache
2020-06-25 14:33:15 +04:00
%dir %attr (0700, root, root) %_cachedir /%name/creds
2020-05-12 01:15:49 +04:00
%exclude %python3_sitelibdir/gpoa/.pylintrc
%exclude %python3_sitelibdir/gpoa/.prospector.yaml
%exclude %python3_sitelibdir/gpoa/Makefile
%exclude %python3_sitelibdir/gpoa/test
2019-11-14 10:32:45 +04:00
%changelog
2021-10-25 20:36:46 +04:00
* Mon Oct 25 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.8-alt1
- Added exception for org.gnome.Vino authentication-methods
- Fixed bug for alternative-port in org.gnome.Vino
2021-09-29 08:42:25 +04:00
* Wed Sep 29 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.7-alt1
- Fix regression with kestroy for user credential cache
- Update system-policy-gpupdate PAM-rules to ignore applying group policies
for local users and system users with uid less than 500
- Add control facilities to rule system-policy-gpupdate rules:
+ gpupdate-group-users
+ gpupdate-localusers
+ gpupdate-system-uids
2021-09-20 07:57:50 +04:00
* Mon Sep 20 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.6-alt1
- Add support changed GPO List Processing for '**DelVals.' value name
2021-09-14 06:42:13 +04:00
* Tue Sep 14 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.5-alt1
- Refix local policy path detection
- gpupdate-setup: revert settings to default when disabled
2021-09-14 04:00:27 +04:00
* Tue Sep 14 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.4-alt1
- Add improvement with new local-policy system-policy control
- Fix gpupdate-setup and user service installation regressions
- Set empty local policy and local backend by default
- Fix local policy path detection
2021-09-08 05:54:41 +04:00
* Mon Sep 06 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.3-alt1
- Use NetBIOS name for Kerberos authentification
- Add support actions (create, update, delete, replace) for Shortcuts
- Add support GSettings with locks feature
- Add support file cache for special GSettings policy:
Software\BaseALT\Policies\GSettings\org.mate.background.picture-filename
(requires python smbc module with use_kerberos option support)
2021-07-28 21:47:38 +04:00
* Wed Jul 28 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.2-alt1
- Fix Shortcuts applier double running in user context
- Add LogonUser variable to expand_windows_var() function
- Add support of path variable expansion to Shortcuts applier
2021-07-18 20:33:36 +04:00
* Sun Jul 18 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.1-alt1
- Fix GSettings applier user part support
- Add support additional firefox appliers
- Add new windows policies mapping capability feature ruled by:
Software\BaseALT\Policies\GPUpdate\WindowsPoliciesMapping
- Improve drop privileges mechanism with fork and dbus session
2021-07-04 21:01:33 +04:00
* Fri Jun 25 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.9.0-alt1
- Change policies.json location for Firefox
- Set GSettings, Chromium and Firefox appliers
not experimental and enabled by default
2020-12-22 19:01:11 +04:00
* Tue Dec 22 2020 Igor Chudov <nir@altlinux.org> 0.8.2-alt1
- Increased D-Bus timeouts on calls
- Minor logging fixes
2020-10-07 06:33:05 +04:00
* Wed Oct 07 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.8.1-alt3
- Fixed compatibility upgrade trigger condition
2020-10-07 05:47:22 +04:00
* Wed Oct 07 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.8.1-alt2
- Fixed compatibility upgrade trigger from 0.7 releases for update
active local-policy in new gpupdate.ini configuartion file
2020-09-11 22:05:50 +04:00
* Fri Sep 11 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.8.1-alt1
- Workaround for control names with special symbols
- Improved logging on Kerberos errors
2020-09-04 00:30:56 +04:00
* Fri Sep 04 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.8.0-alt1
- Improve gpo applier logging
- Add new configuration file /etc/gpupdate/gpupdate.ini
- Fix folders applier regression
- kinit move to samba backend
- Replace gpupdate-setup utility with new implementation
2020-07-01 01:40:53 +04:00
* Wed Jul 01 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.7.0-alt1
- Add multiple appliers, part of which marks as experimental yet
2020-05-20 01:06:28 +04:00
* Wed May 20 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.6.0-alt2
- Update system-policy PAM-rules (clean system-auth-common, add pam_env support)
- Add dependency to pam-config later than 1.9.0 release
2020-05-15 23:29:18 +04:00
* Fri May 15 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.6.0-alt1
- Add drives policy for shared folders with cifs applier using autofs
- Update shortcuts policy with xdg-users-dir support for DESKTOP
2020-04-22 00:54:48 +04:00
* Wed Apr 22 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.5.0-alt1
- Update samba format: local.xml -> Machine/Registry.pol.xml
- Add support of ad-domain-controller local policy profile
- Set properly URL of project
2020-04-20 02:56:47 +04:00
* Mon Apr 20 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.5-alt1
- Add support for control system-policy and requires to new pam-config
2020-04-19 12:45:42 +04:00
* Sun Apr 19 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.4-alt1
- Add gpupdate-setup initialization script supported local-policy profiles
2020-03-06 19:30:13 +04:00
* Fri Mar 06 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.3-alt1
- Fix polfile merging
- Add support controls with strings values
- Initial SIGINT signal handling
2020-02-19 16:35:25 +04:00
* Wed Feb 19 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.2-alt1
- Change service type to 'simple' because gpoa is not systemd-aware
- Shortcuts fixes and improvements
2020-02-12 19:52:40 +04:00
* Wed Feb 12 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.1-alt1
- Update license to GPLv3+
- Run gpudate as root without user argument for Computer target only
- Fix chromium applier
2020-01-30 10:39:17 +04:00
* Thu Jan 30 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.0-alt1
- Update release with first pack of stabilization fixes
2020-01-16 17:34:40 +04:00
* Thu Jan 16 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.3.0-alt1
- Add user appliers support and machine gsettings apllier
- Add require to oddjob-gpupdate
2019-12-20 01:29:25 +04:00
* Fri Dec 20 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.2.1-alt2
- Add support system-policy for PAM settings
2019-12-20 00:45:47 +04:00
* Thu Dec 19 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.2.1-alt1
- Next part of refactoring
- Add simple support adp
2019-12-06 18:33:05 +04:00
* Fri Dec 06 2019 Igor Chudov <nir@altlinux.org> 0.2.0-alt1
- Code refactored to work with storage facility
- Retrieval of HKCU preferences implemented
- Numerous backend and frontend stability improvements
- Chromium and Firefox appliers implemented
2019-11-28 22:55:53 +04:00
* Thu Nov 28 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.1.0-alt1
- Change license to GPLv2+
- Refactor and separate code to backend and frontend
2019-11-17 21:55:28 +04:00
* Sun Nov 17 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.0.3-alt1
- Clean code, fix functionality (Initialize cache if missing, retrieve SIDs)
- Run GPO applier as /usr/sbin/gpoa
2019-11-15 12:54:31 +04:00
* Fri Nov 15 2019 Igor Chudov <nir@altlinux.org> 0.0.2-alt1
- Removed hreg dependency
- Introduced caches for SIDs and Registry.pol file paths
- gpupdate transformed into simple gpoa starter
- gpoa learned to work with username
- Introduced TDB manager in order to work with samba-regedit registry
- DC domain detection now uses native python-samba functions to query LDAP
2019-11-14 10:32:45 +04:00
* Thu Nov 14 2019 Igor Chudov <nir@altlinux.org> 0.0.1-alt1
- Initial release