Skip to content

Commit

Permalink
Merge pull request VrayoSystems#217 from joseguerrero/master
Browse files Browse the repository at this point in the history
Changes to make easier the .deb generation using automated tools
  • Loading branch information
grandrew committed Feb 24, 2016
2 parents a07e95f + 224863b commit 5f9c572
Show file tree
Hide file tree
Showing 12 changed files with 215 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vtrunkd (0.1-1) unstable; urgency=low

* Initial release (Closes: #205)

-- David Parunakian <[email protected]> Sat, 16 Jan 2016 00:07:40 +0300
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
15 changes: 15 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Source: vtrunkd
Section: net
Priority: optional
Maintainer: David Parunakian <[email protected]>
Build-Depends: debhelper (>= 9), autotools-dev, bison, flex, build-essential, liblzo2-dev,
zlib1g-dev, libssl-dev
Standards-Version: 3.9.5
Homepage: http://vrayo.com

Package: vtrunkd
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, udev [linux-any] | makedev [linux-any], python-pip, python-all-dev, libffi-dev
Description: Wireless channel trunking daemon
The first software inverse multiplexing solution for connected automotive,
live streaming, bonded internet and more.
60 changes: 60 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: vtrunkd
Source: <http://vrayo.com>

Files: *
Copyright: Copyright (C) 2011-2016 Vrayo Systems Ltd. team
1998-2003 Maxim Krasnyansky <[email protected]>

License:

This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.
In addition, as a special exception, the copyright holders give permission
to link the code of portions of this program with the OpenSSL library under
certain conditions as described in each individual source file, and
distribute linked combinations including the two.
.
You must obey the GNU General Public License in all respects for all of the
code used other than OpenSSL. If you modify file(s) with this exception, you
may extend this exception to your version of the file(s), but you are not
obligated to do so. If you do not wish to do so, delete this exception
statement from your version. If you delete this exception statement from all
source files in the program, then also delete it here.
.
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.

The Debian packaging is © 2006-2008, Martín Ferrari <[email protected]>
and is licensed under the GPL, see above.

Files: debian/*
Copyright: 2016 David Parunakian <[email protected]>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
4 changes: 4 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Credits
FAQ
README
README.Setup
7 changes: 7 additions & 0 deletions debian/logrotate
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/var/log/vtrunkd/*.dump {
rotate 54
daily
compress
copytruncate
missingok
}
31 changes: 31 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh
# postinst script for vtrunkd
#
# see: dh_installdeb(1)

set -e

case "$1" in
configure)

pip install cffi==1.0.0

service vtrunkd-helper start

;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
27 changes: 27 additions & 0 deletions debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh
# postrm script for vtrunkd
#
# see: dh_installdeb(1)

set -e

case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

rm -rf /var/run/vtrunkd
rm -rf /usr/lib/python2.7/dist-packages/vtrunkd_helper

;;

*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
30 changes: 30 additions & 0 deletions debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash -e
# postrm script for vtrunkd
#
# see: dh_installdeb(1)

set -e

case ${1} in

remove|upgrade|deconfigure)

service vtrunkd-helper stop || true

;;

failed-upgrade)

;;

*)

echo "prerm no reconoce el argumento '"${1}"'" >&2
exit 1
;;

esac

#DEBHELPER#

exit 0
32 changes: 32 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


# main packaging script based on dh7 syntax
%:
dh $@ --with autotools-dev

# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

override_dh_installdocs:


1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/vtrunkd2.substvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shlibs:Depends=libc6 (>= 2.15)
misc:Depends=

0 comments on commit 5f9c572

Please sign in to comment.