Changeset 14138


Ignorieren:
Zeitstempel:
14.03.2017 00:09:46 (vor 2 Wochen)
Autor:
er13
Nachricht:

rsync:

  • add support for specifying the port to listen on
  • add inetd-support (by pasdVn)
  • refs #2852
Ort:
trunk/make/rsync/files/root
Dateien:
1 hinzugefügt
3 bearbeitet

Legende:

Unverändert
Hinzugefügt
Entfernt
  • trunk/make/rsync/files/root/etc/default.rsync/rsync.cfg

    r4772 r14138  
    11export RSYNC_ENABLED='no' 
    22export RSYNC_MAXCON=2 
    3 export RSYNC_ADDRESS='' 
     3export RSYNC_BINDADDRESS='' 
     4export RSYNC_PORT='873' 
    45export RSYNC_LOG_SYSLOG='yes' 
    56export RSYNC_LOG_FILE='/var/log/rsync.log' 
  • trunk/make/rsync/files/root/etc/default.rsync/rsync_conf

    r4772 r14138  
    99EOF 
    1010 
    11 if [ -n "$RSYNC_ADDRESS" ]; then 
     11if [ -n "$RSYNC_BINDADDRESS" ]; then 
    1212cat << EOF 
    13 address = $RSYNC_ADDRESS 
     13address = $RSYNC_BINDADDRESS 
     14EOF 
     15fi 
     16 
     17if [ -n "$RSYNC_PORT" ]; then 
     18cat << EOF 
     19port = $RSYNC_PORT 
    1420EOF 
    1521fi 
  • trunk/make/rsync/files/root/usr/lib/cgi-bin/rsync.cgi

    r6940 r14138  
    11#!/bin/sh 
    2  
    32 
    43. /usr/lib/libmodcgi.sh 
    54 
    6 check "$RSYNC_ENABLED" yes:auto "*":man 
    75check "$RSYNC_LOG_SYSLOG" yes:log_syslog_yes "*":log_syslog_no 
    86 
    97sec_begin '$(lang de:"Starttyp" en:"Start type")' 
     8cgi_print_radiogroup_service_starttype "enabled" "$RSYNC_ENABLED" "" "" 1 
     9sec_end 
    1010 
    11 cat << EOF 
    12 <p> 
    13 <input id="e1" type="radio" name="enabled" value="yes"$auto_chk><label for="e1">$(lang de:"Automatisch" en:"Automatic")</label> 
    14 <input id="e2" type="radio" name="enabled" value="no"$man_chk><label for="e2">$(lang de:"Manuell" en:"Manual")</label> 
    15 </p> 
    16 EOF 
    17  
    18 sec_end 
    1911sec_begin '$(lang de:"Einstellungen" en:"Settings")' 
    20  
    2112cat << EOF 
    2213<ul> 
     
    2516</ul> 
    2617EOF 
     18sec_end 
    2719 
    28 sec_end 
    2920sec_begin '$(lang de:"RSync" en:"RSync")' 
     21cat << EOF 
     22<p> 
     23<label for="bindaddress">$(lang de:"Bind-Adresse" en:"Bind-address"): </label> 
     24<input type="text" id="bindaddress" name="bindaddress" value="$(html "$RSYNC_BINDADDRESS")"> 
     25<br><font size="-2">$(lang de:"z.B. 192.168.178.1 oder leer lassen f&uuml;r alle" en:"e.g. 192.168.178.1 or leave blank for all")</font> 
     26</p> 
    3027 
    31 cat << EOF 
    32 <p>$(lang de:"Netzwerkschnittstelle" en:"Network interface"):<br> 
    33 <input type="text" name="address" size="40" maxlength="255" value="$(html "$RSYNC_ADDRESS")"><br> 
    34 <font size="-2">$(lang de:"z.B.: 192.168.178.1 oder leer lassen f&uuml;r alle" en:"For example: 192.168.178.1 or leave blank for all")</font></P> 
     28<p> 
     29<label for="port">$(lang de:"Port" en:"Listen-port"): </label> 
     30<input type="text" id="port" name="port" value="$(html "$RSYNC_PORT")"> 
     31</p> 
     32 
    3533<p>$(lang de:"Anzahl Verbindungen" en:"Max connections"): <input type="text" name="maxcon" size="5" maxlength="5" value="$(html "$RSYNC_MAXCON")"></p> 
     34 
    3635<p> 
    37 <input id="p1" type="radio" name="log_syslog" value="yes"$log_syslog_yes_chk><label for="x1">$(lang de:"Syslog" en:"Syslog")</label><br> 
     36<input id="p1" type="radio" name="log_syslog" value="yes"$log_syslog_yes_chk><label for="x1">$(lang de:"Syslog" en:"Syslog")</label> 
     37<br> 
    3838<input id="p2" type="radio" name="log_syslog" value="no"$log_syslog_no_chk><label for="x2">$(lang de:"Datei:&nbsp;&nbsp;" en:"File:&nbsp;&nbsp;&nbsp;") 
    3939<input type="text" name="log_file" size="45" maxlength="255" value="$(html "$RSYNC_LOG_FILE")"></label> 
    4040</p> 
    4141EOF 
    42  
    4342sec_end 
Hinweis: Hilfe zur Verwendung der Changeset-Ansicht finden Sie unter TracChangeset.