-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port vpn cfg from fairfield to glendale.
- Loading branch information
Stig Thormodsrud
committed
Dec 20, 2007
0 parents
commit 2b188e0
Showing
73 changed files
with
1,648 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Package: vyatt-cfg-vpn | ||
* | ||
* **** License **** | ||
* Version: VPL 1.0 | ||
* | ||
* The contents of this file are subject to the Vyatta Public License | ||
* Version 1.0 ("License"); you may not use this file except in | ||
* compliance with the License. You may obtain a copy of the License at | ||
* http://www.vyatta.com/vpl | ||
* | ||
* Software distributed under the License is distributed on an "AS IS" | ||
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See | ||
* the License for the specific language governing rights and limitations | ||
* under the License. | ||
* | ||
* This code was originally developed by Vyatta, Inc. | ||
* Portions created by Vyatta are Copyright (C) "YEAR" Vyatta, Inc. | ||
* All Rights Reserved. | ||
* | ||
* Author: [email protected] | ||
* Date: 2007 | ||
* Description: Vyatta VPN configuration templates/scripts | ||
* | ||
* **** End License **** | ||
* | ||
*/ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cfgdir = $(datadir)/vyatta-cfg/templates | ||
share_perl5dir = $(datarootdir)/perl5 | ||
libudevdir = /lib/udev | ||
etcudevdir = /etc/udev | ||
initddir = /etc/init.d | ||
|
||
bin_SCRIPTS = | ||
sbin_SCRIPTS = | ||
sysconf_DATA = | ||
|
||
sbin_SCRIPTS += scripts/vpn-config.pl | ||
|
||
share_perl5_DATA = scripts/VyattaVPNUtil.pm | ||
|
||
|
||
cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \ | ||
cpio -0pd | ||
|
||
install-exec-hook: | ||
mkdir -p $(DESTDIR)$(cfgdir) | ||
cd templates; $(cpiop) $(DESTDIR)$(cfgdir) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
see http://www.vyatta.com/news/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This package has the Vyatta VPN configuration templates and scripts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Process this file with autoconf to produce a configure script. | ||
AC_PREREQ(2.59) | ||
|
||
m4_define([VERSION_ID], [m4_esyscmd([ | ||
if test -f .version ; then | ||
head -n 1 .version | tr -d \\n | ||
else | ||
echo -n 2.4 | ||
fi])]) | ||
AC_INIT([vyatta-cfg-vpn], VERSION_ID, [[email protected]]) | ||
|
||
test -n "$VYATTA_VERSION" || VYATTA_VERSION=$PACKAGE_VERSION | ||
|
||
AC_CONFIG_AUX_DIR([config]) | ||
AM_INIT_AUTOMAKE([gnu no-dist-gzip dist-bzip2 subdir-objects]) | ||
AC_PREFIX_DEFAULT([/opt/vyatta]) | ||
|
||
AC_ARG_ENABLE([nostrip], | ||
AC_HELP_STRING([--enable-nostrip], | ||
[include -nostrip option during packaging]), | ||
[NOSTRIP=-nostrip], [NOSTRIP=]) | ||
|
||
AC_CONFIG_FILES( | ||
[Makefile] | ||
[debian/vyatta-cfg-vpn.postinst]) | ||
|
||
AC_SUBST(NOSTRIP) | ||
|
||
AC_OUTPUT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
The Debian Package vyatta-cfg-vpn | ||
--------------------------------- | ||
|
||
This package has the Vyatta VPN configuration templates and scripts. | ||
|
||
-- Stig Thormodsrud <[email protected]> Wed, 19 Dec 2007 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
|
||
if [ -d .git ] ; then | ||
# generate GNU/Debian format ChangeLog from git log | ||
|
||
rm -f ChangeLog | ||
|
||
if which git2cl >/dev/null ; then | ||
git-log --pretty --numstat --summary | git2cl >> ChangeLog | ||
else | ||
git-log --pretty=short >> ChangeLog | ||
fi | ||
|
||
# append repository reference | ||
|
||
url=` git repo-config --get remote.origin.url` | ||
test "x$url" = "x" && url=`pwd` | ||
|
||
branch=`git-branch --no-color | sed '/^\* /!d; s/^\* //'` | ||
test "x$branch" = "x" && branch=master | ||
|
||
sha=`git log --pretty=oneline --no-color -n 1 | cut -c-8` | ||
test "x$sha" = "x" && sha=00000000 | ||
|
||
echo "$url#$branch-$sha" >> ChangeLog | ||
|
||
fi | ||
|
||
rm -rf config | ||
rm -f aclocal.m4 config.guess config.statusconfig.sub configure INSTALL | ||
|
||
autoreconf --force --install | ||
|
||
rm -f config.sub config.guess | ||
ln -s /usr/share/misc/config.sub . | ||
ln -s /usr/share/misc/config.guess . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
vyatta-cfg-vpn (0.1) unstable; urgency=low | ||
|
||
* Initial Release. | ||
|
||
-- Stig Thormodsrud <[email protected]> Wed, 19 Dec 2007 14:09:00 -0700 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Source: vyatta-cfg-vpn | ||
Section: contrib/net | ||
Priority: extra | ||
Maintainer: Stig Thormodsrud <[email protected]> | ||
Build-Depends: debhelper (>= 5), autotools-dev | ||
Standards-Version: 3.7.2 | ||
|
||
Package: vyatta-cfg-vpn | ||
Architecture: all | ||
Depends: perl, vyatta-cfg, openswan | ||
Description: Vyatta VPN configuration templates/scripts | ||
Vyatta VPN configuration templates and scripts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
This package was debianized by Stig Thormodsrud <[email protected]> on | ||
Wed Dec 19 14:00:24 PST 2007. | ||
|
||
It's original content from the GIT repository <http://vyatt.com/git/vyatta-cfg-vpn> | ||
|
||
Upstream Author: | ||
|
||
<[email protected]> | ||
|
||
Copyright: | ||
|
||
Copyright (C) 2007 Vyatta, Inc. | ||
All Rights Reserved. | ||
|
||
License: | ||
|
||
The contents of this package are subject to the Vyatta Public License | ||
Version 1.0 ("License"); you may not use this file except in | ||
compliance with the License. You may obtain a copy of the License at | ||
http://www.vyatta.com/vpl | ||
|
||
Software distributed under the License is distributed on an "AS IS" | ||
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See | ||
the License for the specific language governing rights and limitations | ||
under the License. | ||
|
||
This code was originally developed by Vyatta, Inc. | ||
Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc. | ||
|
||
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) 2007, An-Cheng Huang <[email protected]> and | ||
is licensed under the GPL, see above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
NEWS | ||
README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tag: file-in-opt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vyatta-cfg-vpn: file-in-unusual-dir | ||
vyatta-cfg-vpn: dir-or-file-in-opt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
#!/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 | ||
|
||
|
||
# These are used for cross-compiling and for saving the configure script | ||
# from having to guess our platform (since we know it already) | ||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | ||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | ||
PACKAGE=vyatta-cfg-vpn | ||
PKGDIR=$(CURDIR)/debian/$(PACKAGE) | ||
|
||
CFLAGS = -Wall -g | ||
|
||
configure = ./configure | ||
configure += --host=$(DEB_HOST_GNU_TYPE) | ||
configure += --build=$(DEB_BUILD_GNU_TYPE) | ||
configure += --prefix=/opt/vyatta | ||
configure += --mandir=\$${prefix}/share/man | ||
configure += --infodir=\$${prefix}/share/info | ||
configure += CFLAGS="$(CFLAGS)" | ||
configure += LDFLAGS="-Wl,-z,defs" | ||
|
||
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | ||
CFLAGS += -O0 | ||
else | ||
CFLAGS += -O2 | ||
endif | ||
|
||
configure: configure.ac Makefile.am | ||
chmod +x debian/autogen.sh | ||
debian/autogen.sh | ||
|
||
config.status: configure | ||
dh_testdir | ||
rm -f config.cache | ||
$(configure) | ||
|
||
build: build-stamp | ||
|
||
build-stamp: config.status | ||
dh_testdir | ||
$(MAKE) | ||
touch $@ | ||
|
||
clean: clean-patched | ||
|
||
# Clean everything up, including everything auto-generated | ||
# at build time that needs not to be kept around in the Debian diff | ||
clean-patched: | ||
dh_testdir | ||
dh_testroot | ||
if test -f Makefile ; then $(MAKE) clean distclean ; fi | ||
rm -f build-stamp | ||
rm -f config.status config.sub config.guess config.log | ||
rm -f aclocal.m4 configure Makefile.in Makefile INSTALL | ||
rm -rf config | ||
dh_clean | ||
|
||
install: build | ||
dh_testdir | ||
dh_testroot | ||
dh_clean -k | ||
dh_installdirs | ||
|
||
$(MAKE) DESTDIR=$(PKGDIR) install | ||
|
||
install -D --mode=0644 debian/lintian $(PKGDIR)/usr/share/lintian/overrides/$(PACKAGE) | ||
install -D --mode=0644 debian/linda $(PKGDIR)/usr/share/linda/overrides/$(PACKAGE) | ||
|
||
# Build architecture-independent files here. | ||
binary-indep: build install | ||
dh_testdir | ||
dh_testroot | ||
dh_installchangelogs ChangeLog | ||
dh_installdocs | ||
dh_install | ||
dh_installdebconf | ||
dh_link | ||
dh_strip | ||
dh_compress | ||
dh_fixperms | ||
dh_installdeb | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
# Build architecture-dependent files here. | ||
binary-arch: build install | ||
# This is an architecture independent package | ||
# so; we have nothing to do by default. | ||
|
||
binary: binary-indep binary-arch | ||
.PHONY: build clean binary-indep binary-arch binary install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
prefix=@prefix@ | ||
exec_prefix=@exec_prefix@ | ||
sysconfdir=@sysconfdir@ | ||
bindir=@bindir@ | ||
sbindir=@sbindir@ | ||
|
||
# remove init of daemons that we start/stop | ||
for init in openswan; do | ||
update-rc.d -f ${init} remove >/dev/null | ||
done | ||
|
||
# Local Variables: | ||
# mode: shell-script | ||
# sh-indentation: 4 | ||
# End: |
Oops, something went wrong.