27 Sep 2014, 09:04

PHP 5.5.17 (dotdeb) pour cubietruck (armhf)

Je continue dans ma quête des paquets manquants pour mon hébergement sur ma cubietruck ; cette fois-ci, la recette à suivre pour avoir PHP 5.5.17, tel que packagé par dotdeb (pour architecture i386/amd_64) que je voulais réutiliser sur ma cubietruck.

!!! Even if based on dotdeb packaging, dotdeb is not responsible in any ways for the package you may build with this method !!!

### Add dotdeb src files in /etc/apt/sources.list.d/dotdeb.list with :
deb-src http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy-php55 all

### Add dotdeb key wget http://www.dotdeb.org/dotdeb.gpg sudo apt-key add dotdeb.gpg ### Update your package list and prepare build environment
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential fakeroot

### Get dependencies
sudo apt-get build-dep php5

### compile PHP5
cd /tmp
apt-get source --compile php5

### create own repository sudo mkdir /var/local/repository sudo echo "deb [ trusted=yes ] file:///var/local/repository ./" > /etc/apt/sources.list.d/my_own_repo.list sudo mv /tmp/*.deb /var/local/repository/ cd /var/local/repository sudo dpkg-scanpackages ./ > Packages && gzip -f Packages ### Update your package list sudo apt-get update ### install PHP sudo apt-get install php5 php5-fpm php5-cli ...
### List of generated packages :

libapache2-mod-php5_5.5.17-1~dotdeb.1_armhf.deb
libapache2-mod-php5filter_5.5.17-1~dotdeb.1_armhf.deb
libphp5-embed_5.5.17-1~dotdeb.1_armhf.deb
php5_5.5.17-1~dotdeb.1_all.deb
php5-cgi_5.5.17-1~dotdeb.1_armhf.deb
php5-cli_5.5.17-1~dotdeb.1_armhf.deb
php5-common_5.5.17-1~dotdeb.1_armhf.deb
php5-curl_5.5.17-1~dotdeb.1_armhf.deb
php5-dbg_5.5.17-1~dotdeb.1_armhf.deb
php5-dev_5.5.17-1~dotdeb.1_armhf.deb
php5-enchant_5.5.17-1~dotdeb.1_armhf.deb
php5-fpm_5.5.17-1~dotdeb.1_armhf.deb
php5-gd_5.5.17-1~dotdeb.1_armhf.deb
php5-gmp_5.5.17-1~dotdeb.1_armhf.deb
php5-imap_5.5.17-1~dotdeb.1_armhf.deb
php5-interbase_5.5.17-1~dotdeb.1_armhf.deb
php5-intl_5.5.17-1~dotdeb.1_armhf.deb
php5-ldap_5.5.17-1~dotdeb.1_armhf.deb
php5-mcrypt_5.5.17-1~dotdeb.1_armhf.deb
php5-mysql_5.5.17-1~dotdeb.1_armhf.deb
php5-mysqlnd_5.5.17-1~dotdeb.1_armhf.deb
php5-odbc_5.5.17-1~dotdeb.1_armhf.deb
php5-pgsql_5.5.17-1~dotdeb.1_armhf.deb
php5-pspell_5.5.17-1~dotdeb.1_armhf.deb
php5-readline_5.5.17-1~dotdeb.1_armhf.deb
php5-recode_5.5.17-1~dotdeb.1_armhf.deb
php5-snmp_5.5.17-1~dotdeb.1_armhf.deb
php5-sqlite_5.5.17-1~dotdeb.1_armhf.deb
php5-sybase_5.5.17-1~dotdeb.1_armhf.deb
php5-tidy_5.5.17-1~dotdeb.1_armhf.deb
php5-xmlrpc_5.5.17-1~dotdeb.1_armhf.deb
php5-xsl_5.5.17-1~dotdeb.1_armhf.deb
php-pear_5.5.17-1~dotdeb.1_all.deb

Pour ensuite avoir les extensions PECL

sudo aptitute install php-pear

Pour imageMagick en particulier

### Get dependencies
sudo apt-get install libmagickwand-dev libmagickcore-dev imagemagick

## Get debianize script
wget https://raw.githubusercontent.com/gplessis/dotdeb-php5-pecl/wheezy-php55/debianize
chmod +x debianize

### Define some variables
export DEBFULLNAME="Your Self"
export DEBEMAIL="Mail@Some.Where"

### Grab pecl archive
pecl download imagick
tar xzf imagick-3.1.2.tgz

### Build package (as root)
./debianize imagick-3.1.2

### Result
=> php5-imagick_5.5.17-1~dotdeb.1_armhf.deb