Skip to content

Commit

Permalink
Merge pull request #156 from Breathless/master
Browse files Browse the repository at this point in the history
.deb related fixes
  • Loading branch information
nicolasff committed Apr 3, 2012
2 parents 199d5e6 + 42e2c34 commit e1a65fd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mkdeb.sh
@@ -0,0 +1,21 @@
#!/bin/sh
phpize
./configure CFLAGS="-O3"
make clean all
DIR=`php-config --extension-dir | cut -c 2-`

rm -rf debian

mkdir -p debian
mkdir -p debian/DEBIAN
mkdir -p debian/$DIR

cp debian.control debian/DEBIAN/control

UBUNTU=`uname -v | grep -ci ubuntu`
mkdir -p debian/etc/php5/conf.d/
echo "extension=redis.so" >> debian/etc/php5/conf.d/redis.ini

cp modules/redis.so debian/$DIR
dpkg -b debian phpredis-`git describe --abbrev=0 --tags`_`uname -m`.deb
rm -rf debian/

0 comments on commit e1a65fd

Please sign in to comment.