Skip to content

Commit

Permalink
Add Debian packaging and LGPL license.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbaturin committed Jul 2, 2019
1 parent 630f398 commit 35a429c
Show file tree
Hide file tree
Showing 8 changed files with 599 additions and 1 deletion.
502 changes: 502 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.PHONY: all

all:
# Install is just xcopy
2 changes: 1 addition & 1 deletion bin/vyos-smoketest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sys

test_dir = '/usr/libexec/vyos/tests/smoke'

tests = ['test_load_modules.py']
tests = ['test_module_load.py']

success = True

Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vyos-smoketest (1.0.0) unstable; urgency=medium

* Initial release

-- Daniil Baturin <[email protected]> Tue, 02 Jul 2019 22:29:53 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
23 changes: 23 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Source: vyos-smoketest
Section: contrib/net
Priority: extra
Maintainer: VyOS Package Maintainers <[email protected]>
Build-Depends: debhelper (>= 9),
quilt,
python3,
python3-setuptools,
quilt,
python3-lxml,
python3-nose,
python3-coverage
Standards-Version: 3.9.6

Package: vyos-smoketest
Architecture: all
Depends: python3,
${python3:Depends},
${shlibs:Depends},
${misc:Depends},
vyos-1x
Description: VyOS build sanity checking toolkit
VyOS build sanity checking toolkit
35 changes: 35 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
This package was debianized by Daniil Baturin <[email protected]> on
Tue, 02 Jul 2019 22:24:20 +0200

It's original content from the GIT repository <http://github.com/vyos/vyos-smoketest>

Upstream Author:

<[email protected]>

Copyright:

Copyright (C) 2019 VyOS maintainers and contributors
All Rights Reserved.

License:

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

This program 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.

A copy of the GNU General Public License is available as
`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution
or on the World Wide Web at `http://www.gnu.org/copyleft/lgpl.html'.
You can also obtain it by writing to the Free Software Foundation,
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
MA 02110-1301, USA.

The Debian packaging is (C) 2019, Daniil Baturin <[email protected]> and
is licensed under the GPL, see above.
28 changes: 28 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/make -f

DIR := debian/vyos-smoketest
VYOS_SBIN_DIR := usr/sbin/
VYOS_BIN_DIR := usr/bin/
VYOS_LIBEXEC_DIR := usr/libexec/vyos
VYOS_DATA_DIR := /usr/share/vyos
VYOS_CFG_TMPL_DIR := /opt/vyatta/share/vyatta-cfg/templates
VYOS_OP_TMPL_DIR := /opt/vyatta/share/vyatta-op/templates

MIGRATION_SCRIPTS_DIR := /opt/vyatta/etc/config-migrate/migrate/

SBINDIR := $(DIR)/usr/sbin

%:
dh $@ --with python3, --with quilt

override_dh_auto_build:
make all

override_dh_auto_install:
# Install smoke test scripts
mkdir -p $(DIR)/$(VYOS_LIBEXEC_DIR)/tests/smoke/
cp -r scripts/* $(DIR)/$(VYOS_LIBEXEC_DIR)/tests/smoke

# Install system programs
mkdir -p $(SBINDIR)
cp -r bin/* $(SBINDIR)

0 comments on commit 35a429c

Please sign in to comment.