From 0f0d9d1f576506203fa5127c85fbe1dd3577d54f Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Wed, 5 Nov 2008 14:28:50 +0000 Subject: [PATCH] packaging debian pour openvpn-nomades --- auf-serveur-openvpn-nomades/Makefile | 17 ++++ .../debian/auf-serveur-openvpn-nomades-default.ex | 10 +++ auf-serveur-openvpn-nomades/debian/changelog | 5 ++ auf-serveur-openvpn-nomades/debian/compat | 1 + auf-serveur-openvpn-nomades/debian/control | 18 ++++ auf-serveur-openvpn-nomades/debian/copyright | 29 +++++++ auf-serveur-openvpn-nomades/debian/cron.d.ex | 4 + auf-serveur-openvpn-nomades/debian/dirs | 1 + auf-serveur-openvpn-nomades/debian/docs | 1 + auf-serveur-openvpn-nomades/debian/postinst.ex | 41 +++++++++ auf-serveur-openvpn-nomades/debian/postrm.ex | 39 +++++++++ auf-serveur-openvpn-nomades/debian/preinst.ex | 37 ++++++++ auf-serveur-openvpn-nomades/debian/prerm.ex | 40 +++++++++ auf-serveur-openvpn-nomades/debian/rules | 90 ++++++++++++++++++++ 14 files changed, 333 insertions(+) create mode 100644 auf-serveur-openvpn-nomades/Makefile create mode 100644 auf-serveur-openvpn-nomades/debian/auf-serveur-openvpn-nomades-default.ex create mode 100644 auf-serveur-openvpn-nomades/debian/changelog create mode 100644 auf-serveur-openvpn-nomades/debian/compat create mode 100644 auf-serveur-openvpn-nomades/debian/control create mode 100644 auf-serveur-openvpn-nomades/debian/copyright create mode 100644 auf-serveur-openvpn-nomades/debian/cron.d.ex create mode 100644 auf-serveur-openvpn-nomades/debian/dirs create mode 100644 auf-serveur-openvpn-nomades/debian/docs create mode 100644 auf-serveur-openvpn-nomades/debian/postinst.ex create mode 100644 auf-serveur-openvpn-nomades/debian/postrm.ex create mode 100644 auf-serveur-openvpn-nomades/debian/preinst.ex create mode 100644 auf-serveur-openvpn-nomades/debian/prerm.ex create mode 100755 auf-serveur-openvpn-nomades/debian/rules diff --git a/auf-serveur-openvpn-nomades/Makefile b/auf-serveur-openvpn-nomades/Makefile new file mode 100644 index 0000000..21595f8 --- /dev/null +++ b/auf-serveur-openvpn-nomades/Makefile @@ -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 index 0000000..24febbf --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/auf-serveur-openvpn-nomades-default.ex @@ -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 index 0000000..abe26dd --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/changelog @@ -0,0 +1,5 @@ +auf-serveur-openvpn-nomades (0.1) etch; urgency=low + + * Premiere version + + -- Thomas NOEL 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 index 0000000..7ed6ff8 --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/compat @@ -0,0 +1 @@ +5 diff --git a/auf-serveur-openvpn-nomades/debian/control b/auf-serveur-openvpn-nomades/debian/control new file mode 100644 index 0000000..47ea9c1 --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/control @@ -0,0 +1,18 @@ +Source: auf-serveur-openvpn-nomades +Section: net +Priority: extra +Maintainer: Thomas NOEL +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 index 0000000..a9ebf13 --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Thomas NOEL 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 +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 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 index 0000000..67e1076 --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/cron.d.ex @@ -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 index 0000000..2176be2 --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/dirs @@ -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 index 0000000..a711788 --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/docs @@ -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 index 0000000..ed911f0 --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/postinst.ex @@ -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: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 index 0000000..326905b --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/postrm.ex @@ -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: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# 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 index 0000000..4dc73ec --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/preinst.ex @@ -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: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# 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 index 0000000..688934b --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/prerm.ex @@ -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: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# 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 index 0000000..56d525a --- /dev/null +++ b/auf-serveur-openvpn-nomades/debian/rules @@ -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 -- 1.7.10.4