Skip to content

Commit

Permalink
Add debian source packaging stuff
Browse files Browse the repository at this point in the history
Build command:
 $ debuild -us -uc -b
  • Loading branch information
mpfz0r committed Sep 29, 2015
1 parent f243a4e commit 446d7e3
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile.debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

LD=$(CC)

CFLAGS+= -Wall
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations
CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual
CFLAGS+= -Wsign-compare
LDADD= -lutil
PREFIX?= $(DESTDIR)/usr
BINDIR?= $(PREFIX)/bin
MANDIR?= $(DESTDIR)/usr/share/man/man1

CPPFLAGS+=-DHAVE_PTY_H -DHAVE_UTMP_H

.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c $< -o $@

sshdrill: sshdrill.o strlcpy.o
$(LD) -o $@ sshdrill.o strlcpy.o $(LDFLAGS) $(LDADD)

install: sshdrill
install -d $(BINDIR)
install -d $(MANDIR)
install sshdrill $(BINDIR)
install sshdrill.1 $(MANDIR)

clean:
rm -f *.o sshdrill
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sshdrill (0.9-1) stable; urgency=low

* Initial release

-- Marco Pfatschbacher <[email protected]> Fri, 25 Sep 2015 15:06:03 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
17 changes: 17 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: sshdrill
Section: net
Priority: extra
Maintainer: Marco Pfatschbacher <[email protected]>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.3

Package: sshdrill
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: a ssh wrapper to automate tunnel creation over multiple jump hosts.
Imagine you are logged into a customer's server. To get there, you had
to ssh through one or more jump hosts, and now you need to set up a
port forwarding to debug a service.
Configuring the intermediate tunnels to get a port forwarded through
all the jump hosts can be tedious. sshdrill automates this task for
you.
21 changes: 21 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Marco Pfatschbacher

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 debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Readme.md
11 changes: 11 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@

override_dh_auto_configure:
cp -f Makefile.debian Makefile

0 comments on commit 446d7e3

Please sign in to comment.