Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.12 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.12 KB

RESTdeb

RESTdeb is a RESTful interface to debian repositories. You can use it to automate debian package publication. The code is written in PHP. It depends on Silex framework and on debian system commands (dpkg-deb and dpkg-scanpackages).

Installation

apt-get install apache2 libapache2-mod-php5 dpkg dpkg-dev php-pear
echo 'suhosin.executor.include.whitelist="phar"' > /etc/php5/apache2/conf.d/restdeb.ini
wget http://silex-project.org/get/silex.phar -O /var/www/silex.phar
pear channel-discover pear.respear.net
pear install respear/atomwriter
cd /var/www
git init
git remote add origin git://github.com/kerphi/RESTdeb.git
git pull origin master
echo "<?php \$GLOBALS['title'] = 'My debian repository';" > /var/www/config.php

Usage

This example assumes that your HTTP server where is located your debian repository is http://myserver/debian/ and that this server is protected with login and password. mypackage.deb is the package you wish to deploy on this repository.

cat mypackage.deb | curl -u login:password -X POST --data-binary @- http://myserver/debian/