-
Notifications
You must be signed in to change notification settings - Fork 0
/
build
executable file
·45 lines (37 loc) · 1019 Bytes
/
build
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
#!/bin/bash
PACKAGE=redis
VERSION=6.2.5
REVISION=agora-`date +%Y%m%d-%H%M`
TARGET="$PACKAGE-$VERSION"
DEPLOY_ROOT=/home/vagrant/debian-packages
DEPLOY_PATH=$DEPLOY_ROOT/`lsb_release -cs`/$PACKAGE/
GIT_USER=`git config --global user.name`
GIT_EMAIL=`git config --global user.email`
sudo apt-get install -y autoconf && \
sudo apt-get install -y curl && \
#pushd $TARGET/deps && \
#./update-jemalloc.sh 3.6.0 && \
#pushd jemalloc && \
#./autogen.sh && \
#popd && \
#make jemalloc && \
#make lua && \
#make hiredis && \
#popd && \
pushd $TARGET && \
make && \
rm -rf /tmp/$TARGET && \
mkdir -p /tmp/$TARGET/usr/ && \
mkdir -p /tmp/$TARGET/etc/redis && \
make install PREFIX=/tmp/$TARGET/usr && \
popd && \
rm -f $TARGET.deb && \
fpm -s dir -t deb -n $PACKAGE -v $VERSION --iteration $REVISION -C /tmp/$TARGET \
-p $TARGET.deb \
-d "libc6 (>= 2.14)" \
-d "adduser" \
--maintainer "$GIT_USER <$GIT_EMAIL>" \
--after-install after-install.sh \
--after-remove after-remove.sh \
usr etc && \
echo 'DONE!'