aboutsummaryrefslogtreecommitdiffstats
path: root/main/rsync/APKBUILD
blob: 2e9e64b0a60acef69b0f8b23a7ee6c5531428ad1 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rsync
pkgver=3.1.2
pkgrel=2
pkgdesc="A file transfer program to keep remote files in sync"
url="http://samba.anu.edu.au/rsync/"
arch="all"
license="GPL3"
depends=
makedepends="perl acl-dev popt-dev"
subpackages="$pkgname-doc"
source="http://$pkgname.samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz
	rsyncd.initd
	rsyncd.confd
	rsyncd.conf
	rsyncd.logrotate
	"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	./prepare-source || return 1
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	# Force IPv6 enabled, upstream bug https://bugzilla.samba.org/show_bug.cgi?id=10715
	CFLAGS="$CFLAGS -DINET6" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| 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="0f758d7e000c0f7f7d3792610fad70cb  rsync-3.1.2.tar.gz
cd237feca33f6a120fee76499652a460  rsyncd.initd
e5e62e8cef29e09c22e8ba8152ec1751  rsyncd.confd
a99211a14af1766ba849035241cd5bb2  rsyncd.conf
169cafc6907a4c3787bb0462e9d6a5c2  rsyncd.logrotate"
sha256sums="ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09c0a1c2  rsync-3.1.2.tar.gz
c70ba2400123b75c869e6e3eb25108ba21d748cc3008889112cec627515fa1de  rsyncd.initd
de758791b16b89a648c01867af7f51bc9bd44e40cbe868e439b753ff5d9572e5  rsyncd.confd
2c00ca760c26bd7d6e1d8306d48eb9b27d876516c354f6d37c458871d5ac012f  rsyncd.conf
eb54100686a253d4d14c9c67fcc20f92d88c0616692bffea899c6a8f8f980c7c  rsyncd.logrotate"
sha512sums="4c55fd69f436ead0cb5a0b7c6fdfef9bb28ddb9c63534eb619e756b118d5b08cfc5e696498650932c86e865b37e06633da947e6720ca0c27ed5c034313ae208b  rsync-3.1.2.tar.gz
27f99ee64b99bb57fe3da55fc93fefc33326175fdcad01a3d93dea3aa61daaf21cd9b1063be572fa8abc5d2d444f2e64f0f6f64241176ae53bf61f9e4cb0dca9  rsyncd.initd
8ea9a2f1fea508fa132313fa16513eac84a9ed3ce75741c42769b56bbcd3f1bd2eb8bfdfe40a6c7f619e4281e8fc8d95d1bd84096d0b64aaacf606cd614ae5b3  rsyncd.confd
5bcd339bac70d7c2efc2a028852efb9a4a78d8b7b114979763d29d0b378afceb753954c31cca5dfb05dadd88479e5c875626e297ba31a57ee3da5ecad29dbd6d  rsyncd.conf
b8d6c0bb467a5c963317dc55478d2c10874564cd264d943d4a42037e2fce134fe001fabc92af5c6b5775e84dc310b1c8da147afaa61c99e5663c36580d8651a5  rsyncd.logrotate"