Skip to content

Commit 15b21d7

Browse files
author
Nikolay Bogdanov
committed
Added debianization
1 parent 15b66d2 commit 15b21d7

File tree

9 files changed

+102
-0
lines changed

9 files changed

+102
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: stamp
2+
3+
stamp:
4+
touch stamp
5+
6+
install:
7+
install -d $(DESTDIR)/usr/sbin
8+
install -d $(DESTDIR)/etc
9+
cp -r $(CURDIR)/gwm $(DESTDIR)/etc
10+
install $(CURDIR)/gwm.py $(DESTDIR)/usr/sbin/gwm

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
gwm (0.1-changeme1) changeme; urgency=low
2+
3+
* Initial release
4+
5+
-- Nikolay Bogdanov <nikolay.bogdanov@flant.ru> Tue, 10 Jul 2012 16:55:12 +0400

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5

debian/control

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Source: gwm
2+
Section: unknown
3+
Priority: extra
4+
Maintainer: Nikolay Bogdanov <nikolay.bogdanov@flant.ru>
5+
Build-Depends: debhelper (>= 5)
6+
Standards-Version: 3.8.4
7+
Homepage: http://flant.ru
8+
9+
Package: gwm
10+
Architecture: all
11+
Depends: ${misc:Depends}, python-yaml, python-minimal
12+
Description: change uplink
13+
monitor uplink and change gateway

debian/copyright

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
This work was packaged for Debian by:
2+
3+
Nikolay Bogdanov <nikolay.bogdanov@flant.ru> on Tue, 10 Jul 2012 16:55:12 +0400
4+
5+
It was downloaded from:
6+
7+
http://flant.ru
8+
9+
Upstream Author(s):
10+
11+
Andrey Polovov <andrey.polovov@flant.ru>
12+
13+
Copyright:
14+
15+
Copyright (C) 2012 Andrey Polovov
16+
17+
License:
18+
19+
This program is free software: you can redistribute it and/or modify
20+
it under the terms of the GNU General Public License as published by
21+
the Free Software Foundation, either version 3 of the License, or
22+
(at your option) any later version.
23+
24+
This package is distributed in the hope that it will be useful,
25+
but WITHOUT ANY WARRANTY; without even the implied warranty of
26+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27+
GNU General Public License for more details.
28+
29+
You should have received a copy of the GNU General Public License
30+
along with this program. If not, see <http://www.gnu.org/licenses/>.
31+
32+
On Debian systems, the complete text of the GNU General
33+
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
34+
35+
The Debian packaging is:
36+
37+
Copyright (C) 2012 Nikolay Bogdanov <nikolay.bogdanov@flant.ru>
38+
39+
# Please chose a license for your packaging work. If the program you package
40+
# uses a mainstream license, using the same license is the safest choice.
41+
# Please avoid to pick license terms that are more restrictive than the
42+
# packaged work, as it may make Debian's contributions unacceptable upstream.
43+
# If you just want it to be GPL version 3, leave the following line in.
44+
45+
and is licensed under the GPL version 3, see above.
46+
47+
# Please also look if there are files or directories which have a
48+
# different copyright/license attached and list them here.

debian/rules

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
8+
9+
# Uncomment this to turn on verbose mode.
10+
#export DH_VERBOSE=1
11+
12+
%:
13+
dh $@

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

gwm/gwm.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
gateways: []
2+
3+
min_uptime: 900 #15 min
4+
5+
check_sites:
6+
- 1.1.1.1
7+
- 1.2.3.4
8+

gwm/post-replace.d/script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
#echo $1 > /tmp/current_gw.txt

0 commit comments

Comments
 (0)