This is a set of Debian packaging files for libRETS ( https://github.com/NationalAssociationOfRealtors/libRETS/releases ). Using these and the libRETS source, you should be able to build "librets1" and "librets-dev" packages.
This has been developed on Ubuntu 14.04, and should work on any recent Ubuntu or Debian release.
There is a PPA for Ubuntu Trusty at:
https://launchpad.net/~sysadm-k/+archive/ubuntu/librets
NOTE: This asumes the 1.6.5 version. If you are building a different version, Change the version number in the commands below and ALSO change "debian/changelog" where it says "1.6.5" to the version you are building.
Steps to build deb files:
- Download the libRETS tar file from the above URL
wget https://github.com/NationalAssociationOfRealtors/libRETS/archive/1.6.5.tar.gz
- Rename into Debian-compatible format
mv 1.6.5.tar.gz librets_1.6.5.orig.tar.gz
- Extract tar file
tar xf librets_1.6.5.orig.tar.gz
- Clone this repository to "debian" sub-directory
cd libRETS-1.6.5
git clone https://github.com/realgo/librets-package debian
- Run "debuild".
- Deb files should be in parent directory.
Sample run:
wget https://github.com/NationalAssociationOfRealtors/libRETS/archive/1.6.5.tar.gz
mv 1.6.5.tar.gz librets_1.6.5.orig.tar.gz
tar xf librets_1.6.5.orig.tar.gz
cd libRETS-1.6.5
git clone https://github.com/realgo/librets-package debian
debuild
cd ..
sudo dpkg -i *.deb
You can build the Debian package within an Ubuntu container and a Ubuntu container with the deb packages installed:
docker build -t ubuntu-librets:1.6.5 .
You can now use "ubuntu-librets" as a docker image with librets packages installed. You can also run the container to copy off the deb files from the container:
docker cp librets-packages:build/librets1_1.6.5-1realgo1_amd64.deb .
docker cp librets-packages:build/librets-dev_1.6.5-1realgo1_amd64.deb .
docker kill librets-packages```