debianized it
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 4 Oct 2009 08:48:46 +0000 (08:48 +0000)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 4 Oct 2009 08:48:46 +0000 (08:48 +0000)
git-svn-id: https://silmor.de/svn/misc/tdhcp@134 752dcaaa-03e5-0310-b894-97e397d490cd

debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/gencl [new file with mode: 0755]
debian/rules [new file with mode: 0755]

diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..b070064
--- /dev/null
@@ -0,0 +1,16 @@
+Source: tdhcp
+Section: main
+Priority: extra
+Maintainer: konrad <konrad@silmor.de>
+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 (file)
index 0000000..236670a
--- /dev/null
@@ -0,0 +1 @@
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..1f562b3
--- /dev/null
@@ -0,0 +1,2 @@
+README
+COPYING
diff --git a/debian/gencl b/debian/gencl
new file mode 100755 (executable)
index 0000000..68bb65d
--- /dev/null
@@ -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 <konrad@silmor.de>  ' >>$cl
+date -R >>$cl
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..f48363e
--- /dev/null
@@ -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