blob: 22d72394c9a96f8731532987b622a4606be7c9bf (
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
|
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=redis
pkgver=3.2.5
pkgrel=0
pkgdesc="Advanced key-value store"
url="http://redis.io/"
arch="all"
license="BSD"
depends=""
makedepends="linux-headers"
install="redis.pre-install"
pkgusers="redis"
pkggroups="redis"
source="http://download.redis.io/releases/$pkgname-$pkgver.tar.gz
redis.initd
redis.logrotate
redis.confd
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare || return 1
cd "$builddir"
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="d3d2b4dd4b2a3e07ee6f63c526b66b08 redis-3.2.5.tar.gz
e284cbbb7fcddbcb573bcd8318366316 redis.initd
ed0a5e40633e82c52c50f8bf0ed93ae0 redis.logrotate
bf204d560e41b854297c60aff8d862d5 redis.confd"
sha256sums="8509ceb1efd849d6b2346a72a8e926b5a4f6ed3cc7c3cd8d9f36b2e9ba085315 redis-3.2.5.tar.gz
0cc974108792aa49c7d2cddcb0d53c4223acdf38652ffac6b6b76e835ebcaf78 redis.initd
aa078c4757fc426710310a0688cc1ab728acb7a2afa648e28b2ecbd57d003c0d redis.logrotate
97d50b2bee2df995317b505d459c31fe4abe74e670028f0335febdd6e4e31486 redis.confd"
sha512sums="4ecf6277c8fdf4411223b9f5a5c8308829da9bd756b45de5217d469e9def8faad8c05b6348c06aef99eca9245d45abfd52df056c3c819723da66a2ca20c381dd redis-3.2.5.tar.gz
91b663f802aea9a473195940d3bf2ce3ca2af4e5b6e61a2d28ebbfe502ef2c764b574b7e87c49e60345d1a5d6b73d12920924c93b26be110c2ce824023347b6f redis.initd
6d17d169b40a7e23a0a2894eff0f3e2fe8e4461b36f2a9d45468f0abd84ea1035d679b4c0a34029bce093147f9c7bb697e843c113c17769d38c934d4a78a5848 redis.logrotate
d87aad6185300c99cc9b6a478c83bf62c450fb2c225592d74cc43a3adb93e19d8d2a42cc279907b385aa73a7b9c77b66828dbfb001009edc16a604abb2087e99 redis.confd"
|