From b20585c90d187b0e10cb9ec3acf149076353b9b6 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Sun, 4 Oct 2009 08:48:46 +0000 Subject: [PATCH] debianized it git-svn-id: https://silmor.de/svn/misc/tdhcp@134 752dcaaa-03e5-0310-b894-97e397d490cd --- debian/compat | 1 + debian/control | 16 +++++++++ debian/dirs | 1 + debian/docs | 2 + debian/gencl | 20 ++++++++++++ debian/rules | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 133 insertions(+), 0 deletions(-) create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100755 debian/gencl create mode 100755 debian/rules diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b070064 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: tdhcp +Section: main +Priority: extra +Maintainer: konrad +Build-Depends: debhelper (>= 7), subversion, subversion-tools +Standards-Version: 3.7.3 +Homepage: http://silmor.de/69 + +Package: tdhcp +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tunnel/Tiny DHCPv6 daemon and client + TDHCP is a minimal implementation of DHCPv6 that is geared towards the setup + of tunnels, and PPP links, esp. using Prefix Delegation to setup routing. + . + See also http://silmor.de/69 diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..236670a --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..1f562b3 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +COPYING diff --git a/debian/gencl b/debian/gencl new file mode 100755 index 0000000..68bb65d --- /dev/null +++ b/debian/gencl @@ -0,0 +1,20 @@ +#!/bin/sh + +cl=debian/changelog + +REV=$(svn info|grep Revision:|cut -d " " -f 2) + +while test $(echo -n $REV|wc -c) -lt 4 ; do REV="0$REV" ; done + +if test `svn stat -q|wc -l` -gt 0 ; then + REV="$REV-uc0" +fi + +echo "tdhcp (1r$REV) unstable; urgency=low" >$cl +echo >>$cl +echo " Package Generated by" `whoami`@`hostname` `date -R`>>$cl +echo >>$cl +svn2cl --stdout -i --group-by-day | sed 's/^/ /' | sed 's/\t/ /' >>$cl +echo >>$cl +echo -n ' -- konrad ' >>$cl +date -R >>$cl diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f48363e --- /dev/null +++ b/debian/rules @@ -0,0 +1,93 @@ +#!/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. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + rm -f svnrev.h + debian/gencl + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/tdhcp.sgml > tdhcp.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cp tdhcpc tdhcpd debian/tdhcp/usr/sbin + +# Add here commands to install the package into debian/tdhcp. +#$(MAKE) DESTDIR=$(CURDIR)/debian/tdhcp install + + +# 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_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples +# dh_install +# 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 + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure -- 1.7.2.5