Skip to content

Commit

Permalink
mcjoin: Add debian/ directory for building .deb package.
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
  • Loading branch information
troglobit committed Jul 13, 2014
1 parent 114274e commit 7d39b2f
Show file tree
Hide file tree
Showing 15 changed files with 163 additions and 2 deletions.
17 changes: 17 additions & 0 deletions mcjoin/Makefile
@@ -0,0 +1,17 @@
# Very simple -*-Makefile-*- for .deb generation

CC = @gcc
CPPFLAGS = -W -Wall

all: mcjoin

mcjoin: mcjoin.c

package:
dpkg-buildpackage -B -uc -tc

clean:
@rm -f mcjoin *.o

distclean: clean

13 changes: 13 additions & 0 deletions mcjoin/debian/README.Debian
@@ -0,0 +1,13 @@
mcjoin for Debian
-----------------

(Jul 13th, 2014)

mcjoin is a small multicast helper tool. It can be used to join one or
many IPv4 multicast groups on any interface. When joining on an interface
that is not the default gateway a --repeat=N argument can be used to ensure
that mcjoin re-joins the stream(s) every N seconds.

Don't use it on the Internet.

-- Joachim Nilsson <troglobit@gmail.com> Sun, 13 Jul 2014 23:26:11 +0200
6 changes: 6 additions & 0 deletions mcjoin/debian/changelog
@@ -0,0 +1,6 @@
mcjoin (1.5-1) unstable; urgency=low

* Initial release.

-- Joachim Nilsson <troglobit@gmail.com> Sun, 13 Jul 2014 23:21:36 +0200

1 change: 1 addition & 0 deletions mcjoin/debian/compat
@@ -0,0 +1 @@
7
15 changes: 15 additions & 0 deletions mcjoin/debian/control
@@ -0,0 +1,15 @@
Source: mcjoin
Section: net
Priority: extra
Maintainer: Joachim Nilsson <troglobit@gmail.com>
Build-Depends: debhelper (>= 7.0.0)
Standards-Version: 3.9.3
Homepage: https://github.com/troglobit/toolbox/mcjoin

Package: mcjoin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Provides:
Conflicts:
Description: IPv4 multicast join test tool.

17 changes: 17 additions & 0 deletions mcjoin/debian/copyright
@@ -0,0 +1,17 @@

Copyright (C) 2004 David Stevens <dlstevens()us!ibm!com>
Copyright (C) 2008-2014 Joachim Nilsson <troglobit()gmail!com>

License: ISC
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

1 change: 1 addition & 0 deletions mcjoin/debian/dirs
@@ -0,0 +1 @@
usr/sbin
Empty file added mcjoin/debian/docs
Empty file.
5 changes: 5 additions & 0 deletions mcjoin/debian/postinst
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

#DEBHELPER#
5 changes: 5 additions & 0 deletions mcjoin/debian/postrm
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

#DEBHELPER#
5 changes: 5 additions & 0 deletions mcjoin/debian/preinst
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

#DEBHELPER#
5 changes: 5 additions & 0 deletions mcjoin/debian/prerm
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

#DEBHELPER#
13 changes: 13 additions & 0 deletions mcjoin/debian/readme
@@ -0,0 +1,13 @@
mcjoin for Debian
-----------------

(Jul 13th, 2014)

mcjoin is a small multicast helper tool. It can be used to join one or
many IPv4 multicast groups on any interface. When joining on an interface
that is not the default gateway a --repeat=N argument can be used to ensure
that mcjoin re-joins the stream(s) every N seconds.

Don't use it on the Internet.

-- Troglobit <jocke@luthien>, Sun, 13 Jul 2014 23:26:43 +0200
58 changes: 58 additions & 0 deletions mcjoin/debian/rules
@@ -0,0 +1,58 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.

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

build:
dh_testdir
$(MAKE)

clean:
dh_testdir
dh_testroot
[ ! -f defs.h ] || $(MAKE) distclean
dh_clean

install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs

cp mcjoin debian/mcjoin/usr/sbin/mcjoin

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
# dh_testversion
dh_testdir
dh_testroot
# dh_installdebconf
# dh_installdocs
# dh_installexamples
# dh_installmenu
# dh_installemacsen
# dh_installinit
# dh_installcron
# dh_installmanpages
# dh_undocumented
# dh_installchangelogs ChangeLog
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb

source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
4 changes: 2 additions & 2 deletions mcjoin/mcjoin.c
@@ -1,7 +1,7 @@
/* Join a multicast group (for testing)
*
* Copyright (C) 2004 David Stevens <dlstevens()us!ibm!com>
* Copyright (c) 2008-2012 Joachim Nilsson <troglobit()gmail!com>
* Copyright (C) 2004 David Stevens <dlstevens()us!ibm!com>
* Copyright (C) 2008-2014 Joachim Nilsson <troglobit()gmail!com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down

0 comments on commit 7d39b2f

Please sign in to comment.