Loading...

patches@linuxfromscratch.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

r933 - trunk/hlfs archaic Wed Apr 27 22:18:29 2005

Author: archaic
Date: 2005-04-27 23:18:29 -0600 (Wed, 27 Apr 2005)
New Revision: 933

Added:
   trunk/hlfs/blfs-bootscripts-20050313-hlfs-2.patch
Log:
Added patch to blfs-bootscripts. (hlfs)

Added: trunk/hlfs/blfs-bootscripts-20050313-hlfs-2.patch
===================================================================
--- trunk/hlfs/blfs-bootscripts-20050313-hlfs-2.patch   2005-04-27 23:04:33 UTC 
(rev 932)
+++ trunk/hlfs/blfs-bootscripts-20050313-hlfs-2.patch   2005-04-28 05:18:29 UTC 
(rev 933)
@@ -0,0 +1,166 @@
+Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
+Date: 2005-05-27
+Initial Package Version: 20050313
+Upstream Status: Not submitted.
+Origin: Based on blfs-bootscripts templates.
+Description: This patch adds bootscripts for frandom, openntpd, and rdate.
+
+diff -Naur blfs-bootscripts-20050313.orig/Makefile 
blfs-bootscripts-20050313/Makefile
+--- blfs-bootscripts-20050313.orig/Makefile    2005-03-07 03:48:33.000000000 
+0000
++++ blfs-bootscripts-20050313/Makefile 2005-04-28 00:19:12.000000000 +0000
+@@ -280,6 +280,16 @@
+       ln -sf  ../init.d/openldap ${EXTDIR}/rc.d/rc5.d/S25openldap
+       ln -sf  ../init.d/openldap ${EXTDIR}/rc.d/rc6.d/K46openldap
+ 
++install-openntpd: create-dirs
++      install -m ${MODE} blfs/init.d/openntpd  ${EXTDIR}/rc.d/init.d/openntpd
++      ln -sf  ../init.d/openntpd ${EXTDIR}/rc.d/rc0.d/K46openntpd
++      ln -sf  ../init.d/openntpd ${EXTDIR}/rc.d/rc1.d/K46openntpd
++      ln -sf  ../init.d/openntpd ${EXTDIR}/rc.d/rc2.d/K46openntpd
++      ln -sf  ../init.d/openntpd ${EXTDIR}/rc.d/rc3.d/S26openntpd
++      ln -sf  ../init.d/openntpd ${EXTDIR}/rc.d/rc4.d/S26openntpd
++      ln -sf  ../init.d/openntpd ${EXTDIR}/rc.d/rc5.d/S26openntpd
++      ln -sf  ../init.d/openntpd ${EXTDIR}/rc.d/rc6.d/K46openntpd
++
+ install-portmap: create-dirs
+       install -m ${MODE} blfs/init.d/portmap    ${EXTDIR}/rc.d/init.d/
+       ln -sf  ../init.d/portmap ${EXTDIR}/rc.d/rc0.d/K49portmap
+@@ -330,6 +340,12 @@
+       ln -sf  ../init.d/random ${EXTDIR}/rc.d/rc5.d/S25random
+       ln -sf  ../init.d/random ${EXTDIR}/rc.d/rc6.d/K45random
+ 
++install-rdate: create-dirs
++      install -m ${MODE} blfs/init.d/rdate     ${EXTDIR}/rc.d/init.d/
++      ln -sf  ../init.d/rdate ${EXTDIR}/rc.d/rc3.d/S25rdate
++      ln -sf  ../init.d/rdate ${EXTDIR}/rc.d/rc4.d/S25rdate
++      ln -sf  ../init.d/rdate ${EXTDIR}/rc.d/rc5.d/S25rdate
++
+ install-rsyncd: create-dirs
+       install -m ${MODE} blfs/init.d/rsyncd     ${EXTDIR}/rc.d/init.d/
+       ln -sf  ../init.d/rsyncd ${EXTDIR}/rc.d/rc0.d/K30rsyncd
+diff -Naur blfs-bootscripts-20050313.orig/blfs/init.d/openntpd 
blfs-bootscripts-20050313/blfs/init.d/openntpd
+--- blfs-bootscripts-20050313.orig/blfs/init.d/openntpd        1970-01-01 
00:00:00.000000000 +0000
++++ blfs-bootscripts-20050313/blfs/init.d/openntpd     2005-04-28 
00:19:12.000000000 +0000
+@@ -0,0 +1,37 @@
++#!/bin/sh
++# Begin $rc_base/init.d/openntp
++
++#$LastChangedBy: robert $
++#$Date: 2005-01-18 $
++
++. /etc/sysconfig/rc
++. $rc_functions
++
++case "$1" in
++      start)
++              echo "Starting OpenNTPD..."
++              loadproc /usr/sbin/ntpd -s
++              ;;
++
++      stop)
++              echo "Stopping OpenNTPD..."
++              killproc /usr/sbin/ntpd
++              ;;
++
++      restart)
++              $0 stop
++              sleep 1
++              $0 start
++              ;;
++
++      status)
++              statusproc /usr/sbin/ntpd
++              ;;
++
++      *)
++              echo "Usage: $0 {start|stop|restart|status}"
++              exit 1
++              ;;
++esac
++
++# End $rc_base/init.d/openntp
+diff -Naur blfs-bootscripts-20050313.orig/blfs/init.d/random 
blfs-bootscripts-20050313/blfs/init.d/random
+--- blfs-bootscripts-20050313.orig/blfs/init.d/random  2004-10-02 
17:57:32.000000000 +0000
++++ blfs-bootscripts-20050313/blfs/init.d/random       2005-04-28 
00:23:55.000000000 +0000
+@@ -5,8 +5,8 @@
+ # Rewritten by Gerard Beekmans  - [EMAIL PROTECTED]
+ # Random script elements by Larry Lawrence
+ 
+-#$LastChangedBy: dj $
+-#$Date: 2004-10-02 11:57:32 -0600 (Sat, 02 Oct 2004) $
++#$LastChangedBy: robert $
++#$Date: 2005-04-27 $
+ 
+ . /etc/sysconfig/rc
+ . $rc_functions
+@@ -14,18 +14,34 @@
+ case "$1" in
+       start)
+               echo "Initializing kernel random number generator..."
+-              if [ -f /var/tmp/random-seed ]; then
+-                      /bin/cat /var/tmp/random-seed >/dev/urandom
++              if [ -f /var/cache/random-seed ]; then
++                      /bin/cat /var/cache/random-seed >/dev/urandom
++              fi
++              /bin/install -m0600 -o0 /dev/null /var/cache/random-seed
++              if [ -r /proc/sys/kernel/random/poolsize ]; then
++                      dd if=/dev/urandom of=/var/cache/random-seed count=1 \
++                              bs=$(cat /proc/sys/kernel/random/poolsize) 2> 
/dev/null
++              else
++                      dd if=/dev/urandom of=/var/cache/random-seed \
++                              count=1 bs=512 2> /dev/null
++              fi
++              if [ -c /dev/frandom ]; then
++                      /bin/dd if=/dev/frandom of=/dev/null \
++                              count=1 2>/dev/null
+               fi
+-              /bin/dd if=/dev/urandom of=/var/tmp/random-seed \
+-                      count=1 &>/dev/null
+               evaluate_retval
+               ;;
+                 
+       stop)
+               echo "Saving random seed..."
+-              /bin/dd if=/dev/urandom of=/var/tmp/random-seed \
+-                      count=1 &>/dev/null
++              /bin/install -m0600 -o0 /dev/null /etc/random-seed
++              if [ -r /proc/sys/kernel/random/poolsize ]; then
++                      dd if=/dev/urandom of=/var/cache/random-seed count=1 \
++                              bs=$(cat /proc/sys/kernel/random/poolsize) 2> 
/dev/null
++              else
++                      dd if=/dev/urandom of=/var/cache/random-seed \
++                              count=1 bs=512 2> /dev/null
++              fi
+               evaluate_retval
+               ;;
+ 
+diff -Naur blfs-bootscripts-20050313.orig/blfs/init.d/rdate 
blfs-bootscripts-20050313/blfs/init.d/rdate
+--- blfs-bootscripts-20050313.orig/blfs/init.d/rdate   1970-01-01 
00:00:00.000000000 +0000
++++ blfs-bootscripts-20050313/blfs/init.d/rdate        2005-04-28 
00:19:12.000000000 +0000
+@@ -0,0 +1,26 @@
++#!/bin/sh
++# Begin $rc_base/init.d/rdate
++
++#$LastChangedBy: robert $
++#$Date: 2005-01-21 $
++
++. /etc/sysconfig/rc
++. $rc_functions
++
++case "$1" in
++      start)
++              echo "Running rdate..."
++              if [ -f /etc/rdate.conf ]; then
++              . /etc/rdate.conf
++              loadproc /usr/bin/rdate ${RDATEOPTIONS} ${RDATESERVERS}
++              else
++              echo "/etc/rdate.conf is missing. No servers are configured."
++              fi
++              ;;
++      *)
++              echo "Usage: $0 start"
++              exit 1
++              ;;
++esac
++
++# End $rc_base/init.d/rdate