From e2ba8050b6f34dd3a25fe0e9f7fd047e3020a396 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Thu, 5 Jun 2025 16:50:22 -0400 Subject: [PATCH] * Fri Dec 13 2024 Vasarhelyi Zsolt - 11.0.0-01 - Original version --- .gitattributes | 3 ++ smeserver-samba-dc-11.0.0.tar.xz | 3 ++ smeserver-samba-dc.spec | 71 ++++++++++++++++++-------------- 3 files changed, 47 insertions(+), 30 deletions(-) create mode 100644 .gitattributes create mode 100644 smeserver-samba-dc-11.0.0.tar.xz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cd3c227 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.tar.xz filter=lfs diff=lfs merge=lfs -text +*.tar.gz filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text diff --git a/smeserver-samba-dc-11.0.0.tar.xz b/smeserver-samba-dc-11.0.0.tar.xz new file mode 100644 index 0000000..941f3f3 --- /dev/null +++ b/smeserver-samba-dc-11.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f31d139918ea7a4c405c0b29776254469ea2e06558f584483bc4120d7695abc5 +size 3428 diff --git a/smeserver-samba-dc.spec b/smeserver-samba-dc.spec index fee8d4f..e58431d 100644 --- a/smeserver-samba-dc.spec +++ b/smeserver-samba-dc.spec @@ -1,55 +1,66 @@ +# $Id: smeserver-samba-dc.spec,v 1.6 2024/09/06 01:35:36 terryfage Exp $ +# Authority: koozali +# Name: bunkobugsy + %define name smeserver-samba-dc -%define version 1.0 +%define version 11.0.0 %define release 1 -Summary: This is what smeserver-samba-dc does. + +Summary: SME Server Samba DC Name: %{name} Version: %{version} Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} +Group: Networking/Daemons +Source: %{name}-%{version}.tar.xz + +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +BuildRequires: e-smith-devtools +Requires: e-smith-formmagick >= 1.4.0-12 +Requires: samba-dc +Requires: samba-tools +Requires: python3-setproctitle +Requires: smeserver-password %description -contrib to run samba AD-DC as a separate service on SME Server and keep core samba service as a secondary smb file server. +SME Server templates for Samba Active Directory support %changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] +* Fri Dec 13 2024 Vasarhelyi Zsolt +- 11.0.0-01 +- Original version %prep - -%setup -q +%setup %build perl createlinks %install rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ - +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist %clean -cd .. -rm -rf %{name}-%{version} - +rm -rf $RPM_BUILD_ROOT %pre - -%preun - -%post - +/usr/bin/systemctl stop smbd +true %postun -#uninstall +if [ $1 == 0 ] ; then +/usr/bin/systemctl stop samba +/sbin/e-smith/db configuration setprop samba status disabled +/sbin/e-smith/db configuration delprop samba SambaIP +/etc/e-smith/events/actions/update-ifcfg +systemctl restart network +/sbin/e-smith/db domains delete `/sbin/e-smith/db configuration getprop samba Realm` +/sbin/e-smith/signal-event domain-modify +/sbin/e-smith/db accounts delete administrator +fi +true %files -f %{name}-%{version}-filelist %defattr(-,root,root) +%attr(554,root,root) /usr/sbin/e-smith/provision +%attr(554,root,root) /usr/sbin/e-smith/sambatool +%attr(554,root,root) /usr/sbin/e-smith/syncadusers