packages: smartmontools/smartmontools.spec, smartmontools/smartd.service (N...

cactus cactus at pld-linux.org
Fri Dec 2 20:55:24 CET 2011


Author: cactus                       Date: Fri Dec  2 19:55:24 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 2; systemd support

---- Files affected:
packages/smartmontools:
   smartmontools.spec (1.44 -> 1.45) , smartd.service (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/smartmontools/smartmontools.spec
diff -u packages/smartmontools/smartmontools.spec:1.44 packages/smartmontools/smartmontools.spec:1.45
--- packages/smartmontools/smartmontools.spec:1.44	Tue Oct 25 19:49:33 2011
+++ packages/smartmontools/smartmontools.spec	Fri Dec  2 20:55:19 2011
@@ -9,13 +9,14 @@
 Summary(pt.UTF-8):	smartmontools - para monitorar discos e dispositivos S.M.A.R.T.
 Name:		smartmontools
 Version:	5.42
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Applications/System
 Source0:	http://downloads.sourceforge.net/smartmontools/%{name}-%{version}.tar.gz
 # Source0-md5:	4460bf9a79a1252ff5c00ba52cf76b2a
 Source1:	%{name}.init
 Source2:	smartd.upstart
+Source3:	smartd.service
 URL:		http://smartmontools.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -142,6 +143,14 @@
 possível de informações "específicas do fabricante" e "reservadas"
 sobre unidades de disco.
 
+%package systemd
+Summary:	systemd units for smartd
+Group:		Base
+Requires:	%{name} = %{version}-%{release}
+
+%description systemd
+systemd units for smartd.
+
 %prep
 %setup -q
 
@@ -161,9 +170,10 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,init}
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,init},/lib/systemd/system}
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smartd
 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/init/smartd.conf
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/lib/systemd/system
 
 sed -e 's#^/dev/#\#/dev/#g' smartd.conf > $RPM_BUILD_ROOT%{_sysconfdir}/smartd.conf
 
@@ -194,12 +204,19 @@
 %{_mandir}/man8/smartctl.8*
 %{_mandir}/man8/smartd.8*
 
+%files systemd
+%defattr(644,root,root,755)
+/lib/systemd/system/smartd.service
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.45  2011/12/02 19:55:19  cactus
+- rel 2; systemd support
+
 Revision 1.44  2011/10/25 17:49:33  qboosh
 - updated to 5.42
 

================================================================
Index: packages/smartmontools/smartd.service
diff -u /dev/null packages/smartmontools/smartd.service:1.1
--- /dev/null	Fri Dec  2 20:55:24 2011
+++ packages/smartmontools/smartd.service	Fri Dec  2 20:55:19 2011
@@ -0,0 +1,9 @@
+[Unit]
+Description=Self Monitoring and Reporting Technology (SMART) Daemon
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/smartd -n
+
+[Install]
+WantedBy=multi-user.target
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/smartmontools/smartmontools.spec?r1=1.44&r2=1.45&f=u



More information about the pld-cvs-commit mailing list