Skip to content
/ RESTdeb Public
forked from kerphi/RESTdeb

RESTful interface to debian repository

Notifications You must be signed in to change notification settings

korby/RESTdeb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

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/

About

RESTful interface to debian repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published