SPECS: autofs.spec - moved auto.misc to auto.media; set CC and som...

blues blues at pld-linux.org
Mon Jun 26 22:54:40 CEST 2006


Author: blues                        Date: Mon Jun 26 20:54:40 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- moved auto.misc to auto.media; set CC and some flags (maybe more needed).
  Some TODO done, more added, removed /misc directory.

---- Files affected:
SPECS:
   autofs.spec (1.69 -> 1.70) 

---- Diffs:

================================================================
Index: SPECS/autofs.spec
diff -u SPECS/autofs.spec:1.69 SPECS/autofs.spec:1.70
--- SPECS/autofs.spec:1.69	Fri May 12 01:06:22 2006
+++ SPECS/autofs.spec	Mon Jun 26 22:54:35 2006
@@ -1,10 +1,8 @@
 # $Revision$, $Date$
 # TODO:
-# What about unpacked files:
-#  /etc/auto.master
-#  /etc/auto.misc
-#  /etc/auto.net
-# Probably Source{2,3,5} are obsolete.
+# - change /net to something FHS-compliant ?
+# - upgrade to autofs5 - maybe separate package?
+# - build of ldap-related things has some errors
 Summary:	autofs daemon
 Summary(de):	autofs daemon
 Summary(es):	Servidor autofs
@@ -14,18 +12,17 @@
 Summary(tr):	autofs sunucu süreci
 Name:		autofs
 Version:	4.1.4
-Release:	3
+Release:	3.2
 Epoch:		1
-License:	GPL
+License:	GPL v2+
 Group:		Daemons
 Source0:	ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/%{name}-%{version}.tar.bz2
 # Source0-md5:	7e3949114c00665b4636f0c318179657
 Source1:	%{name}.init
 Source2:	%{name}-auto.master
-Source3:	%{name}-auto.misc
-Source4:	%{name}-auto.mnt
-Source5:	%{name}-auto.net
-Source6:	%{name}.sysconfig
+Source3:	%{name}-auto.media
+Source4:	%{name}-auto.net
+Source5:	%{name}.sysconfig
 Patch0:		%{name}-open_max.patch
 Patch1:		%{name}-hesiod-includes.patch
 Patch2:		http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-misc-fixes.patch
@@ -112,7 +109,10 @@
 %{__autoconf}
 %configure
 
-%{__make}
+%{__make} \
+	initdir=/etc/rc.d/init.d \
+	CC="%{__cc}" \
+	DAEMON_CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -125,13 +125,15 @@
 install %{SOURCE1}	$RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
 
 install %{SOURCE2}	$RPM_BUILD_ROOT%{_sysconfdir}/auto.master
-install %{SOURCE3}	$RPM_BUILD_ROOT%{_sysconfdir}/auto.misc
-install %{SOURCE4}	$RPM_BUILD_ROOT%{_sysconfdir}/auto.mnt
-install %{SOURCE5} 	$RPM_BUILD_ROOT%{_sysconfdir}/auto.net
-install %{SOURCE6} 	$RPM_BUILD_ROOT/etc/sysconfig/autofs
+install %{SOURCE3}	$RPM_BUILD_ROOT%{_sysconfdir}/auto.media
+install %{SOURCE4} 	$RPM_BUILD_ROOT%{_sysconfdir}/auto.net
+install %{SOURCE5} 	$RPM_BUILD_ROOT/etc/sysconfig/autofs
 mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir}
 
-touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,misc,var,tmp}
+touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp}
+
+# Do some cleanups:
+rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -152,22 +154,19 @@
 
 %files
 %defattr(644,root,root,755)
-%doc README* CHANGELOG
+%doc CHANGELOG CREDITS README*
 
 %attr(754,root,root) %config /etc/rc.d/init.d/autofs
 %dir %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.misc
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.mnt
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media
 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net
 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var
 %attr(755,root,root) %{_sbindir}/automount
-
-%dir /misc
 %dir /net
 
 %dir %{_libdir}/autofs
@@ -187,6 +186,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.70  2006/06/26 20:54:35  blues
+- moved auto.misc to auto.media; set CC and some flags (maybe more needed).
+  Some TODO done, more added, removed /misc directory.
+
 Revision 1.69  2006/05/11 23:06:22  glen
 - rel 3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/autofs.spec?r1=1.69&r2=1.70&f=u



More information about the pld-cvs-commit mailing list