commit
2ee5afc6f6
@ -0,0 +1,15 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Name=Join to Domain
|
||||||
|
Name[ru]=Ввод ПК в домен
|
||||||
|
GenericName=Join to Domain
|
||||||
|
GenericName[ru]=Ввод ПК в домен
|
||||||
|
Comment=Scripts for join host to Windows domain
|
||||||
|
Comment[ru]=Ввод ПК в домен Windows
|
||||||
|
Exec=pkexec /usr/bin/join-to-domain.sh -g
|
||||||
|
Icon=preferences-desktop-remote-desktop
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
Categories=GTK;System;
|
||||||
|
X-Desktop-File-Install-Version=0.26
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||||
|
<policyconfig>
|
||||||
|
<vendor>MSVSphere</vendor>
|
||||||
|
<vendor_url>https://msvsphere-os.ru/</vendor_url>
|
||||||
|
<icon_name>preferences-desktop-remote-desktop</icon_name>
|
||||||
|
<action id="ru.msvsphere.join-to-domain">
|
||||||
|
<description gettext-domain="xed">Run join-to-domain as root</description>
|
||||||
|
<message gettext-domain="xed">Authentication is required to run the Join To Domain as root</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_any>auth_admin</allow_any>
|
||||||
|
<allow_inactive>auth_admin</allow_inactive>
|
||||||
|
<allow_active>auth_admin</allow_active>
|
||||||
|
</defaults>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/join-to-domain.sh</annotate>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||||
|
</action>
|
||||||
|
</policyconfig>
|
@ -0,0 +1,73 @@
|
|||||||
|
Summary: GUI to join MSVSphere host to domain
|
||||||
|
Name: join-to-domain
|
||||||
|
Version: 0.6.6
|
||||||
|
Release: 1%{?dist}
|
||||||
|
|
||||||
|
License: GPLv2+
|
||||||
|
URL: https://redos.red-soft.ru/
|
||||||
|
|
||||||
|
Source0: join-to-domain.sh
|
||||||
|
Source1: ru.msvsphere.join-to-domain.policy
|
||||||
|
Source2: form-join-to-domain.py
|
||||||
|
Source3: join-to-domain.desktop
|
||||||
|
|
||||||
|
Requires: %{name}-cli = %{version}-%{release}
|
||||||
|
Requires: yad
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
GUI for join MSVSphere host to domain.
|
||||||
|
|
||||||
|
%package cli
|
||||||
|
Summary: CLI to join MSVSphere host to domain
|
||||||
|
|
||||||
|
Requires: adcli
|
||||||
|
Requires: krb5-workstation
|
||||||
|
Requires: oddjob
|
||||||
|
Requires: oddjob-mkhomedir
|
||||||
|
Requires: polkit
|
||||||
|
Requires: realmd
|
||||||
|
Requires: samba-common
|
||||||
|
Requires: samba-common-tools
|
||||||
|
Requires: sssd
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description cli
|
||||||
|
CLI for join MSVSphere host to domain.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Nothing to build
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}%{_bindir}/
|
||||||
|
install -d %{buildroot}%{_datadir}/polkit-1/actions/
|
||||||
|
install -d %{buildroot}%{_datadir}/join-to-domain/
|
||||||
|
install -d %{buildroot}%{_datadir}/applications/
|
||||||
|
|
||||||
|
install -m755 %{SOURCE0} %{buildroot}%{_bindir}/
|
||||||
|
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/
|
||||||
|
install -m755 %{SOURCE2} %{buildroot}%{_datadir}/join-to-domain/
|
||||||
|
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
|
||||||
|
|
||||||
|
ln -sr %{buildroot}%{_bindir}/join-to-domain.sh %{buildroot}%{_bindir}/JoinToDomain
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%{_datadir}/%{name}/form-join-to-domain.py
|
||||||
|
%{_datadir}/applications/join-to-domain.desktop
|
||||||
|
|
||||||
|
%files cli
|
||||||
|
%{_bindir}/JoinToDomain
|
||||||
|
%{_bindir}/join-to-domain.sh
|
||||||
|
%{_datadir}/polkit-1/actions/ru.msvsphere.join-to-domain.policy
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Apr 05 2024 Arkady L. Shane <ashejn@msvsphere.ru> - 0.6.6-1
|
||||||
|
- Rebuilt for MSVSphere 9.2
|
||||||
|
|
||||||
|
* Fri Apr 5 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.6.6-1
|
||||||
|
- Initial build
|
Loading…
Reference in new issue