Skip to content
Afterster edited this page Dec 18, 2015 · 10 revisions

This wiki describe how to build and update the debian package for Ampache.

If you're looking for the general Ampache repository or user documentation, please see https://github.com/ampache/ampache

General

apt-get install git
git clone https://github.com/ampache/ampache-debian.git
cd ampache-debian

Rebuild latest debian package

apt-get install debhelper xz-utils po-debconf apache2-dev ucf dh-linktree php-gettext ttf-freefont git-buildpackage
./debian/create_package.sh

Generated .deb files are created in ../build/ directory.

Update upstream to latest Ampache release

  • Update upstream code
git checkout upstream
git remote add ampache https://github.com/ampache/ampache
git pull ampache master
git tag upstream/3.x.x
  • Rebase master from upstream code
git checkout master
git rebase upstream
  • Edit control and changelog with correct information and versions
DEBFULLNAME=YOURNAME DEBEMAIL=youremail@domain.com
debchange -v $VERSION --distribution unstable "Your Changes"
git commit -a -m "Update upstream version"

Install the package

apt-get install debconf apache2 php5 php5-cli php5-gmp php5-curl php5-cgi php5-mysql php5-xmlrpc php5-json libapache2-mod-php5 ucf libjs-jquery libjs-jquery-cookie libjs-jquery-jplayer libjs-jquery-ui php-gettext libphp-phpmailer ttf-freefont php-getid3 php-openid
dpkg -i ampache-common_3.x.x-1_all.deb ampache_3.x.x-1_all.deb
chown -R www-data: /usr/share/ampache/www
chown -R www-data: /etc/ampache