SPECS: socat.spec - included example config

blues blues at pld-linux.org
Wed Feb 4 21:44:35 CET 2009


Author: blues                        Date: Wed Feb  4 20:44:35 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- included example config

---- Files affected:
SPECS:
   socat.spec (1.25 -> 1.26) 

---- Diffs:

================================================================
Index: SPECS/socat.spec
diff -u SPECS/socat.spec:1.25 SPECS/socat.spec:1.26
--- SPECS/socat.spec:1.25	Wed Feb  4 21:32:14 2009
+++ SPECS/socat.spec	Wed Feb  4 21:44:30 2009
@@ -64,6 +64,13 @@
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
+cat >> $RPM_BUILD_ROOT/etc/%{name}/example.conf <<'EOF'
+# socat [options] <bi-address> <bi-address>
+OPTIONS=""
+BIADDRESS1="UNIX-LISTEN:/var/lib/mysql/mysql.sock,fork,user=mysql,group=mysql,mode=777"
+BIADDRESS2="TCP:localhost:3306"
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -81,8 +88,9 @@
 %defattr(644,root,root,755)
 %doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ README SECURITY
 %dir /etc/%{name}
-%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/*.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
 %attr(755,root,root) %{_bindir}/*
 %dir /var/run/%{name}
 %{_mandir}/man?/*
@@ -93,6 +101,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26  2009/02/04 20:44:30  blues
+- included example config
+
 Revision 1.25  2009/02/04 20:32:14  blues
 - rel.2 - require socat with --makepid option
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/socat.spec?r1=1.25&r2=1.26&f=u



More information about the pld-cvs-commit mailing list