forked from gilles/redis-munin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (21 loc) · 851 Bytes
/
Makefile
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
all: munin-plugins-redis.deb
VERSION := $(shell git describe)
munin-plugins-redis.deb: control Makefile
rm -rf fs-mpr
mkdir -p fs-mpr/DEBIAN/
cp control fs-mpr/DEBIAN/control
sed -i s/VERSION/${VERSION}/ fs-mpr/DEBIAN/control
mkdir -p fs-mpr/usr/share/munin/plugins
cp redis_* fs-mpr/usr/share/munin/plugins/
chmod 755 fs-mpr/usr/share/munin/plugins/redis_*
fakeroot dpkg -b fs-mpr munin-plugins-redis_${VERSION}_all.deb
ln -sf munin-plugins-redis_${VERSION}_all.deb munin-plugins-redis.deb
control:
echo "Package: munin-plugins-redis" > control
echo "Version: VERSION" >> control
echo "Architecture: all" >> control
echo "Maintainer: Shish <[email protected]>" >> control
echo "Depends: ruby, python, python-redis" >> control
echo "Description: some munin plugins to monitor redis instances" >> control
clean:
rm -rf fs-* *.deb