aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsyncd/APKBUILD
blob: 13dec3f0e0f897e508d804585c8c3c3826bc6e4c (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lsyncd
pkgver=2.1.5
pkgrel=5
pkgdesc="Live Syncing (Mirror) Daemon"
url="http://code.google.com/p/lsyncd/"
arch="all"
license="GPLv2+"
depends="rsync"
depends_dev=
makedepends="$depends_dev lua lua-dev"
install=""
subpackages="$pkgname-doc"
source="http://lsyncd.googlecode.com/files/lsyncd-$pkgver.tar.gz
	fix-realpath.patch
	0001-Add-missed-comma.patch
	0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
	0002-Fix-lpostcmd-prepare-to-work-with-recent-changes.patch
	0003-Add-checkgauge-in-lpostcmd.patch
	lpostcmd.patch
	CVE-2014-8990.patch
	$pkgname.initd"

_builddir="$srcdir"/lsyncd-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir/etc/lsyncd"
	cp "$_builddir"/examples/*.lua \
		"$pkgdir"/etc/lsyncd/
	install -Dm755 "$srcdir/$pkgname.initd" \
		"$pkgdir/etc/init.d/$pkgname" || return 1
	
}

md5sums="fb10547494ec5ec662fe88343047c364  lsyncd-2.1.5.tar.gz
a14565df7274ebd0b605301ca39ae885  fix-realpath.patch
d342bf626a302c5b10a1dfaa114b3608  0001-Add-missed-comma.patch
e5071ed33b4e0afb6697e9fe3ca1aa8e  0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
2265cc5b0d3833a125207e2bb774cbf7  0002-Fix-lpostcmd-prepare-to-work-with-recent-changes.patch
11da73fdade84dcb23309fed76ad2122  0003-Add-checkgauge-in-lpostcmd.patch
77a42725c786745a67d5435bf9978ad5  lpostcmd.patch
8f3d89a6594e62a3e4ed5732ce22bda7  CVE-2014-8990.patch
7cb590c3565043e68ff79b1a23252978  lsyncd.initd"
sha256sums="4a793056c4ed833edb59436d7711bb65f7e38a4d8d44371cc9dc5eb91fbc461f  lsyncd-2.1.5.tar.gz
26454c77bb005c165c10b05b232c587669d35ab98e0ac889a11923106126f98e  fix-realpath.patch
c9417a8f347b430feb760a2af09687fd1ebca07acee7fb9fc9b9e258b1c895ba  0001-Add-missed-comma.patch
ff2514730329052a75640f827b72947aa19726d9c65e5564d4aa8aeec4d21ccf  0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
d79f9dc6fc81a1dc980fbee01edf87307787f519919e995e8cc6fc31784dd9ee  0002-Fix-lpostcmd-prepare-to-work-with-recent-changes.patch
7aebb029703d03fe566b6100fb5702e90829cd56bd71e9a429a3d440a9fc00dd  0003-Add-checkgauge-in-lpostcmd.patch
1cf732eefa4be22e1a86bbd85aad5ac0903ebf5d99f97e02b233341297ed7e2c  lpostcmd.patch
0896409e11c7e2d464cdca6dbd4493477d7858fe58d7dcf5eb63a01609892fad  CVE-2014-8990.patch
0b7fc548b257cbd7264e3eb13d597bff1c25b63b2c3a2669607bb609d048810d  lsyncd.initd"
sha512sums="7be939e979525f8e4687432ffe952b1d09b8a34b4d7f92ebe86b5cddb765dbd602258682612529e9cc51305d6d001e72de9e6da62761397df23ecda30fd6a12b  lsyncd-2.1.5.tar.gz
2cebaf59d960321c2eda4ef1e0d850f62eb7eedb7ba8922a5db33a7f78c769d1a52839fbb597ae06ba576632e2abc7b92a6ba2eaf58b71b93bc877db83e25576  fix-realpath.patch
fe36e46409ff12e659d23c4243ca2ff8865f0da551d1920921e3c7a198ce0910bf73137cf0b052784aafa418702ddcfd669268b83040d90bdcf0d68948ef6d34  0001-Add-missed-comma.patch
758fce99c5f6d89ad7ac160e6b387dcc750bac6f3ab07b7f533acda642cd698b6da2861dddf9e98472f6f4b2b85688d6f251c8fee968857405cecc86988353a9  0001-Fix-lpostcmd-to-use-isPostcmd-via-rawget-as-intended.patch
313072937ba4787780daac94bc61444eb1588a289f60c8a0de37a170fc3bf1bf4bdc5ef17b41c50a26843a63943a2aca43bcca2f74f6a10c1fcac467323342a1  0002-Fix-lpostcmd-prepare-to-work-with-recent-changes.patch
8792b684de39e4aa30800f45668ab67dc55db297cf9867b18022f690b3d01b67520c55c75667ea85e2026b5c5b52a1d054abce3778632c5ef9ace8f22dfa9db7  0003-Add-checkgauge-in-lpostcmd.patch
d0f971e99726fd5b7157928f4c790b9aeaf05becd23a2898101b89567297816c866b13cddb8b91cbe87cf3e0c05e3a613896c28f2926269c21f4f857ce1de189  lpostcmd.patch
43d3b511d3242be65e3e9aece581d0caa59b43025087b5bdd856cf833ce84438bde90f926c657332414cb45393a3a78433ae2c5b4c8be652f9a4ac80891e09e7  CVE-2014-8990.patch
441b76ec944d9d74100dfca55efe871e9092b37cd49ec79a2a94e281dc0326b4def1645a827f7d3edcddc95d6e74c99621b62991396fb3693b1832c42fd86cdc  lsyncd.initd"