Changeset 2485

Show
Ignore:
Timestamp:
05/13/07 00:36:00 (2 years ago)
Author:
tg
Message:

by request of wbx@:

make it possible for users to do
| /etc/init.d/<foo> restart
instead of having to do
| /etc/init.d/S*<foo> restart
by moving the order into a magickalâ„¢ comment.

Untested.

Also remove the svn:executable properties, because rcS and rcK will
always call them with /bin/sh, and bump dashvers accordingly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/common-adk/freewrt/docs/info.nfo/nfo-draft

    r2470 r2485  
    2020                http://download.sourcemage.org/mirror 
    2121SOURCENAME      ${PKG_NAME}-${PKG_VERSION}.tar.gz 
    22 INIT_NUM        51 
    2322SECTION         net 
    2423PRIORITY        optional 
     
    7473#HASH_3_md5     ... 
    7574# if this is missing, the init file is not copied 
    76 INITNUM         51 
    77 # note I don't use INIT_NUM - I intend INITNUM_foo to be 
    78 # used for the "foo" subpackage, for cases like openssl, 
    79 # where you build two packages at once 
    8075 
    8176# this is for the postinst file 
     
    129124HASH_md5                5728403bce309cdabcffa414e2e64052 
    130125MASTER_SITES            http://www.busybox.net/downloads/ 
    131 INITNUM                 60 
    132126MENUITEM                busybox 
    133127DESCRIPTION             The Swiss Army Knife 
     
    288282HASH_<hash>     <error>         for <hash> in ${HASHES} 
    289283HASH_<n>_<hash> <error if n .le. ${DISTFILES}> 
    290 INITNUM         <optional> 
    291284RCCONF_SYMS     0 
    292285RCCONF_<n>_TAG  <error if n .le. ${RCCONF_SYMS}> 
  • trunk/freewrt/package/aiccu/Makefile

    r1967 r2485  
    99PKG_NAME:=              aiccu 
    1010PKG_VERSION:=           20070115 
    11 PKG_RELEASE:=           1 
     11PKG_RELEASE:=           2 
    1212PKG_MD5SUM:=            c9bcc83644ed788e22a7c3f3d4021350 
    13 PKG_INIT:=              60 
    1413 
    1514PKG_SOURCE_URL:=        http://www.sixxs.net/archive/sixxs/aiccu/unix 
     
    3534        $(INSTALL_BIN) $(WRKBUILD)/unix-console/aiccu $(IDIR_AICCU)/usr/sbin/ 
    3635        $(INSTALL_BIN) ./files/aiccu.init \ 
    37                 $(IDIR_AICCU)/etc/init.d/S$(PKG_INIT)aiccu 
     36                $(IDIR_AICCU)/etc/init.d/aiccu 
    3837        $(INSTALL_DATA) $(WRKBUILD)/doc/aiccu.conf $(IDIR_AICCU)/etc/aiccu.conf 
    3938 
  • trunk/freewrt/package/aiccu/files/aiccu.init

    r1090 r2485  
    1 #!/bin/sh 
    2  
     1#FWINIT 60 
    32. /etc/rc.conf 
    43 
    5 case "$1" in 
     4case $1 in 
    65autostart) 
    76        test x"${aiccu:-NO}" = x"NO" && exit 0 
  • trunk/freewrt/package/asterisk-12/Makefile

    r2232 r2485  
    99PKG_NAME:=              asterisk 
    1010PKG_VERSION:=           1.2.17 
    11 PKG_RELEASE:=           1 
     11PKG_RELEASE:=           2 
    1212PKG_MD5SUM:=            1a41a1f4a535813b1272bae0545c7990 
    13 PKG_INIT:=              60 
    1413PKG_SOURCE_URL:=        http://ftp.digium.com/pub/asterisk/old-releases \ 
    1514                        ftp://ftp.digium.com/pub/asterisk/old-releases 
     
    8988                ${WRKINST}/etc/asterisk/musiconhold.conf 
    9089        ${INSTALL_BIN} ./files/asterisk.init \ 
    91                 ${IDIR_ASTERISK_12}/etc/init.d/S${PKG_INIT}asterisk 
     90                ${IDIR_ASTERISK_12}/etc/init.d/asterisk 
    9291 
    9392 
  • trunk/freewrt/package/asterisk-12/files/asterisk.init

    r1815 r2485  
    1 #!/bin/sh 
    2  
     1#FWINIT 60 
    32. /etc/rc.conf 
    43 
  • trunk/freewrt/package/asterisk/Makefile

    r2114 r2485  
    99PKG_NAME:=              asterisk 
    1010PKG_VERSION:=           1.4.0 
    11 PKG_RELEASE:=           1 
     11PKG_RELEASE:=           2 
    1212PKG_MD5SUM:=            b4586be9bf00d438d6a53d408ba247d4 
    13 PKG_INIT:=              60 
    1413PKG_SOURCE_URL:=        http://ftp.digium.com/pub/asterisk/ \ 
    1514                        ftp://ftp.digium.com/pub/asterisk/ 
     
    184183        $(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(WRKINST)/etc/asterisk/musiconhold.conf 
    185184        ${INSTALL_DIR} $(IDIR_ASTERISK)/etc/init.d 
    186         ${INSTALL_BIN}  ./files/asterisk.init $(IDIR_ASTERISK)/etc/init.d/S$(PKG_INIT)asterisk 
     185        ${INSTALL_BIN}  ./files/asterisk.init $(IDIR_ASTERISK)/etc/init.d/asterisk 
    187186 
    188187asterisk-pgsql-install: 
  • trunk/freewrt/package/asterisk/files/asterisk.init

    r1090 r2485  
    1 #!/bin/sh 
    2  
     1#FWINIT 60 
    32. /etc/rc.conf 
    43 
  • trunk/freewrt/package/avahi/Makefile

    r2211 r2485  
    99PKG_NAME:=              avahi 
    1010PKG_VERSION:=           0.6.16 
    11 PKG_RELEASE:=           1 
     11PKG_RELEASE:=           2 
    1212PKG_MD5SUM:=            3cbc460bbd55bae35f7b57443c063640 
    13 PKG_INIT:=              75 
    1413PKG_SOURCE_URL:=        http://avahi.org/download 
    1514 
     
    6766        ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/init.d 
    6867        ${INSTALL_BIN} ./files/avahi-daemon.init \ 
    69                 ${IDIR_AVAHI_DAEMON}/etc/init.d/S${PKG_INIT}avahi-daemon 
     68                ${IDIR_AVAHI_DAEMON}/etc/init.d/avahi-daemon 
    7069        ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/usr/sbin 
    7170        ${CP} ${WRKINST}/usr/sbin/avahi-daemon ${IDIR_AVAHI_DAEMON}/usr/sbin/ 
  • trunk/freewrt/package/avahi/files/avahi-daemon.init

    r907 r2485  
     1#FWINIT 75 
    12#!/bin/sh 
    23 
  • trunk/freewrt/package/axtls/Makefile

    r2152 r2485  
    99PKG_NAME:=              axtls 
    1010PKG_VERSION:=           1.1.0 
    11 PKG_RELEASE:=           2 
     11PKG_RELEASE:=           3 
    1212PKG_MD5SUM:=            4a834edc93f46fdca4f9c93ec665376e 
    1313PKG_SOURCE:=            axTLS-${PKG_VERSION}.tar.gz 
    1414PKG_SOURCE_URL:=        @SF/axtls 
    1515WRKDIST=                ${WRKDIR}/axTLS 
    16 PKG_INIT:=              80 
    1716 
    1817include ${TOPDIR}/mk/package.mk 
     
    4140        ${INSTALL_BIN} $(WRKBUILD)/_stage/axhttpd $(IDIR_AXHTTPD)/usr/sbin/ 
    4241        $(INSTALL_BIN) ./files/axhttpd.init \ 
    43             $(IDIR_AXHTTPD)/etc/init.d/S$(PKG_INIT)axhttpd 
     42            $(IDIR_AXHTTPD)/etc/init.d/axhttpd 
    4443 
    4544include ${TOPDIR}/mk/pkg-bottom.mk 
  • trunk/freewrt/package/axtls/files/axhttpd.init

    r2152 r2485  
    1 #!/bin/sh 
    2  
    3 # copied from DROPBEAR, modified by Clemens Helfmeier 
    4 # 09.03.2007 
    5  
     1#FWINIT 80 
    62. /etc/rc.conf 
    73 
  • trunk/freewrt/package/base-files/Makefile

    r2375 r2485  
    1010PKG_NAME:=              base-files 
    1111PKG_VERSION:=           1.0 
    12 PKG_RELEASE:=           24 
     12PKG_RELEASE:=           25 
    1313WRKDIST=                ${WRKDIR}/base-files 
    1414NO_DISTFILES:=          1 
  • trunk/freewrt/package/base-files/files/etc/init.d/boot

    r2355 r2485  
     1#FWINIT 10 
    12. /etc/functions.sh 
    23 
    3 [ -f /proc/jffs2_bbc ] && echo S >/proc/jffs2_bbc 
     4case $1 in 
     5autostart|start) 
     6        [ -f /proc/jffs2_bbc ] && echo S >/proc/jffs2_bbc 
    47 
    5 mkdir -p /var/run 
    6 mkdir -p /var/log 
    7 touch /var/log/wtmp 
    8 touch /var/log/lastlog 
    9 [ "$FAILSAFE" = true ] && touch /tmp/.failsafe 
     8       mkdir -p /var/run 
     9       mkdir -p /var/log 
     10       touch /var/log/wtmp 
     11       touch /var/log/lastlog 
     12       [ "$FAILSAFE" = true ] && touch /tmp/.failsafe 
    1013 
    11 load_modules /etc/modules /etc/modules.d/* 
     14       load_modules /etc/modules /etc/modules.d/* 
    1215 
    13 HOSTNAME=$(cat /etc/hostname) 
    14 HOSTNAME=${HOSTNAME%%.*} 
    15 echo ${HOSTNAME:=FreeWRT} >/proc/sys/kernel/hostname 
     16       HOSTNAME=$(cat /etc/hostname) 
     17       HOSTNAME=${HOSTNAME%%.*} 
     18       echo ${HOSTNAME:=FreeWRT} >/proc/sys/kernel/hostname 
    1619 
    17 if [ -f /proc/diag/led/power ]; then 
    18     echo "f" > /proc/diag/led/power 
    19 fi 
     20        if [ -f /proc/diag/led/power ]; then 
     21            echo "f" > /proc/diag/led/power 
     22        fi 
     23        ;; 
     24esac 
     25exit 0 
  • trunk/freewrt/package/base-files/files/etc/init.d/done

    r2355 r2485  
    1 sysctl -p >&- 
     1#FWINIT 98 
     2case $1 in 
     3autostart|start) 
     4        sysctl -p >&- 
    25 
    3 if [ -f /proc/diag/led/power ]; then 
    4     echo "1" > /proc/diag/led/power 
    5 fi 
     6        if [ -f /proc/diag/led/power ]; then 
     7            echo "1" > /proc/diag/led/power 
     8        fi 
     9        ;; 
     10esac 
     11exit 0 
  • trunk/freewrt/package/base-files/files/etc/init.d/hotplug

    r2165 r2485  
    1 export ACTION=remove 
    2 for d in /tmp/.*_id; do 
    3         INTERFACE="$(cat $d)" /sbin/hotplug usb 
    4 done 
     1#FWINIT 80 
     2case $1 in 
     3stop) 
     4        export ACTION=remove 
     5        for d in /tmp/.*_id; do 
     6                INTERFACE="$(cat $d)" /sbin/hotplug usb 
     7        done 
     8        ;; 
     9esac 
     10exit 0 
  • trunk/freewrt/package/base-files/files/etc/init.d/rcK

    r2165 r2485  
    11#!/bin/sh 
    22export PATH=/bin:/sbin:/usr/bin:/usr/sbin 
    3 for i in x /etc/init.d/K*; do 
    4         if test x = "$i"; then 
    5                # /etc/rc.shutdown is for rcK what /etc/rc.local is for rcS 
    6                test -e /etc/rc.shutdown && (/bin/sh /etc/rc.shutdown) 2>&1 
    7         else 
    8                 /bin/sh $i stop 2>&1 
    9         fi 
    10 done | logger -s -p 6 -t '' 
     3
     4        test -e /etc/rc.shutdown && (/bin/sh /etc/rc.shutdown) 2>&1 
     5        grep '^#FWINIT ' /etc/init.d/* | \ 
     6            sort -rnk2 | \ 
     7            while read line; do 
     8                /bin/sh ${line%%:*} stop 2>&1 
     9        done 
     10} | logger -s -p 6 -t '' & 
  • trunk/freewrt/package/base-files/files/etc/init.d/rcS

    r2165 r2485  
    11#!/bin/sh 
    22export PATH=/bin:/sbin:/usr/bin:/usr/sbin 
    3 for i in /etc/init.d/S* x; do 
    4         if test x = "$i"; then 
    5                 # if /etc/rc.local exists (it will never be created 
    6                 # by the ADK, it's only for user customisation), it 
    7                 # is run by the bourne shell after all init scripts 
    8                 # have been processed. 
    9                 test -e /etc/rc.local && (/bin/sh /etc/rc.local) 2>&1 
    10         else 
    11                 /bin/sh $i autostart 2>&1 
    12         fi 
    13 done | logger -s -p 6 -t '' & 
     3
     4        grep '^#FWINIT ' /etc/init.d/* | \ 
     5            sort -nk2 | \ 
     6            while read line; do 
     7                /bin/sh ${line%%:*} autostart 2>&1 
     8        done 
     9        test -e /etc/rc.local && (/bin/sh /etc/rc.local) 2>&1 
     10} | logger -s -p 6 -t '' & 
  • trunk/freewrt/package/bind/Makefile

    r1834 r2485  
    99PKG_NAME:=              bind 
    1010PKG_VERSION:=           9.3.4 
    11 PKG_RELEASE:=           1 
     11PKG_RELEASE:=           2 
    1212PKG_MD5SUM:=            df5417e7e7cf017fa28b65d0a3d6e999 
    13 PKG_INIT:=              60 
    1413PKG_SOURCE_URL:=        ftp://ftp.isc.org/isc/bind9/${PKG_VERSION}/ 
    1514 
     
    4847        ${CP} ./files/bind ${IDIR_BIND_SERVER}/etc 
    4948        ${INSTALL_BIN} ./files/named.init \ 
    50                 ${IDIR_BIND_SERVER}/etc/init.d/S${PKG_INIT}named 
     49                ${IDIR_BIND_SERVER}/etc/init.d/named 
    5150        find ${IDIR_BIND_SERVER}/etc/bind -name ".svn" | xargs rm -rf 
    5251        # nsupdate 
  • trunk/freewrt/package/bind/files/named.init

    • Property svn:executable set
    r1090 r2485  
    1 #!/bin/sh 
    2  
     1#FWINIT 60 
    32. /etc/rc.conf 
    43 
  • trunk/freewrt/package/bitchx/Makefile

    r1686 r2485  
    99PKG_NAME:=              bitchx 
    1010PKG_VERSION:=           1.1 
    11 PKG_RELEASE:=           3 
     11PKG_RELEASE:=           4 
    1212PKG_MD5SUM:=            611d2dda222f00c10140236f4c331572 
    13 PKG_INIT:=              90 
    1413PKG_SOURCE_URL:=        http://bitchx.org/files/source/ 
    1514PKG_SOURCE:=            ircii-pana-${PKG_VERSION}-final.tar.gz 
     
    4847        ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_BITCHX}/usr/bin 
    4948        ${CP} ${WRKINST}/usr/lib/* ${IDIR_BITCHX}/usr/lib 
    50         ${INSTALL_BIN} ./files/bitchx.init ${IDIR_BITCHX}/etc/init.d/S${PKG_INIT}bitchx 
     49        ${INSTALL_BIN} ./files/bitchx.init ${IDIR_BITCHX}/etc/init.d/bitchx 
    5150 
    5251include ${TOPDIR}/mk/pkg-bottom.mk 
  • trunk/freewrt/package/bitchx/files/bitchx.init

    • Property svn:executable set
    r1090 r2485  
    1 #!/bin/sh 
    2  
     1#FWINIT 90 
    32. /etc/rc.conf 
    43 
  • trunk/freewrt/package/bitlbee/Makefile

    r1686 r2485  
    99PKG_NAME:=              bitlbee 
    1010PKG_VERSION:=           1.0.1 
    11 PKG_RELEASE:=           1 
     11PKG_RELEASE:=           2 
    1212PKG_MD5SUM:=            a4d7daa9b64898dd41a3a6d104692d9a 
    13 PKG_INIT:=              80 
    1413PKG_SOURCE_URL:=        http://get.bitlbee.org/src \ 
    1514                        http://get.bitlbee.be/src \ 
     
    6362        ${INSTALL_BIN} ${WRKINST}/usr/sbin/bitlbee ${IDIR_BITLBEE}/usr/sbin 
    6463        ${INSTALL_BIN} ./files/bitlbee.init \ 
    65                 ${IDIR_BITLBEE}/etc/init.d/${PKG_INIT}bitlbee 
     64                ${IDIR_BITLBEE}/etc/init.d/bitlbee 
    6665 
    6766include ${TOPDIR}/mk/pkg-bottom.mk 
  • trunk/freewrt/package/bitlbee/files/bitlbee.init

    • Property svn:executable set
    r1686 r2485  
    1 #!/bin/sh 
    2 mkdir -p /var/lib/bitlbee 
    3 bitlbee -D 
     1#FWINIT 80 
     2. /etc/rc.conf 
     3 
     4case $1 in 
     5autostart) 
     6        test x"${bitlbee:-NO}" = x"NO" && exit 0 
     7        exec $0 start 
     8        ;; 
     9start) 
     10        mkdir -p /var/lib/bitlbee 
     11        bitlbee -D 
     12        ;; 
     13stop) 
     14        killall bitlbee 
     15        ;; 
     16restart) 
     17        $0 stop 
     18        $0 start 
     19        ;; 
     20*) 
     21        echo "Usage: $0 {start | stop | restart}" 
     22        exit 1 
     23        ;; 
     24esac 
     25exit $? 
  • trunk/freewrt/package/bluez-utils/Makefile

    r2408 r2485  
    99PKG_NAME:=              bluez-utils 
    1010PKG_VERSION:=           3.9 
    11 PKG_RELEASE:=           1 
     11PKG_RELEASE:=           2 
    1212PKG_MD5SUM:=            023a5e6a436f86a28baeec91e4c62736 
    13 PKG_INIT:=              90 
    1413PKG_SOURCE_URL:=        http://bluez.sourceforge.net/download 
    1514 
     
    5049        ${INSTALL_DIR} ${IDIR_BLUEZ_UTILS}/etc/init.d 
    5150        ${INSTALL_BIN} ./files/bluez.init \ 
    52                 ${IDIR_BLUEZ_UTILS}/etc/init.d/S${PKG_INIT}bluez 
     51                ${IDIR_BLUEZ_UTILS}/etc/init.d/bluez 
    5352 
    5453include ${TOPDIR}/mk/pkg-bottom.mk 
  • trunk/freewrt/package/bluez-utils/files/bluez.init

    • Property svn:executable deleted
    r1186