Skip to content

Commit

Permalink
initial non working skeleton for building a .deb #38
Browse files Browse the repository at this point in the history
  • Loading branch information
infothrill committed Feb 11, 2015
1 parent 9548a9d commit 043257a
Show file tree
Hide file tree
Showing 17 changed files with 106 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.5:abdb87eb-3c65-42db-ac48-bfec60597497
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1423691244
1 change: 1 addition & 0 deletions packaging/.vagrant/machines/default/virtualbox/id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
abdb87eb-3c65-42db-ac48-bfec60597497
1 change: 1 addition & 0 deletions packaging/.vagrant/machines/default/virtualbox/index_uuid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7833717568644a2f9a4cfa2cc6a890bf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"/Users/pk/src/git/python-dyndnsc/packaging","disabled":false}}}
18 changes: 18 additions & 0 deletions packaging/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "puphpet/debian75-x64"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

config.vm.provision "shell", path: "provision.sh"

end
20 changes: 20 additions & 0 deletions packaging/debian/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Dyndnsc Debian Package
======================

To create a DEB package:

sudo apt-get install python-setuptools
sudo apt-get install build-essential devscripts debhelper
git clone git://github.com/infothrill/python-dyndnsc.git
cd python-dyndnsc
# TODO:
make deb

The debian package file will be placed in the `../` directory. This can then be added to an APT repository or installed with `dpkg -i <package-file>`.

Note that `dpkg -i` does not resolve dependencies.

To install the DEB package and resolve dependencies:

sudo dpkg -i <package-file>
sudo apt-get -fy install
5 changes: 5 additions & 0 deletions packaging/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dyndnsc (0.4) unstable; urgency=low

* 0.4 release (PENDING)

-- Paul Kremer <pkremer@spurious.biz> Wed, 11 Feb 2015 04:29:00 -0500
1 change: 1 addition & 0 deletions packaging/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
16 changes: 16 additions & 0 deletions packaging/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: dyndnsc
Section: admin
Priority: optional
Standards-Version: 3.9.3
Maintainer: Paul Kremer <paul@spurious.biz>
Build-Depends: cdbs, debhelper (>= 5.0.0), python, python-support, python-setuptools
Homepage: https://github.com/infothrill/python-dyndnsc

Package: dyndnsc
Architecture: all
Depends: python, python-support (>= 0.90), ${misc:Depends}
Description: dynamic dns update client
dyndnsc is both a script to be used directly as well as a re-usable and
hopefully extensible python package for doing updates over http to dynamic
dns services. This package currently focuses on supporting different http
based update protocols.
24 changes: 24 additions & 0 deletions packaging/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This package was debianized by Paul Kremer <paul@spurious.biz>.

It was downloaded from https://github.com/infothrill/python-dyndnsc.git

Copyright: Paul Kremer <paul@spurious.biz>

License:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

1 change: 1 addition & 0 deletions packaging/debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.rst
3 changes: 3 additions & 0 deletions packaging/debian/dyndnsc.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
etc/dyndnsc
usr/lib/python2.7/site-packages
usr/share/dyndnsc
3 changes: 3 additions & 0 deletions packaging/debian/dyndnsc.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docs/man/man1/*.1 usr/share/man/man1
bin/* usr/bin
example.ini etc/dyndnsc
1 change: 1 addition & 0 deletions packaging/debian/pycompat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2
6 changes: 6 additions & 0 deletions packaging/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/make -f
# -- makefile --

include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_SYSTEM = pysupport
include /usr/share/cdbs/1/class/python-distutils.mk
3 changes: 3 additions & 0 deletions packaging/provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

sudo apt-get install python-setuptools build-essential devscripts debhelper

0 comments on commit 043257a

Please sign in to comment.