mirror of
https://git.freebsd.org/ports.git
synced 2025-05-27 08:26:27 -04:00
PR: ports/48883 Submitted by: Morettoni Luca <luca@morettoni.net> * Add patch for -current submitted by ume@ Quote from ume@'s mail: It seems the daemon mode of rsync depends on an IPv4-mapped IPv6 address. Since an IPv4-mapped IPv6 address is off by default on 5-CURRENT, rsync doesn't listen on IPv4. Further, rsync has a bug that it always listen on 1st entry's address of the result of getaddrinfo() call. With this patch, rsync listen on both an IPv4 and an IPv6. * Make pkg-plist respect PORTDOCS.
16 lines
350 B
Bash
16 lines
350 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
[ -x /usr/local/bin/rsync ] && [ -f /usr/local/etc/rsyncd.conf ] && \
|
|
/usr/local/bin/rsync --daemon > /dev/null && echo -n ' rsyncd'
|
|
;;
|
|
stop)
|
|
[ -r /var/run/rsyncd.pid ] && /bin/kill -9 `cat /var/run/rsyncd.pid` > /dev/null && echo -n ' rsyncd'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|