Rsync
From CBLFS
Jump to navigationJump to searchDownload Source: | http://samba.anu.edu.au/ftp/rsync/rsync-2.6.9.tar.gz |
---|
Contents
Dependencies
Optional
- Popt (Has an included version)
Creating the nobody/nogroup User/Group
groupadd -g 65533 nogroup && groupadd -g 65534 nobody && useradd -c "Nobody" -d /dev/null \ -u 65534 -g nobody -s /bin/false nobody
Non-Multilib
Compile the package:
./configure --prefix=/usr && make
Install the package:
make install
Multilib
This package does not provide any libraries so only one installation is needed.
32Bit
ToDo
N32
ToDo
64Bit
ToDo
Configuring
BootScript
Create the bootscript:
cat > /etc/rc.d/init.d/rsyncd << "EOF" #!/bin/sh # Begin $rc_base/init.d/rsyncd . /etc/sysconfig/rc . ${rc_functions} case "${1}" in start) boot_mesg "Starting The RSYNC Daemon..." loadproc /usr/sbin/rsyncd ;; stop) boot_mesg "Stopping The RSYNC Daemon..." killproc /usr/sbin/rsyncd ;; restart) ${0} stop sleep 1 ${0} start ;; status) statusproc /usr/sbin/rsyncd ;; *) echo "Usage: ${0} {start|stop|restart|status}" exit 1 ;; esac # End $rc_base/init.d/rsyncd EOF chmod -v 754 /etc/rc.d/init.d/rsyncd
Link it into the runlevels:
for link in /etc/rc.d/rc{{0,1,6}.d/K30,{2,3,4,5}.d/S30}rsyncd; do ln -sfv ../init.d/rsyncd $link; done