mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
extra/rsync: new aport
This commit is contained in:
parent
7b100dd70a
commit
c5d0d2a314
36
extra/rsync/APKBUILD
Normal file
36
extra/rsync/APKBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=rsync
|
||||
pkgver=3.0.5
|
||||
pkgrel=0
|
||||
pkgdesc="A file transfer program to keep remote files in sync"
|
||||
url="http://samba.anu.edu.au/rsync/"
|
||||
license="GPL3"
|
||||
depends="uclibc"
|
||||
source="http://$pkgname.samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz
|
||||
rsyncd.initd
|
||||
rsyncd.confd
|
||||
rsyncd.conf
|
||||
rsyncd.logrotate
|
||||
"
|
||||
subpackages="$pkgname-doc"
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
./prepare-source || return 1
|
||||
./configure --prefix=/usr \
|
||||
--with-included-popt \
|
||||
--disable-acl-support \
|
||||
--disable-xattr-support || return 1
|
||||
make || return 1
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
install -D -m 755 ../rsyncd.initd ${pkgdir}/etc/init.d/rsyncd
|
||||
install -D -m 644 ../rsyncd.conf ${pkgdir}/etc/rsyncd.conf
|
||||
install -D -m 644 ../rsyncd.confd ${pkgdir}/etc/conf.d/rsyncd
|
||||
install -D -m 644 ../rsyncd.logrotate ${pkgdir}/etc/logrotate.d/rsyncd
|
||||
}
|
||||
|
||||
md5sums="a130e736c011572cb423b6245e97fc4b rsync-3.0.5.tar.gz
|
||||
492d13dbba49a9e7c77c89d01b4f617a rsyncd.initd
|
||||
e5e62e8cef29e09c22e8ba8152ec1751 rsyncd.confd
|
||||
a99211a14af1766ba849035241cd5bb2 rsyncd.conf
|
||||
169cafc6907a4c3787bb0462e9d6a5c2 rsyncd.logrotate"
|
||||
10
extra/rsync/rsyncd.conf
Normal file
10
extra/rsync/rsyncd.conf
Normal file
@ -0,0 +1,10 @@
|
||||
# /etc/rsyncd.conf
|
||||
|
||||
# Minimal configuration file for rsync daemon
|
||||
# See rsync(1) and rsyncd.conf(5) man pages for help
|
||||
|
||||
# This line is required by the /etc/init.d/rsyncd script
|
||||
pid file = /var/run/rsyncd.pid
|
||||
use chroot = yes
|
||||
read only = yes
|
||||
|
||||
5
extra/rsync/rsyncd.confd
Normal file
5
extra/rsync/rsyncd.confd
Normal file
@ -0,0 +1,5 @@
|
||||
# /etc/conf.d/rsyncd: config file for /etc/init.d/rsyncd
|
||||
|
||||
# see man pages for rsync or run `rsync --help`
|
||||
# for valid cmdline options
|
||||
#RSYNC_OPTS=""
|
||||
23
extra/rsync/rsyncd.initd
Normal file
23
extra/rsync/rsyncd.initd
Normal file
@ -0,0 +1,23 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d,v 1.5 2007/02/23 11:33:59 uberlord Exp $
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting rsyncd"
|
||||
start-stop-daemon --start --exec /usr/bin/rsync \
|
||||
--pidfile /var/run/rsyncd.pid \
|
||||
-- --daemon ${RSYNC_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping rsyncd"
|
||||
start-stop-daemon --stop --exec /usr/bin/rsync \
|
||||
--pidfile /var/run/rsyncd.pid
|
||||
eend $?
|
||||
}
|
||||
9
extra/rsync/rsyncd.logrotate
Normal file
9
extra/rsync/rsyncd.logrotate
Normal file
@ -0,0 +1,9 @@
|
||||
/var/log/rsync.log {
|
||||
compress
|
||||
maxage 365
|
||||
rotate 7
|
||||
size=+1024k
|
||||
notifempty
|
||||
missingok
|
||||
copytruncate
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user