Changeset 8525

Show
Ignore:
Timestamp:
04/13/08 00:24:28 (8 months ago)
Author:
dj
Message:

added config file, updated README

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bootscripts/contrib/lsb-v3/Makefile

    r8523 r8525  
    1919        install -d -m ${DIRMODE} ${EXTDIR}/sysconfig 
    2020        install -d -m ${DIRMODE} ${DESTDIR}/lib/lsb 
     21        install -d -m ${DIRMODE} ${EXTDIR}/lsb/state 
    2122 
    2223create-service-dir: 
     
    4950        install -m ${CONFMODE} lsb/init-functions   ${DESTDIR}/lib/lsb/ 
    5051        install -m ${CONFMODE} lsb/manage-functions ${DESTDIR}/lib/lsb/ 
     52        install -m ${CONFMODE} etc/lsb-config       ${EXTDIR}/lsb/ 
    5153        ln -sf ../init.d/network     ${EXTDIR}/rc0.d/K80network 
    5254        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc0.d/K90sysklogd 
     
    9496        install                   -m ${MODE} sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/ 
    9597 
    96 minimal: create-dirs create-service-dir 
     98minimal: create-dirs create-service-dir create-boottemp-dir 
    9799        install -m ${MODE} init.d/checkfs           ${EXTDIR}/init.d/ 
    98100        install -m ${MODE} init.d/cleanfs           ${EXTDIR}/init.d/ 
     
    110112        install -m ${CONFMODE} lsb/init-functions   ${DESTDIR}/lib/lsb/ 
    111113        install -m ${CONFMODE} lsb/manage-functions ${DESTDIR}/lib/lsb/ 
     114        install -m ${CONFMODE} etc/lsb-config       ${EXTDIR}/lsb/ 
    112115        ln -sf ../init.d/sendsignals ${EXTDIR}/rc0.d/S60sendsignals 
    113116        ln -sf ../init.d/mountfs     ${EXTDIR}/rc0.d/S70mountfs 
     
    127130        if [ ! -f ${EXTDIR}/sysconfig/rc          ]; then install -m ${CONFMODE} sysconfig/rc          ${EXTDIR}/sysconfig/; fi 
    128131 
    129 .PHONY: all create-dirs create-service-dir
     132.PHONY: all create-dirs create-service-dir create-boottemp-dir
    130133        install minimal  
    131134 
  • trunk/bootscripts/contrib/lsb-v3/README

    r8477 r8525  
    22 
    33The scripts contianed in this directory are a complete rewrite of the 
    4 boot scripts from LFS-6.1 (updated for LFS-SVN about 2007-08-20).  As is 
     4boot scripts from LFS-6.1 (updated for LFS-SVN about 2008-04-13).  As is 
    55usually the case with a rewrite, there have been many changes: 
    66 
     
    2020popular flavor of these programs is written in Python, which, as you should 
    2121know, is not installed until BLFS.  I began work on a bash implementation, 
    22 with the original intent to use GNU make to procees the generated config 
    23 file.  I later decided to use bash directly, but got lost in tab stops and 
    24 have not yet had the time to correct for the change.  The gerneral operation 
    25 of the scripts is correct, but parsing the generated temp file is broken ATM 
    26 due to the change from tab to space delimiter.  Feel free to have a hack at 
    27 the incomplete scripts I've placed in my home directory on quantum.  They 
    28 have been heavily commented, and don't actually do anything as they are not 
    29 yet working as expected.  The organize_links script is the one that does all 
    30 of the magic voodoo for a complete reorder.  Keep in mind that this script 
    31 would never be called if using only LFS/BLFS supplied scripts. 
    32 http://www.linuxfromscratch.org/~dj/lsb-scripts/ 
     22and have provided the needed functions to parse the LSB headers in the 
     23manage-functions script (insalled by default into /lib/lsb).  Unfortunately, 
     24I have yet to complete the actual install-initd and remove-initd scripts, 
     25however, I do have an almost complete install-initd kept locally.  I am 
     26currently working on a separate script to completely rewrite the symlinks 
     27should LFS default values not prove sufficient when working with scripts in 
     28the wild.  I have not included either here because they are not yet complete 
     29or thoroughly tested, and due to the development process of lfs-bootscritps, 
     30would be included in a release tarball.  If you would like to assist with the 
     31development of these scripts, or would even just like to see what I have so 
     32far, please email me privately.  Of course, feel free to write your own if you 
     33do not like the manage-fucntions script (or bash). 
    3334 
    3435Distribution Independent - this original goal for the LFS scripts has been 
     
    4546is inherited from rc's environment as opposed to being sourced everytime a 
    4647script is run.  This results in a negledgable decrease in boot time, but 
    47 it is just better in principle, assuming I didn't break anything.  For those 
    48 familiar with the previous versions, the 'stty sane' bit comes to mind, but 
    49 I haven't witnessed any dispaly amomolies, nor do I remember how to reproduce 
    50 the situation that caused us to move that into the functions file before. 
     48it is just better in principle. 
    5149 
    5250Boot Logging - The previous incarnation of the boot log didn't begin 
     
    7573LSB Functions - The previous lfs-bootscripts sourced a functions file 
    7674located at /etc/rc.d/init.d/functions.  This file has been renamed 
    77 <distro>-functions to segregate it from the old. The name is configurable 
     75$distro-functions to segregate it from the old. The name is configurable 
    7876by the rc.site configuration file.  Both old and new bootscripts can be 
    7977used simultaneously in a SYS-V setup (with proper symlinks in place). 
    80 LSB defined functions are used where possible, but the lfs-functions file 
     78LSB defined functions are used where possible, but the $distro-functions file 
    8179provides, easy to use wraper functions that 
    8280start/stop/reload/force-reload/restart programs, evaluate the numerical 
    8381LSB return values, and print status messages to the screen.  Both LFS 
    8482functions and LSB functions are documented directly in the scritps located 
    85 at /etc/init.d/lfs-functions and /lib/lsb/init-functions respectively. 
     83at /etc/init.d/$distro-functions and /lib/lsb/init-functions respectively. 
    8684 
    8785Pretier - Yeah, I just couldn't handle all the grey text...  By default, 
  • trunk/bootscripts/contrib/lsb-v3/lsb/manage-functions

    r8523 r8525  
    22# Begin /lib/lsb/manage-functions 
    33 
    4 # /lib/lsb/manage_functions contains the functions used by  
     4# /lib/lsb/manage-functions contains the functions used by  
    55# /lib/lsb/install_initd and /lib/lsb/remove_initd as well as additional helper 
    66# functions for use in programs that would provide functionality similar to 
    77# the RedHat chkconfig utility, for instance. 
    88 
    9 ## Define rcbase for now 
    10 ## (this will go away when a config file is defined) 
    11 rcbase=/etc/init.d 
     9# source the confif file 
     10. /etc/lsb/lsb-config 
    1211 
    1312# Define all arrays at script start to avoid scope issues 
     
    2726#                 Returns no value, but populates the variable ${scriptcount} # 
    2827#                 and the arrays ${scriptlist} and ${fullheaders} for use     # 
    29 #                 with other functions in this script.                        # 
     28#                 with other functions in this script.  This function is      # 
     29#                 called unconditionally at the end of this scrip and is      # 
     30#                 provided as a function only for the case that it needs to   # 
     31#                 be called again after other operations.                     # 
    3032############################################################################### 
    3133get_headers() 
     
    212214} 
    213215 
     216get_headers 
     217 
    214218# End /lib/lsb/manage-functions