packaging debian pour openvpn-nomades
authorThomas NOEL <thomas.noel@auf.org>
Wed, 5 Nov 2008 14:28:50 +0000 (14:28 +0000)
committerThomas NOEL <thomas@thomas-pc.sn.auf>
Wed, 5 Nov 2008 14:28:50 +0000 (14:28 +0000)
14 files changed:
auf-serveur-openvpn-nomades/Makefile [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/auf-serveur-openvpn-nomades-default.ex [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/changelog [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/compat [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/control [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/copyright [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/cron.d.ex [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/dirs [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/docs [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/postinst.ex [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/postrm.ex [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/preinst.ex [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/prerm.ex [new file with mode: 0644]
auf-serveur-openvpn-nomades/debian/rules [new file with mode: 0755]

diff --git a/auf-serveur-openvpn-nomades/Makefile b/auf-serveur-openvpn-nomades/Makefile
new file mode 100644 (file)
index 0000000..21595f8
--- /dev/null
@@ -0,0 +1,17 @@
+VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
+
+all:
+
+install:
+       install -o root -g root -m 0644 auf-nomades.conf $(DESTDIR)/etc/openvpn
+
+clean:
+
+test:
+       debuild -I.git -I*.ex -b -us -uc && \
+       sudo dpkg -i ../auf-serveur-openvpn-nomades_$(VERSION)_all.deb
+
+release:
+       debuild -I.git -I*.ex && debrelease --dput $(DIST)
+
diff --git a/auf-serveur-openvpn-nomades/debian/auf-serveur-openvpn-nomades-default.ex b/auf-serveur-openvpn-nomades/debian/auf-serveur-openvpn-nomades-default.ex
new file mode 100644 (file)
index 0000000..24febbf
--- /dev/null
@@ -0,0 +1,10 @@
+# Defaults for auf-serveur-openvpn-nomades initscript
+# sourced by /etc/init.d/auf-serveur-openvpn-nomades
+# installed at /etc/default/auf-serveur-openvpn-nomades by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/auf-serveur-openvpn-nomades/debian/changelog b/auf-serveur-openvpn-nomades/debian/changelog
new file mode 100644 (file)
index 0000000..abe26dd
--- /dev/null
@@ -0,0 +1,5 @@
+auf-serveur-openvpn-nomades (0.1) etch; urgency=low
+
+  * Premiere version
+
+ -- Thomas NOEL <thomas.noel@auf.org>  Wed, 05 Nov 2008 14:21:35 +0000
diff --git a/auf-serveur-openvpn-nomades/debian/compat b/auf-serveur-openvpn-nomades/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/auf-serveur-openvpn-nomades/debian/control b/auf-serveur-openvpn-nomades/debian/control
new file mode 100644 (file)
index 0000000..47ea9c1
--- /dev/null
@@ -0,0 +1,18 @@
+Source: auf-serveur-openvpn-nomades
+Section: net
+Priority: extra
+Maintainer: Thomas NOEL <thomas.noel@auf.org>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.3
+
+Package: auf-serveur-openvpn-nomades
+Architecture: all
+Depends: openvpn
+Description: Configuration OpenVPN pour point d'acces nomade AUF
+ Mise en place d'un point d'acces au reseau prive virtuel (RPV) de l'AUF
+ via le logiciel OpenVPN.
+ .
+ Pour que ce point d'acces fonctionne il doit :
+  * etre accessible depuis une adresse IP publique (port 1194/udp)
+  * pouvoir acceder au RPV de l'AUF
+  * disposer d'un certificat AUF (obtenu via l'IGC de l'AUF)
diff --git a/auf-serveur-openvpn-nomades/debian/copyright b/auf-serveur-openvpn-nomades/debian/copyright
new file mode 100644 (file)
index 0000000..a9ebf13
--- /dev/null
@@ -0,0 +1,29 @@
+This package was debianized by Thomas NOEL <thomas.noel@auf.org> on
+Wed, 05 Nov 2008 14:18:01 +0000.
+
+It was downloaded from http://git.auf.org/ (projet auf-serveur-openvpn-nomades)
+
+Upstream Author: Thomas NOEL <thomas.noel@auf.org>
+Copyright (C) 2008 AUF
+
+License:
+
+    This package 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 2 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 package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2008, Thomas NOEL <thomas.noel@auf.org> and
+is licensed under the GPL, see above.
diff --git a/auf-serveur-openvpn-nomades/debian/cron.d.ex b/auf-serveur-openvpn-nomades/debian/cron.d.ex
new file mode 100644 (file)
index 0000000..67e1076
--- /dev/null
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the auf-serveur-openvpn-nomades package
+#
+0 4    * * *   root    auf-serveur-openvpn-nomades_maintenance
diff --git a/auf-serveur-openvpn-nomades/debian/dirs b/auf-serveur-openvpn-nomades/debian/dirs
new file mode 100644 (file)
index 0000000..2176be2
--- /dev/null
@@ -0,0 +1 @@
+etc/openvpn
diff --git a/auf-serveur-openvpn-nomades/debian/docs b/auf-serveur-openvpn-nomades/debian/docs
new file mode 100644 (file)
index 0000000..a711788
--- /dev/null
@@ -0,0 +1 @@
+auf-nomades.conf.local.ex
diff --git a/auf-serveur-openvpn-nomades/debian/postinst.ex b/auf-serveur-openvpn-nomades/debian/postinst.ex
new file mode 100644 (file)
index 0000000..ed911f0
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for auf-serveur-openvpn-nomades
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/auf-serveur-openvpn-nomades/debian/postrm.ex b/auf-serveur-openvpn-nomades/debian/postrm.ex
new file mode 100644 (file)
index 0000000..326905b
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for auf-serveur-openvpn-nomades
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/auf-serveur-openvpn-nomades/debian/preinst.ex b/auf-serveur-openvpn-nomades/debian/preinst.ex
new file mode 100644 (file)
index 0000000..4dc73ec
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for auf-serveur-openvpn-nomades
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/auf-serveur-openvpn-nomades/debian/prerm.ex b/auf-serveur-openvpn-nomades/debian/prerm.ex
new file mode 100644 (file)
index 0000000..688934b
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for auf-serveur-openvpn-nomades
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/auf-serveur-openvpn-nomades/debian/rules b/auf-serveur-openvpn-nomades/debian/rules
new file mode 100755 (executable)
index 0000000..56d525a
--- /dev/null
@@ -0,0 +1,90 @@
+#!/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.
+
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+       $(MAKE)
+       #docbook-to-man debian/auf-serveur-openvpn-nomades.sgml > auf-serveur-openvpn-nomades.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
+
+       # Add here commands to install the package into debian/auf-serveur-openvpn-nomades.
+       $(MAKE) DESTDIR=$(CURDIR)/debian/auf-serveur-openvpn-nomades 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