[packages/ksmbd-tools] up to 3.4.3

atler atler at pld-linux.org
Sun Dec 19 13:33:08 CET 2021


commit 576403e4c3bacff4daba9dad8e6f0c75c99ad6b4
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Dec 19 13:29:21 2021 +0100

    up to 3.4.3

 ksmbd-tools.spec | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)
---
diff --git a/ksmbd-tools.spec b/ksmbd-tools.spec
index 50aa95c..ae9c9b7 100644
--- a/ksmbd-tools.spec
+++ b/ksmbd-tools.spec
@@ -4,12 +4,12 @@
 
 Summary:	cifsd kernel server userspace utilities
 Name:		ksmbd-tools
-Version:	3.4.2
-Release:	2
+Version:	3.4.3
+Release:	1
 License:	GPL v2+
 Group:		Applications/System
 Source0:	https://github.com/cifsd-team/ksmbd-tools/releases/download/%{version}/%{name}-%{version}.tgz
-# Source0-md5:	7c22829d3aa2cf1ee60e284fbda2af4c
+# Source0-md5:	e034197104549fa84b4702eca78034aa
 URL:		https://github.com/cifsd-team/ksmbd-tools
 BuildRequires:	autoconf >= 2.68
 BuildRequires:	automake
@@ -18,7 +18,8 @@ BuildRequires:	glib2-devel
 BuildRequires:	libnl-devel >= 3.0
 BuildRequires:	libtool
 BuildRequires:	pkgconfig
-BuildRequires:	rpmbuild(macros) >= 1.527
+BuildRequires:	rpmbuild(macros) >= 1.671
+Requires:	systemd-units >= 38
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -42,14 +43,28 @@ cifsd kernel server userspace utilities.
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/ksmbd
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ksmbd,%{systemdunitdir}}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+sed -e 's#/sbin/ksmbd#%{_sbindir}/ksmbd#g' ksmbd.service > $RPM_BUILD_ROOT%{systemdunitdir}/ksmbd.service
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%systemd_post ksmbd.service
+
+%preun
+%systemd_preun ksmbd.service
+
+%postun
+%systemd_reload
+
+%triggerpostun -- ksmbd-tools < 3.4.3
+%systemd_trigger ksmbd.service
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README smb.conf.example
@@ -58,3 +73,4 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_sbindir}/ksmbd.adduser
 %attr(755,root,root) %{_sbindir}/ksmbd.control
 %attr(755,root,root) %{_sbindir}/ksmbd.mountd
+%{systemdunitdir}/ksmbd.service
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ksmbd-tools.git/commitdiff/576403e4c3bacff4daba9dad8e6f0c75c99ad6b4



More information about the pld-cvs-commit mailing list