From: Stefan Bund Date: Fri, 28 May 2010 21:22:30 +0000 (+0200) Subject: Debianization X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;p=udpcat.git Debianization --- diff --git a/SConstruct b/SConstruct index c547429..8d2e7fe 100644 --- a/SConstruct +++ b/SConstruct @@ -3,7 +3,7 @@ import sys, os, os.path try: sys.path.append(((_ for _ in (os.path.join(os.path.sep.join(('..' for _ in range(_))),d, 'site_scons') for d in ('','senf','Senf') for _ in range(len(os.getcwd().split('/')))) if os.path.exists(_))).next()) -except: pass +except: sys.path.append('/usr/lib/senf/site_scons') import senfutil env = Environment() diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3b713da --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +udpcat (0.1) unstable; urgency=low + + * Initial Release. + + -- Stefan Bund Thu, 27 May 2010 11:16:18 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e6c6a15 --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Source: udpcat +Section: unknown +Priority: extra +Maintainer: Stefan Bund +Build-Depends: debhelper (>= 5), scons (>= 0.97), libsenf-dev +Standards-Version: 3.7.2 + +Package: udpcat +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: simple network cat diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3ac92cf --- /dev/null +++ b/debian/copyright @@ -0,0 +1,50 @@ +This work was packaged for Debian by: + + Stefan Bund on Thu, 27 May 2010 11:16:18 +0200 + +It was downloaded from: + + + +Upstream Author(s): + + + + +Copyright: + + + + +License: + + This program 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 3 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 . + +On Debian systems, the complete text of the GNU General +Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. + +The Debian packaging is: + + Copyright (C) 2010 Stefan Bund + +# Please chose a license for your packaging work. If the program you package +# uses a mainstream license, using the same license is the safest choice. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. +# If you just want it to be GPL version 3, leave the following line in. + +and is licensed under the GPL version 3, see above. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..4cf41a3 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +udpcat usr/bin \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..bfb5508 --- /dev/null +++ b/debian/rules @@ -0,0 +1,83 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +CONCURRENCY_LEVEL ?= 1 +export CONCURRENCY_LEVEL + +destdir=$(CURDIR)/debian/tmp + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp +# Add here commands to compile the arch part of the package. + scons -j $(CONCURRENCY_LEVEL) + touch $@ + +clean: debclean +# Add here commands to clean up after the build process. + -scons -c all + +debclean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k -s -Xdebian/tmp + dh_installdirs -s +# Add here commands to install the arch part of the package into +# debian/tmp. + dh_install -X.svn -X.git -s + +binary: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress -Xhtml -Xdoclib -Xexamples + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: configure build clean debclean install binary