Specf file update

Steve G <[email protected]> Mon, 9 Feb 2004 16:37:21 -0800 (PST)
Newsgroups gmane.network.zeroconf.workers
Message-ID <[email protected]>
--0-1374877115-1076373441=:61668
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

Hi,

Attached is a patch that gets the rpm spec file finalized. I
noticed a file named svc in the servers directory. The spec file
now renames that nad installs that. It also uses the -P option to
dump the master config file. Now you do not need to package
anything that's not in cvs. It has been tested on a RH 9 system
and works perfect.

However, a Mandrake system still does not build because it still
thinks the distro is REDHAT. Something else changed in the
makefiless. I noticed that it now runs configure twice. It didn't
do that Sunday.

Question: Is there a conflict between bind & tmdns on the same
system? If there is, I need to add a conflict: bind to the rpm
spec file.

Please apply the attached patch.

-Steve Grubb

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
--0-1374877115-1076373441=:61668
Content-Type: text/plain; name="tmdns-patch10.txt"
Content-Description: tmdns-patch10.txt
Content-Disposition: inline; filename="tmdns-patch10.txt"

diff -ur tmdns/init.d/init.REDHAT tmdns.d/init.d/init.REDHAT
--- tmdns/init.d/init.REDHAT	2004-02-09 06:04:08.000000000 -0500
+++ tmdns.d/init.d/init.REDHAT	2004-02-09 18:37:16.000000000 -0500
@@ -37,10 +37,10 @@
 prog="tmdns"
 
 start() {
-    echo -n $"Starting: " $prog
+    # Start daemon.
+    echo -n $"Starting $prog:"
     daemon $prog "$EXTRAOPTIONS"
     RETVAL=$?
-    echo
     if [ $RETVAL -eq 0 ]; then
 	touch /var/lock/subsys/$prog
 	/usr/sbin/update-resolvrdv
@@ -50,14 +50,14 @@
 }
 
 stop() {
-    echo -n $"Stopping: " $prog
+    # Stop daemon.
+    echo -n $"Stopping $prog:"
     killproc $prog
     RETVAL=$?
     if [ $RETVAL -eq 0 ]; then
 	rm -f /var/lock/subsys/$prog
 	/usr/sbin/update-resolvrdv -r
     fi
-    echo
     return $RETVAL
 }
 
@@ -70,7 +70,6 @@
     echo -n $"Reloading configuration: "
     killproc $prog  -HUP
     RETVAL=$?
-    echo
     return $RETVAL
 }
 
diff -ur tmdns/tmdns.spec tmdns.d/tmdns.spec
--- tmdns/tmdns.spec	2004-02-09 06:04:08.000000000 -0500
+++ tmdns.d/tmdns.spec	2004-02-09 18:29:39.000000000 -0500
@@ -34,6 +34,8 @@
 mkdir -p %buildroot%{_initrddir}
 
 # Manually install config files
+./server/tmdns -P | sed 's/username = daemon/username = tmdns/' > tmdns.conf
+mv server/svc tmdns.services
 install -m644 {tmdns.conf,tmdns.services} %buildroot%{_sysconfdir}
 
 # Manually install init script

--0-1374877115-1076373441=:61668--


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn