blob: f3266db71c48a5193d69dbca2ef6ca7acc1367ce (
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
88
|
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=redis
pkgver=2.8.21
pkgrel=0
pkgdesc="Advanced key-value store"
url="http://redis.io/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends=""
install="redis.pre-install"
subpackages=""
pkgusers="redis"
pkggroups="redis"
source="http://download.redis.io/releases/$pkgname-$pkgver.tar.gz
redis.initd
redis.logrotate
redis.confd
redis-no-backtrace.patch"
_builddir="$srcdir"/$pkgname-$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
sed -i -e 's|^daemonize .*|daemonize yes|' \
-e 's|^dir .*|dir /var/lib/redis/|' \
-e 's|^logfile .*|logfile /var/log/redis/redis\.log|' \
-e 's|^pidfile .*|pidfile /var/run/redis/redis\.pid|' \
-e 's|^loglevel .*|loglevel notice|' \
redis.conf || return 1
}
build() {
cd "$_builddir"
make PREFIX=/usr \
INSTALL_BIN="$pkgdir"/usr/bin \
MALLOC=libc \
all || return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/bin
install -d -o redis -g redis \
"$pkgdir"/var/lib/redis \
"$pkgdir"/var/log/redis \
"$pkgdir"/var/run/redis \
|| return 1
install -D -m755 "$_builddir/COPYING" \
"$pkgdir/usr/share/licenses/redis/COPYING" || return 1
install -D -m755 "$srcdir/redis.initd" "$pkgdir/etc/init.d/redis" \
&& install -Dm644 "$srcdir/redis.logrotate" \
"$pkgdir/etc/logrotate.d/redis" \
&& install -Dm644 "$srcdir/redis.confd" \
"$pkgdir/etc/conf.d/redis" \
|| return 1
install -D -m644 "$_builddir/redis.conf" "$pkgdir/etc/redis.conf" \
|| retrun 1
make PREFIX=/usr \
INSTALL_BIN="$pkgdir/usr/bin" \
install || return 1
}
md5sums="d059e2bf5315e2488ab679e09e55a9e7 redis-2.8.21.tar.gz
6910862d7f07d5655c3d827a7fdddd6e redis.initd
ed0a5e40633e82c52c50f8bf0ed93ae0 redis.logrotate
bf204d560e41b854297c60aff8d862d5 redis.confd
b05226a52976efe40a23117d0b1fd9fa redis-no-backtrace.patch"
sha256sums="3da371693bb54c22da04d86cab1b871072c8d19bdfbc4f811469b7b53384c563 redis-2.8.21.tar.gz
573f75738c6e9526550334552a160b5e1fdb13fad0dbd859aaafdb2fa0f49310 redis.initd
aa078c4757fc426710310a0688cc1ab728acb7a2afa648e28b2ecbd57d003c0d redis.logrotate
97d50b2bee2df995317b505d459c31fe4abe74e670028f0335febdd6e4e31486 redis.confd
595306f5ecd12530ef80914aef48020e2683cd6bb774aa167c3c3146c1b66907 redis-no-backtrace.patch"
sha512sums="8be68e949e08fc1d143c2fd7bbd123d0c3618d8ac9333bd9ef691384364d307c85f9222b7a607668cf667e5c2193ef40d0c7167fa15b981c6ffcfe5f2e6120d8 redis-2.8.21.tar.gz
35f10b9cfcc19ebcffb418d031bdc5bcf613d5e12d601c04ad1475b0e805950cb3a2304ba6137432b0a1d9bbc788aa2d8246d036f9f96f3b9c1f7a76ffaad845 redis.initd
6d17d169b40a7e23a0a2894eff0f3e2fe8e4461b36f2a9d45468f0abd84ea1035d679b4c0a34029bce093147f9c7bb697e843c113c17769d38c934d4a78a5848 redis.logrotate
d87aad6185300c99cc9b6a478c83bf62c450fb2c225592d74cc43a3adb93e19d8d2a42cc279907b385aa73a7b9c77b66828dbfb001009edc16a604abb2087e99 redis.confd
c2ff78d0c161ef63661e09d860887d35c74049a2ae3bd00ced755fb848dfe2ae60b1f0a2b435f5c028638db5502de1475f8355bb097d8180a4d2c76def36a1cc redis-no-backtrace.patch"
|