Changeset 3514

Show
Ignore:
Timestamp:
08/17/07 12:12:18 (5 years ago)
Author:
tg
Message:

• remove the ip-up script from openntpd: use rdate for that

restarting an ntp dæmon is exceptionally stupid, because
it needs a very long time to stabilise afterwards again

• change the default config logic for a few packages from

| foo="NO" # foo
| foo_flags="-foo -bar" # foo_flags
to
| foo_flags="NO" # e.g. "-foo -bar"
which is *much* more BSD-rc.conf-like: services which
take flags are disabled by setting these to "NO", and
almost no services still use their name as variable,
since almost all services take flags

• bump dashvers of affected packages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/busybox/Makefile

    r3512 r3514  
    99PKG_NAME:=              busybox 
    1010PKG_VERSION:=           1.4.2 
    11 PKG_RELEASE:=           32 
     11PKG_RELEASE:=           33 
    1212PKG_MD5SUM:=            b4c61fb15642be9dde20e8493788c585 
    1313DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • trunk/freewrt/package/busybox/files/syslog.init

    r3512 r3514  
    88autostop) ;; 
    99autostart) 
    10         test x"${syslogd:-NO}" = x"NO" && exit 0 
    11         exec sh $0 start 
     10        [[ $syslogd_flags = NO ]] && exit 0 
     11        exec mksh $0 really start 
    1212        ;; 
    1313start) 
  • trunk/freewrt/package/busybox/ipkg/busybox.postinst

    r3239 r3514  
    44add_rcconf network network YES 
    55add_rcconf crond crond NO 
    6 add_rcconf syslogd syslogd YES 
    7 add_rcconf syslogd_flags syslogd_flags '-C16' 
     6add_rcconf 'use "-C16" normally, "NO" to disable' syslogd_flags '-C16' 
    87add_rcconf inetd 
  • trunk/freewrt/package/dhcp/Makefile

    r3512 r3514  
    99PKG_NAME:=              dhcp 
    1010PKG_VERSION:=           3.0.5 
    11 PKG_RELEASE:=           8 
     11PKG_RELEASE:=           9 
    1212PKG_MD5SUM:=            ce5d30d4645e4eab1f54561b487d1ec7 
    1313MASTER_SITES:=          ftp://ftp.isc.org/isc/dhcp/ 
  • trunk/freewrt/package/dhcp/files/dhcpd.init

    r3512 r3514  
    66 
    77case $1 in 
    8 autostop) ;; 
    98autostart) 
    10         test x"${dhcpd:-NO}" = x"NO" && exit 0 
    11         exec sh $0 start 
     9        [[ $dhcpd_flags = NO ]] && exit 0 
     10        exec mksh $0 really start 
    1211        ;; 
    1312start) 
    1413        mkdir -p /var/state/dhcp 
    1514        touch /var/state/dhcp/dhcpd.leases 
    16         dhcpd ${dhcpd_flags} 
     15        dhcpd $dhcpd_flags 
    1716        ;; 
    18 stop) 
     17autostop|stop) 
    1918        killall dhcpd 
    2019        ;; 
  • trunk/freewrt/package/dhcp/ipkg/dhcp-server.postinst

    r3239 r3514  
    11#!/usr/bin/env mksh 
    22. $IPKG_INSTROOT/etc/functions.sh 
    3 add_rcconf dhcpd dhcpd NO 
    4 add_rcconf dhcpd_flags dhcpd_flags "eth0.1 eth1" 
     3add_rcconf 'e.g. "eth0.1 eth1"' dhcpd_flags 
  • trunk/freewrt/package/net-snmp/Makefile

    r3512 r3514  
    99PKG_NAME:=              net-snmp 
    1010PKG_VERSION:=           5.1.2 
    11 PKG_RELEASE:=           10 
     11PKG_RELEASE:=           11 
    1212PKG_MD5SUM:=            8080555ab3f90011f25d5122042d9a8d 
    1313MASTER_SITES:=          ${MASTER_SITE_SOURCEFORGE:=net-snmp/} 
  • trunk/freewrt/package/net-snmp/files/snmpd.init

    r3512 r3514  
    88autostop) ;; 
    99autostart) 
    10         test x"${snmpd:-NO}" = x"NO" && exit 0 
    11         exec sh $0 start 
     10        [[ $snmpd_flags = NO ]] && exit 0 
     11        exec mksh $0 really start 
    1212        ;; 
    1313start) 
    1414        [ -d /var/lib/snmp ] || mkdir -p /var/lib/snmp 
    15         snmpd ${snmpd_flags} 
     15        snmpd $snmpd_flags 
    1616        ;; 
    1717stop) 
  • trunk/freewrt/package/net-snmp/ipkg/snmpd.postinst

    r3239 r3514  
    11#!/usr/bin/env mksh 
    22. $IPKG_INSTROOT/etc/functions.sh 
    3 add_rcconf snmpd snmpd NO 
    4 add_rcconf snmpd_flags snmpd_flags "-Lf /dev/null -p /var/run/snmpd.pid" 
     3add_rcconf 'e.g. "-Lf /dev/null -p /var/run/snmpd.pid"' snmpd_flags 
  • trunk/freewrt/package/openntpd/Makefile

    r3512 r3514  
    99PKG_NAME:=              openntpd 
    1010PKG_VERSION:=           3.9p1 
    11 PKG_RELEASE:=           15 
     11PKG_RELEASE:=           16 
    1212PKG_MD5SUM:=            afc34175f38d08867c1403d9008600b3 
    1313 
     
    3333        ${INSTALL_DIR} ${IDIR_OPENNTPD}/usr/sbin/ 
    3434        ${INSTALL_BIN} ${WRKBUILD}/ntpd ${IDIR_OPENNTPD}/usr/sbin/ 
    35         ${INSTALL_DIR} ${IDIR_OPENNTPD}/etc/ppp/ip-up.d 
    36         ${INSTALL_BIN} ./files/ntpd.ip-up ${IDIR_OPENNTPD}/etc/ppp/ip-up.d/ntpd 
    3735 
    3836include ${TOPDIR}/mk/pkg-bottom.mk 
  • trunk/freewrt/package/openntpd/files/ntpd.init

    r3512 r3514  
    88autostop) ;; 
    99autostart) 
    10         test x"$ntpd" = x"NO" && exit 0 
    11         exec sh $0 start 
     10       [[ $ntpd_flags = NO ]] && exit 0 
     11        exec mksh $0 really start 
    1212        ;; 
    1313start) 
  • trunk/freewrt/package/openntpd/ipkg/openntpd.postinst

    r3239 r3514  
    55add_user ntp $(get_next_uid) $gid /tmp/.ntp 
    66add_service ntp 123/udp 
    7 add_rcconf openntpd ntpd NO 
    8 add_rcconf openntpd ntpd_flags -s 
     7add_rcconf 'e.g. "-s"' ntpd_flags 
  • trunk/freewrt/package/rdate/Makefile

    r3509 r3514  
    99PKG_NAME=               rdate 
    1010PKG_VERSION=            20070816 
    11 PKG_RELEASE=            1 
     11PKG_RELEASE=            2 
    1212PKG_MD5SUM=             f60a111831438c1ed382fe4f39bf5faa 
    1313MASTER_SITES=           ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/rdate/} 
  • trunk/freewrt/package/rdate/ipkg/rdate.postinst

    r3509 r3514  
    11#!/usr/bin/env mksh 
    22. $IPKG_INSTROOT/etc/functions.sh 
    3 add_rcconf rdate_flags rdate_flags '-nv 1.freewrt.pool.ntp.org' 
     3add_rcconf 'e.g. "-nv 1.freewrt.pool.ntp.org"' rdate_flags