aboutsummaryrefslogtreecommitdiffstats
path: root/main/rsync/APKBUILD
blob: 3ab1ce6073c27759c3bd14045c6f229fbf6ecd19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rsync
pkgver=3.0.7
pkgrel=1
pkgdesc="A file transfer program to keep remote files in sync"
url="http://samba.anu.edu.au/rsync/"
license="GPL3"
depends=
makedepends="perl"
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
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	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="b53525900817cf1ba7ad3a516ab5bfe9  rsync-3.0.7.tar.gz
8c525f7c4222f90b3f01bb7f6a2684ab  rsyncd.initd
e5e62e8cef29e09c22e8ba8152ec1751  rsyncd.confd
a99211a14af1766ba849035241cd5bb2  rsyncd.conf
169cafc6907a4c3787bb0462e9d6a5c2  rsyncd.logrotate"