SPECS: webCDwriter.spec - adapterized

glen glen at pld-linux.org
Mon Oct 3 08:47:54 CEST 2005


Author: glen                         Date: Mon Oct  3 06:47:53 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- adapterized

---- Files affected:
SPECS:
   webCDwriter.spec (1.38 -> 1.39) 

---- Diffs:

================================================================
Index: SPECS/webCDwriter.spec
diff -u SPECS/webCDwriter.spec:1.38 SPECS/webCDwriter.spec:1.39
--- SPECS/webCDwriter.spec:1.38	Mon Oct  3 04:16:49 2005
+++ SPECS/webCDwriter.spec	Mon Oct  3 08:47:48 2005
@@ -1,6 +1,7 @@
 # $Revision$, $Date$
-#TODO:
-# add certificate and compiling java client
+# TODO:
+# - add certificate and compiling java client
+# - make install attempts to useradd/groupadd and possibly succeeds if ran as root
 
 %define	CDWuser		webcdwriter
 %define	CDWgroup	cdwrite
@@ -37,18 +38,19 @@
 Requires(post,preun):	/sbin/chkconfig
 Requires(postun):	/usr/sbin/userdel
 Requires(postun):	/usr/sbin/groupdel
-Requires:	cdrdao	
+Requires:	cdrdao
 Requires:	cdrtools >= 2.01
-Requires:       cdrtools-readcd >= 2.01
+Requires:	cdrtools-readcd >= 2.01
 Requires:	cdrtools-mkisofs >= 2.01
 Requires:	cdrtools-utils >= 2.01
 Requires:	mpg123
 Requires:	sox
-
 Provides:	group(%{CDWgroup})
 Provides:	user(%{CDWuser})
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_sysconfdir		/etc/CDWserver
+
 %description
 webCDwriter can be used to make a single CD-writer available to the
 users in your network. It consists of the server CDWserver and the
@@ -61,14 +63,14 @@
 network (not complete yet).
 
 %description -l pl
-webCdwriter służy do udostępniania pojedynczej nagrywarki
-dla wszystkich użytkowników sieci. Zawiera serwer CDWserver oraz
-klientów: webCDcreator i rcdrecord. CDWserver przechowuje pliki
-transmitowane przez klientów, zarządza nagrywarką używając do tego
-celu cdrecord. webCDcreator jest apletem Javy uruchamianym z
-przeglądarki (Mozilla, Netscape, Internet Explorer,...), pomagającym
-transmitować pliki. rcdrecord jest uruchamianym w powłoce klientem
-który spełnia funkcje cdrecord w sieci (jeszcze nie skończony).
+webCdwriter służy do udostępniania pojedynczej nagrywarki dla
+wszystkich użytkowników sieci. Zawiera serwer CDWserver oraz klientów:
+webCDcreator i rcdrecord. CDWserver przechowuje pliki transmitowane
+przez klientów, zarządza nagrywarką używając do tego celu cdrecord.
+webCDcreator jest apletem Javy uruchamianym z przeglądarki (Mozilla,
+Netscape, Internet Explorer,...), pomagającym transmitować pliki.
+rcdrecord jest uruchamianym w powłoce klientem który spełnia funkcje
+cdrecord w sieci (jeszcze nie skończony).
 
 %package rcdrecord
 Summary:	Network CD Writing tool - remote client
@@ -102,7 +104,8 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install 
+# looks like make install auto users $RPM_BUILD_ROOT?
+%{__make} install
 
 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_datadir}/CDWserver}
 mv $RPM_BUILD_ROOT/etc/init.d/CDWserver $RPM_BUILD_ROOT/etc/rc.d/init.d/CDWserver
@@ -172,23 +175,23 @@
 %defattr(644,root,root,755)
 %doc CREDITS ChangeLog README *.html
 %attr(754,root,root) /etc/rc.d/init.d/CDWserver
-%dir %attr(0755,%{CDWuser},%{CDWgroup}) /etc/CDWserver
+%dir %attr(755,%{CDWuser},%{CDWgroup}) %{_sysconfdir}
 /etc/pam.d/cdwserver
-/etc/CDWserver/mime.types
-%attr(600,%{CDWuser},%{CDWgroup}) %config(noreplace) %verify(not md5 mtime size) /etc/CDWserver/accounts
-%config(noreplace) %attr(640, %{CDWuser}, %{CDWgroup}) %verify(not md5 mtime size) /etc/CDWserver/config
-%attr(640,root,%{CDWgroup}) %verify(not md5 mtime size) /etc/CDWserver/config.default
-%config(noreplace) %attr(640, root, %{CDWgroup}) %verify(not md5 mtime size)/etc/CDWserver/config-root
-%config(noreplace) %verify(not md5 mtime size) /etc/CDWserver/greeting
-%config(noreplace) %verify(not md5 mtime size) /etc/CDWserver/waitForCD
-%attr(600,%{CDWuser},%{CDWgroup}) %config(noreplace) %verify(not md5 mtime size) /etc/CDWserver/password
+%{_sysconfdir}/mime.types
+%attr(600,%{CDWuser},%{CDWgroup}) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/accounts
+%config(noreplace) %attr(640, %{CDWuser}, %{CDWgroup}) %verify(not md5 mtime size) %{_sysconfdir}/config
+%attr(640,root,%{CDWgroup}) %verify(not md5 mtime size) %{_sysconfdir}/config.default
+%config(noreplace) %attr(640, root, %{CDWgroup}) %verify(not md5 mtime size)%{_sysconfdir}/config-root
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/greeting
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/waitForCD
+%attr(600,%{CDWuser},%{CDWgroup}) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/password
 %exclude %{_bindir}/files2cd
 %exclude %{_bindir}/image2cd
 %exclude %{_bindir}/rcdrecord
 
-%dir %attr(0700,%{CDWuser},%{CDWgroup}) %{_var}/log/CDWserver
-%dir %attr(0700,%{CDWuser},%{CDWgroup}) %{_var}/spool/CDWserver
-%dir %{_datadir}/CDWserver 
+%dir %attr(700,%{CDWuser},%{CDWgroup}) %{_var}/log/CDWserver
+%dir %attr(700,%{CDWuser},%{CDWgroup}) %{_var}/spool/CDWserver
+%dir %{_datadir}/CDWserver
 %attr(4754, root, %{CDWgroup}) %{_bindir}/cdrecord-dummy
 %attr(4754, root, %{CDWgroup}) %{_bindir}/cdrdao-dummy
 %attr(4754, root, %{CDWgroup}) %{_bindir}/CDWrootGate
@@ -196,10 +199,10 @@
 %attr(4754, root, %{CDWgroup}) %{_bindir}/CDWverify-dummy
 #%attr(4754, root, %{CDWgroup}) %{_bindir}/setScheduler
 
-%{_bindir}/dvd+rw-format-dummy
-%{_bindir}/growisofs-dummy
-%{_bindir}/MD5Verify.jar
-%{_bindir}/tar2rpm.sh
+%attr(755,root,root) %{_bindir}/dvd+rw-format-dummy
+%attr(755,root,root) %{_bindir}/growisofs-dummy
+%attr(755,root,root) %{_bindir}/MD5Verify.jar
+%attr(755,root,root) %{_bindir}/tar2rpm.sh
 
 %attr(755,root,root) %{_sbindir}/CDWconfig.sh
 %attr(755,root,root) %{_sbindir}/CDWpasswd
@@ -260,6 +263,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.39  2005/10/03 06:47:48  glen
+- adapterized
+
 Revision 1.38  2005/10/03 02:16:49  wolvverine
 - edit %post config
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/webCDwriter.spec?r1=1.38&r2=1.39&f=u




More information about the pld-cvs-commit mailing list