diff options
author | Martin Willi <martin@strongswan.org> | 2008-08-27 13:51:05 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-08-27 13:51:05 +0000 |
commit | 018ae7c1aa68047c49f446c5d26d8433038c74eb (patch) | |
tree | 8b9718611ebc8e526d7aaa9850f8a63c88ccd5cd | |
parent | ee210ca353902592cf60e3e7a1c7b82e2b5cec1d (diff) | |
download | strongswan-018ae7c1aa68047c49f446c5d26d8433038c74eb.tar.bz2 strongswan-018ae7c1aa68047c49f446c5d26d8433038c74eb.tar.xz |
build scripts for ubuntu NetworkManager packages
-rw-r--r-- | build/network-manager-strongswan/debian/changelog | 6 | ||||
-rw-r--r-- | build/network-manager-strongswan/debian/compat | 1 | ||||
-rw-r--r-- | build/network-manager-strongswan/debian/control | 28 | ||||
-rw-r--r-- | build/network-manager-strongswan/debian/copyright | 27 | ||||
-rw-r--r-- | build/network-manager-strongswan/debian/docs | 0 | ||||
-rw-r--r-- | build/network-manager-strongswan/debian/network-manager-strongswan.postinst | 15 | ||||
-rwxr-xr-x | build/network-manager-strongswan/debian/rules | 14 | ||||
-rw-r--r-- | build/strongswan-nm/debian/changelog | 18 | ||||
-rw-r--r-- | build/strongswan-nm/debian/control | 15 | ||||
-rw-r--r-- | build/strongswan-nm/debian/copyright | 10 | ||||
-rwxr-xr-x | build/strongswan-nm/debian/rules | 59 |
11 files changed, 193 insertions, 0 deletions
diff --git a/build/network-manager-strongswan/debian/changelog b/build/network-manager-strongswan/debian/changelog new file mode 100644 index 000000000..42e07de19 --- /dev/null +++ b/build/network-manager-strongswan/debian/changelog @@ -0,0 +1,6 @@ +network-manager-strongswan (4.2.6-2) hardy; urgency=low + + * new package based on network-manager-vpnc + + -- Martin Willi <martin@strongswan.org> Tue, 26 Aug 2008 14:40:48 +0200 + diff --git a/build/network-manager-strongswan/debian/compat b/build/network-manager-strongswan/debian/compat new file mode 100644 index 000000000..7ed6ff82d --- /dev/null +++ b/build/network-manager-strongswan/debian/compat @@ -0,0 +1 @@ +5 diff --git a/build/network-manager-strongswan/debian/control b/build/network-manager-strongswan/debian/control new file mode 100644 index 000000000..f5db8d79f --- /dev/null +++ b/build/network-manager-strongswan/debian/control @@ -0,0 +1,28 @@ +Source: network-manager-strongswan +Section: net +Priority: extra +Maintainer: Martin Willi <martin@strongswan.org> +Build-Depends: cdbs, + debhelper (>= 5), + network-manager-dev (>= 0.7~~svn20080818), + libnm-glib-dev (>= 0.7~~svn20080818), + automake1.9, + gnome-common, + intltool, + libgnomeui-dev, + libdbus-glib-1-dev, + patchutils +Standards-Version: 3.7.3.0 + +Package: network-manager-strongswan +Architecture: any +Depends: strongswan-nm +Description: network management framework (strongSwan plugin) + NetworkManager attempts to keep an active network connection available at + all times. It is intended primarily for laptops where it allows easy + switching betwen local wireless networks, it's also useful on desktops + with a selection of different interfaces to use. It is not intended for + usage on servers. + . + This package provides a VPN plugin for strongSwan, providing easy access to + IKEv2 IPSec VPN's. diff --git a/build/network-manager-strongswan/debian/copyright b/build/network-manager-strongswan/debian/copyright new file mode 100644 index 000000000..087b80769 --- /dev/null +++ b/build/network-manager-strongswan/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Martin Willi <martin@strongswan.org> based +on network-manager-vpnc packaged by Soren Hansen <sh@linux2go.dk> +Tue, 26 Aug 2008 14:45:00 +0200 + +It was downloaded from www.strongswan.org + +The plugin is Copyright 2008 Martin Willi <martin@strongswan.org> and derived +from the VPNC plugin Copyrigjt 2005-2008 Red Hat, Inc. +The packaging is Copyright 2007 Soren Hansen <sh@linux2go.dk> and +Copyright 2008 Martin Willi <martin@strongswan.org> + +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 2 of the License, or +(at your option) any later version. + +This program 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, 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-2'. diff --git a/build/network-manager-strongswan/debian/docs b/build/network-manager-strongswan/debian/docs new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/build/network-manager-strongswan/debian/docs diff --git a/build/network-manager-strongswan/debian/network-manager-strongswan.postinst b/build/network-manager-strongswan/debian/network-manager-strongswan.postinst new file mode 100644 index 000000000..e59acf933 --- /dev/null +++ b/build/network-manager-strongswan/debian/network-manager-strongswan.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + if [ -x "/etc/dbus-1/event.d/25NetworkManager" ]; then + /etc/dbus-1/event.d/25NetworkManager restart + fi + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/build/network-manager-strongswan/debian/rules b/build/network-manager-strongswan/debian/rules new file mode 100755 index 000000000..796641497 --- /dev/null +++ b/build/network-manager-strongswan/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/class/autotools.mk + +makebuilddir/network-manager-vpnc:: debian/stamp-bootstrap + +debian/stamp-bootstrap: + NOCONFIGURE=1 ./autogen.sh + touch debian/stamp-bootstrap + +clean:: + [ ! -f Makefile ] || $(MAKE) clean diff --git a/build/strongswan-nm/debian/changelog b/build/strongswan-nm/debian/changelog new file mode 100644 index 000000000..ecc21b50e --- /dev/null +++ b/build/strongswan-nm/debian/changelog @@ -0,0 +1,18 @@ +strongswan-nm (4.2.6.1-1) hardy; urgency=low + + * new upstream sources with GPL code only + + -- Martin Willi <martin@strongswan.org> Wed, 27 Aug 2008 14:39:33 +0200 + +strongswan-nm (4.2.6-3) hardy; urgency=low + + * re-upload + + -- Martin Willi <martin@strongswan.org> Tue, 26 Aug 2008 16:59:33 +0200 + +strongswan-nm (4.2.6-2) hardy; urgency=low + + * Initial NetworkManager build + + -- Martin Willi <martin@strongswan.org> Tue, 26 Aug 2008 11:42:52 +0200 + diff --git a/build/strongswan-nm/debian/control b/build/strongswan-nm/debian/control new file mode 100644 index 000000000..f70029c46 --- /dev/null +++ b/build/strongswan-nm/debian/control @@ -0,0 +1,15 @@ +Source: strongswan-nm +Section: net +Priority: extra +Maintainer: Martin Willi <martin@strongswan.org> +Standards-Version: 3.7.3.0 +Build-Depends: debhelper (>= 4.1.16), libssl-dev (>= 0.9.8), network-manager-dev (>= 0.7~~svn20080818), libnm-glib-dev (>= 0.7~~svn20080818), libpam0g-dev + +Package: strongswan-nm +Architecture: any +Depends: libssl0.9.8, network-manager (>= 0.7~~svn20080818) +Conflicts: freeswan, openswan, strongswan +Replaces: strongswan +Description: strongSwan IPSec VPN client + A build of the strongSwan IPSec keying daemon intended for use with + NetworkManager as a road-warrior client. diff --git a/build/strongswan-nm/debian/copyright b/build/strongswan-nm/debian/copyright new file mode 100644 index 000000000..a221959f7 --- /dev/null +++ b/build/strongswan-nm/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Martin Willi <martin@strongswan.org> +Tue, 26 Aug 2008 12:35:50 +0200 + +It has been created from a stripped SVN checkout containing GPL sources only. + +This project has multiple authors, please see the file CREDITS for details. + +Tthis package is completely under the GNU General Public License v2, +see COPYING. + diff --git a/build/strongswan-nm/debian/rules b/build/strongswan-nm/debian/rules new file mode 100755 index 000000000..537199adf --- /dev/null +++ b/build/strongswan-nm/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f + +package = strongswan-nm +docdir = debian/tmp/usr/share/doc/$(package) + +CC = gcc +CFLAGS = -Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing -g +INSTALL_PROGRAM = install + +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: + $(checkdir) + ./configure --disable-aes --disable-des --disable-md5 --disable-sha1 \ + --disable-sha2 --disable-fips-prf --disable-gmp --disable-stroke \ + --disable-pluto --disable-tools --disable-updown --enable-openssl \ + --enable-nm --enable-eap-gtc \ + --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib + $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" + touch build + +clean: + $(checkdir) + rm -f build + [ ! -f Makefile ] || $(MAKE) clean + rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars + +binary-indep: checkroot build + $(checkdir) + +binary-arch: checkroot build + rm -rf debian/tmp + install -d debian/tmp/DEBIAN $(docdir) + $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \ + DESTDIR=$$(pwd)/debian/tmp install + cp -a NEWS debian/copyright $(docdir) + cp -a debian/changelog $(docdir)/changelog.Debian + cd $(docdir) && gzip -9 changelog.Debian + dpkg-gencontrol -isp + chown -R root:root debian/tmp + dpkg --build debian/tmp .. + +define checkdir + test -f src/charon/daemon.c -a -f debian/rules +endef + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test $$(id -u) = 0 + +.PHONY: binary binary-arch binary-indep clean checkroot + |