SPECS: partimage.spec PAM and SSL support.

arekm arekm at pld-linux.org
Thu Apr 10 13:42:02 CEST 2008


Author: arekm                        Date: Thu Apr 10 11:42:02 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
PAM and SSL support.

---- Files affected:
SPECS:
   partimage.spec (1.53 -> 1.54) 

---- Diffs:

================================================================
Index: SPECS/partimage.spec
diff -u SPECS/partimage.spec:1.53 SPECS/partimage.spec:1.54
--- SPECS/partimage.spec:1.53	Thu Apr 10 12:40:39 2008
+++ SPECS/partimage.spec	Thu Apr 10 13:41:56 2008
@@ -4,16 +4,20 @@
 Summary(pt_BR.UTF-8):	Ferramenta para criar e restaurar backup de partições
 Name:		partimage
 Version:	0.6.7
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://dl.sourceforge.net/partimage/%{name}-%{version}.tar.bz2
 # Source0-md5:	1c13530b43ea5c368c1c2fd0ab36bddb
 Source1:	%{name}d.init
 Source2:	%{name}d.sysconfig
+Source3:	%{name}d.pam
+Source4:	%{name}d-ssl.cnf
 Patch0:		%{name}-types.patch
 URL:		http://www.partimage.org/
 BuildRequires:	automake
+BuildRequires:	pam-devel
+BuildRequires:	openssl-devel
 BuildRequires:	bzip2-devel
 BuildRequires:	gettext-devel
 BuildRequires:	libstdc++-devel
@@ -85,6 +89,7 @@
 Requires(pre):	/usr/sbin/groupadd
 Requires(pre):	/usr/sbin/useradd
 Requires:	%{name} = %{version}-%{release}
+Requires:	openssl-tools
 Provides:	group(partimag)
 Provides:	user(partimag)
 
@@ -103,12 +108,13 @@
 cp -f /usr/lib/rpm/mkinstalldirs .
 rm -f po/stamp-po
 %configure \
-	--disable-ssl
+	--enable-pam \
+	--enable-ssl
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/partimaged,/etc/rc.d/init.d,/etc/sysconfig,/var/spool/partimage}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{partimaged,pam.d},/etc/rc.d/init.d,/etc/sysconfig,/var/spool/partimage}
 
 %{__make} -C src install \
 	sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
@@ -127,6 +133,10 @@
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/partimaged
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/partimaged
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/partimaged
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/partimaged/partimaged.cnf
+
+touch $RPM_BUILD_ROOT/etc/partimaged/partimaged.{csr,cert,key}
 
 %find_lang %{name}
 
@@ -139,12 +149,18 @@
 
 %post server
 /sbin/chkconfig --add partimaged
+if [ ! -s /etc/partimaged/partimaged.key -o ! -s /etc/partimaged/partimaged.cert ]; then
+	echo "Run \"/etc/rc.d/init.d/partimaged init\" to create self-signed SSL certificate." >&2
+fi
+
 if [ -f /var/lock/subsys/partimaged ]; then
 	/etc/rc.d/init.d/partimaged restart >&2
 else
 	echo "Run \"/etc/rc.d/init.d/partimaged start\" to start partimage server." >&2
 fi
 
+echo 
+
 %preun server
 if [ "$1" = "0" ]; then
 	if [ -f /var/lock/subsys/partimaged ]; then
@@ -169,8 +185,13 @@
 %doc README.partimaged
 %attr(755,root,root) %{_sbindir}/partimaged
 %attr(754,root,root) /etc/rc.d/init.d/partimaged
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/partimaged
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/partimaged
 %dir %{_sysconfdir}/partimaged
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/partimaged/partimaged.cnf
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/partimaged/partimaged.csr
+%attr(600,partimag,root) %config(noreplace) %verify(not md5 mtime size) /etc/partimaged/partimaged.key
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/partimaged/partimaged.cert
 %attr(600,partimag,root) %config(noreplace) %{_sysconfdir}/partimaged/partimagedusers
 %attr(700,partimag,root) %dir /var/spool/partimage
 
@@ -180,6 +201,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.54  2008-04-10 11:41:56  arekm
+PAM and SSL support.
+
 Revision 1.53  2008-04-10 10:40:39  arekm
 - up to 0.6.7
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/partimage.spec?r1=1.53&r2=1.54&f=u



More information about the pld-cvs-commit mailing list