code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/bash
source $srcdir/test.sh
echo "************************"
echo "Testing Spartan-3 Family"
echo "************************"
MAKEFILE="$srcdir/testmake.mk DEBIT=\$(top_builddir)/debit_s3 DUMPARG=--framedump XDL2BIT=\$(top_builddir)/xdl/xdl2bit_s3"
family=spartan3
test_family
| Shell |
#-*- mode: shell-script;-*-
# Ulogic tools completion.
# Copyright 2007 Jean-Baptiste Note <jbnote@gmail.com>
#
_ulogic()
{
local cur prev opts base
COMPREPLY=()
CMD=$1
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
#
# Complete the arguments to some of the basic comm... | Shell |
#!/bin/sh
echo "echoing bad headers: server must report status 500"
exec 1>&2
echo shit!!!
| Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo $QUERY_STRING
| Shell |
#!/bin/sh
echo "Content-Type: text/plain"
echo
echo "This is shell script CGI."
| Shell |
#!/bin/sh
if [ "${1}" == "x64" ]; then
arch=x86_64
archdir=x64
else
arch=x86
archdir=Win32
fi
make_dirs() (
if [ ! -d bin_${archdir}d/lib ]; then
mkdir -p bin_${archdir}d/lib
fi
)
copy_libs() (
cp lib*/*-lav-*.dll ../bin_${archdir}d
cp lib*/*-lav-*.pdb ../bin_${archdir}d
cp lib*/*.lib ../bin_${... | Shell |
#!/bin/sh
if [ "${1}" == "x64" ]; then
arch=x86_64
archdir=x64
else
arch=x86
archdir=Win32
fi
make_dirs() (
if [ ! -d bin_${archdir}/lib ]; then
mkdir -p bin_${archdir}/lib
fi
if [ ! -d bin_${archdir}d/lib ]; then
mkdir -p bin_${archdir}d/lib
fi
)
strip_libs() {
x86_64-w64-mingw32-strip li... | Shell |
#!/bin/bash
# 打开apache.http调试信息
adb shell setprop log.tag.org.apache.http VERBOSE
adb shell setprop log.tag.org.apache.http.wire VERBOSE
adb shell setprop log.tag.org.apache.http.headers VERBOSE
echo "Enable Debug"
| Shell |
#!/bin/bash
# Auto install for 8192cu
# September, 1 2010 v1.0.0, willisTang
#
# Add make_drv to select chip type
# Novembor, 21 2011 v1.1.0, Jeff Hung
################################################################################
echo "##################################################"
echo "Realtek Wi-Fi driver ... | Shell |
#!/bin/bash
# release
#
#{{IS_NOTE
# Purpose:
#
# Description:
#
# History:
# Wed June 27 14:29:09 2012, Created by jumperchen
#}}IS_NOTE
#
#Copyright (C) 2012 Potix Corporation. All Rights Reserved.
#
#{{IS_RIGHT
#}}IS_RIGHT
#
mvn clean package ; mvn -f pom-demo.xml package
| Shell |
#!/bin/bash
echo "## Step 00: initialize"
(
if ! [ -d build ]; then
mkdir build
mkdir build/src
mkdir build/src/trunk
fi
)
fetch() {
(
cd src
if ! [ -f "${2}/.svn/entries" ]; then
mkdir "${2}"
cd "${2}"
svn co --non-interactive --trust-server-cert "${1}" "."
else
cd "${2}"
sv... | Shell |
#!/bin/bash
find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';'
find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
| Shell |
#!/bin/bash
rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
| Shell |
#!/bin/bash
rm -rf org/ietf/
rm -rf org/apache/harmony/auth
rm -rf org/apache/harmony/javax/security/auth/kerberos/
rm -rf org/apache/harmony/javax/security/auth/x500/
rm org/apache/harmony/javax/security/auth/Policy.java
| Shell |
#!/bin/bash
find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
| Shell |
#!/bin/bash
find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';'
find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
| Shell |
#!/bin/bash
rm org/jivesoftware/smack/debugger/LiteDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java
rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
| Shell |
#!/bin/bash
mkdir -p org/apache/harmony/
mv javax org/apache/harmony/
find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';'
find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';'
find -name '*... | Shell |
#!/bin/bash
#
#{{IS_NOTE
# Purpose:
# To build java projects
# Description:
# 'build help' for more descriptions
# History:
# March 29 15:11 2001, Created by tomyeh
# August 21 13:59 2002, Rewritten by tomyeh
#}}IS_NOTE
#
#Copyright (C) 2002 Potix Corporation. All Rights Reserved.
#
#{{IS_RIGHT
# This program is di... | Shell |
#!/bin/bash
# sub-release
#
#{{IS_NOTE
# Purpose:
#
# Description:
#
# History:
# July 2007, Created by tomyeh
#}}IS_NOTE
#
#Copyright (C) 2007 Potix Corporation. All Rights Reserved.
#
#{{IS_RIGHT
# This program is distributed under Lesser GPL Version 2.1 in the hope that
# it will be useful, but WITHOUT ANY WARR... | Shell |
#!/bin/bash
#
#{{IS_NOTE
# Purpose:
# To build java projects
# Description:
# 'build help' for more descriptions
# History:
# March 29 15:11 2001, Created by tomyeh
# August 21 13:59 2002, Rewritten by tomyeh
#}}IS_NOTE
#
#Copyright (C) 2002 Potix Corporation. All Rights Reserved.
#
#{{IS_RIGHT
# This program is di... | Shell |
#!/bin/bash
# sub-release
#
#{{IS_NOTE
# Purpose:
#
# Description:
#
# History:
# July 2007, Created by tomyeh
#}}IS_NOTE
#
#Copyright (C) 2007 Potix Corporation. All Rights Reserved.
#
#{{IS_RIGHT
# This program is distributed under Lesser GPL Version 2.1 in the hope that
# it will be useful, but WITHOUT ANY WARR... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2003 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is ... | Shell |
#!/bin/bash
gcc `pkg-config --cflags --libs glib-2.0` myspell2dic.c -o myspell2dic
echo "Please wait..."
recode latin1..utf-8 </usr/share/myspell/dicts/es_ES.dic >es_ES.dic.utf
recode latin1..utf-8 </usr/share/myspell/dicts/es_ES.aff >es_ES.aff.utf
echo |./myspell2dic es_ES.dic.utf es_ES.aff.utf 2>/dev/null
recode ko... | Shell |
#!/bin/bash
gcc exc2i2e.c -o exc2i2e
rename /usr/share/stardict/dic/i2e /usr/share/stardict/dic/temp /usr/share/stardict/dic/i2e.* 2>/dev/null
rename /usr/share/stardict/dic/e2i /usr/share/stardict/dic/temp2 /usr/share/stardict/dic/e2i.* 2>/dev/null
./exc2i2e >t
/usr/lib/stardict/i2e2dict t
rm t
rename /usr/share/sta... | Shell |
#!/bin/sh
# Create images for StarDict, like application icon, tray icons, Acrobat plugin icons
# StarDict icons may be created from a single multilayer image.
# Most layers are used only for specific icon types, but images of two books are present
# on all icons. This script deletes layers, resize image and change co... | Shell |
#!/bin/bash
gcc `pkg-config --cflags --libs glib-2.0` ooo2dict.c -o ooo2dict
echo |./ooo2dict 2>/dev/null
recode latin1..utf-8 </usr/share/myspell/dicts/th_de_DE_v2.dat >th_de_DE_v2.dat.utf
echo "OpenThesaurus.de_German" |./ooo2dict th_de_DE_v2.dat.utf 2>/dev/null
recode latin1..utf-8 </usr/share/myspell/dicts/th_it_... | Shell |
#!/bin/bash
recode latin1..utf-8 </usr/share/i2e/i2e.dict >i2e.dict.utf
gcc -g `pkg-config --cflags --libs glib-2.0` i2e2dict.c -o i2e2dict
./i2e2dict
rm i2e.dict.utf
echo "Restart StarDict now!"
| Shell |
#!/bin/sh
echo "Boostrapping StarDict tools..."
(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have libtool installed to compile Stardict";
echo;
exit;
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile Stardict";
ech... | Shell |
#!/bin/sh
echo "Bootstrapping StarDict root..."
# (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
# echo;
# echo "You must have libtool installed to compile StarDict";
# echo;
# exit;
# }
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile Sta... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2003 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is ... | Shell |
#!/bin/sh
# postinst script for stardict
set -e
case "$1" in
configure)
# if [ -e /etc/gconf/schemas/stardict.schemas ]; then
# HOME=/root \
# GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
# /usr/bin/gconftool-2 \
# --makefile-install-rule /etc/gconf/schemas/stardict.schemas ... | Shell |
#!/bin/sh
# postrm script for stardict
set -e
case "$1" in
remove)
# if [ -x /usr/bin/scrollkeeper-update ]; then
# /usr/bin/scrollkeeper-update -q
# fi
;;
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'"... | Shell |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
echo "Boostrapping StarDict dictionary..."
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="stardict"
REQUIRED_AUTOMAKE_VERSION=1.9
(test -f $srcdir/configure.ac \
&& test -f $srcdir/ChangeLog \
&& test -d $srcdir/src) || {
echo -n ... | Shell |
#!/bin/sh
echo "Boostrapping common lib..."
(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have libtool installed to compile common lib";
echo;
exit;
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile common lib";
ech... | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/bash
echo "Running an xterm on node `hostname`"
xterm -hold -sl 1000 -e $*
exit 0
| Shell |
#!/bin/bash
echo "Running GDB on node `hostname`"
xterm -sl 256 -e gdb $*
exit 0
| Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/3n_1t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/3n_1t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/2n_1t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/2n_1t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred-0.1.0/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred-0.1.0/src/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred-0.1.0/src/stderr.txt
# @ initialdir = ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /bin/time /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_8t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_8t/stderr.txt
# @ i... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /bin/time /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_2t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_2t/stderr.txt
# @ i... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_3t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_3t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /bin/time /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/phred/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/phred/stderr.txt
# @ in... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_4t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_4t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_5t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_5t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/4n_1t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/4n_1t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/6n_1t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/6n_1t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_6t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_6t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /bin/time /home1m/bioelec/mhughe/Work/fdtd/phred32/tests/high_speed_c/hscfdtd
# input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/phred/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/phre... | Shell |
#!/bin/ksh
# @ job_type = serial
# @ executable = /home1m/bioelec/mhughe/Work/fdtd/phred-0.1.0/src/phred
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred-0.1.0/src/stdout.txt
# @ initialdir = /home1m/bioelec/mhughe/Work/fdtd/phred-0.1.0/src
# @ notify_user = mhughe@minerva8.uvic.ca
# @ environment = OMP_NUM_THREADS=... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_7t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_7t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /bin/time /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_1t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/1n_1t/stderr.txt
# @ in... | Shell |
#!/bin/ksh
# @ job_type = parallel
# @ executable = /usr/bin/poe
# @ arguments = /home1m/bioelec/mhughe/Work/fdtd/phred/src/phred
# @ input = /dev/null
# @ output = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/8n_1t/stdout.txt
# @ error = /home1m/bioelec/mhughe/Work/fdtd/phred/minerva/8n_1t/stderr.txt
# @ initialdir ... | Shell |
#!/bin/sh
# Copyright 2013 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
CLASSPATH=./bin
CLASSPATH=$CLASSPATH:./lib/activeobjects/activeobjects-0.8.2.jar
CLASSPATH=$CLASSPATH:./lib/apache-commons/commons-beanutils-1.8.0.jar
CLASSPATH=$CLASSPATH:./lib/apache-commons/commons-collections-3.2.1.jar
CLASSPATH=$CLASSPATH:./lib/apache-commons/commons-logging-1.1.1.jar
CLASSPATH=$CLASSPATH:./l... | Shell |
#!/bin/bash
function dumplib()
{
LIB=$1
for arch in armeabi-v7a armeabi; do
VER=$(dump_syms obj/local/$arch/$LIB |grep MODULE | cut -d " " -f 4)
mkdir -p symbols/$LIB/$VER
dump_syms obj/local/armeabi-v7a/$LIB > symbols/$LIB/$VER/$LIB.sym
done
}
dumplib libopenvpn.so
| Shell |
#!/bin/bash
#NDK_DEBUG=1 ndk-build -j8
# Quick and dirty from ndk-gdb
. ${ANDROID_NDK_HOME}/build/tools/ndk-common.sh
ANDROID_NDK_ROOT=${ANDROID_NDK_HOME}
PROJECT=.
APP_ABI=armeabi-v7a
AWK_SCRIPTS=${ANDROID_NDK_ROOT}/build/awk
PACKAGE_NAME=de.blinkt.openvpn
DEBUG_PORT=5039
JDB_PORT=65534
ADB_CMD=adb
AWK_CMD=awk
ge... | Shell |
OPENVPN_PACKAGE_NAME="@PACKAGE_NAME@"
OPENVPN_PACKAGE_TARNAME="@PACKAGE_TARNAME@"
OPENVPN_PACKAGE_VERSION="@PACKAGE_VERSION@"
OPENVPN_PACKAGE_HOST="@host@"
| Shell |
#!@SHELL@
#
# run OpenVPN client against ``test reference'' server
# - check that ping, http, ... via tunnel works
# - check that interface config / routes are properly cleaned after test end
#
# prerequisites:
# - openvpn binary in current directory
# - writable current directory to create subdir for logs
# - t_client... | Shell |
#! /bin/sh
#
# t_lpback.sh - script to test OpenVPN's crypto loopback
# Copyright (C) 2005 Matthias Andree
#
# 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, o... | Shell |
#! /bin/sh
#
# t_cltsrv.sh - script to test OpenVPN's crypto loopback
# Copyright (C) 2005, 2006, 2008 Matthias Andree
#
# 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 th... | Shell |
#! /bin/sh
echo "${role}:${signal}" >&3
| Shell |
#!/bin/sh
#
# Bring up vpn routing.
# calculate the network address
remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"`
remote_network="${remote_network#*=}"
# add the stuff that doesn't change if it's not already there
grep -q '^202 ' /etc/iproute2/rt_tables
if [ "$?" -ne 0 ]
then
echo 202 vpn.out >> /e... | Shell |
#!/bin/sh
#
# Bring down vpn routing.
# calculate the network address
remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"`
remote_network="${remote_network#*=}"
# clear routing via VPN
ip route del "$remote_network"/"$remote_netmask_bits" via "$5" table vpn.out
ip route del table vpnonly.out via "$5"
iptabl... | Shell |
#!/bin/sh
# Sample script to perform OCSP queries with OpenSSL
# given a certificate serial number.
# If you run your own CA, you can set up a very simple
# OCSP server using the -port option to "openssl ocsp".
# Full documentation and examples:
# http://www.openssl.org/docs/apps/ocsp.html
# Edit the following val... | Shell |
#!/bin/sh
# Copyright (c) 2005-2010 OpenVPN Technologies, Inc.
# Licensed under the GPL version 2
# First version by Jesse Adelman
# someone at boldandbusted dink com
# http://www.boldandbusted.com/
# PURPOSE: This script automatically sets the proper /etc/resolv.conf entries
# as pulled down from an OpenVPN server.... | Shell |
#!/bin/sh
# Copyright (c) 2005-2010 OpenVPN Technologies, Inc.
# Licensed under the GPL version 2
# First version by Jesse Adelman
# someone at boldandbusted dink com
# http://www.boldandbusted.com/
# PURPOSE: This script automatically removes the /etc/resolv.conf entries previously
# set by the companion script "cl... | Shell |
#!/bin/sh
####################################
# Tear Down Ethernet bridge on Linux
####################################
# Define Bridge Interface
br="br0"
# Define list of TAP interfaces to be bridged together
tap="tap0"
ifconfig $br down
brctl delbr $br
for t in $tap; do
openvpn --rmtun --dev $t
done
| Shell |
#!/bin/sh
#################################
# Set up Ethernet bridge on Linux
# Requires: bridge-utils
#################################
# Define Bridge Interface
br="br0"
# Define list of TAP interfaces to be bridged,
# for example tap="tap0 tap1 tap2".
tap="tap0"
# Define physical ethernet interface to be bridged... | Shell |
#!/bin/sh
route add -net 10.0.0.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
# stop all openvpn processes
killall -TERM openvpn
| Shell |
#!/bin/sh
# A Sample OpenVPN-aware firewall.
# eth0 is connected to the internet.
# eth1 is connected to a private subnet.
# Change this subnet to correspond to your private
# ethernet subnet. Home will use HOME_NET/24 and
# Office will use OFFICE_NET/24.
PRIVATE=10.0.0.0/24
# Loopback address
LOOP=127.0.0.1
# De... | Shell |
#!/bin/sh
# A sample OpenVPN startup script
# for Linux.
# openvpn config file directory
dir=/etc/openvpn
# load the firewall
$dir/firewall.sh
# load TUN/TAP kernel module
modprobe tun
# enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# Invoke openvpn for each VPN tunnel
# in daemon mode. Alternative... | Shell |
#!/bin/sh
route add -net 10.0.1.0 netmask 255.255.255.0 gw $5
| Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../../include}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -... | Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../../include}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -... | Shell |
#!/bin/sh
#
# Build an OpenVPN plugin module on *nix. The argument should
# be the base name of the C source file (without the .c).
#
# This directory is where we will look for openvpn-plugin.h
CPPFLAGS="${CPPFLAGS:--I../../..}"
CC="${CC:-gcc}"
CFLAGS="${CFLAGS:--O2 -Wall -g}"
$CC $CPPFLAGS $CFLAGS -fPIC -c $1.c &... | Shell |
#!/bin/sh
#
# openvpn This shell script takes care of starting and stopping
# openvpn on RedHat or other chkconfig-based system.
#
# chkconfig: 345 24 76
#
# description: OpenVPN is a robust and highly flexible tunneling application \
# that uses all of the encryption, authentication, a... | Shell |
#!/bin/sh
### BEGIN INIT INFO
# Provides: openvpn
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: This shell script takes care of starting and stopping OpenVP... | Shell |
#!/bin/sh
#
# CA - wrapper around ca to make it easier to use ... basically ca requires
# some setup stuff to be done before you can use it and this makes
# things easier between now and when Eric is convinced to fix it :-)
#
# CA -newca ... will setup the right stuff
# CA -newreq ... will generate a certific... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Shell |
#!/bin/sh
if [ "$1" = "" ]; then
key=../apps/server.pem
else
key="$1"
fi
if [ "$2" = "" ]; then
cert=../apps/server.pem
else
cert="$2"
fi
ssltest="adb shell /system/bin/ssltest -key $key -cert $cert -c_key $key -c_cert $cert"
if adb shell /system/bin/openssl x509 -in $cert -text -noout | fgrep 'DSA Public Key... | Shell |
#!/bin/bash
#
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Shell |
#!/bin/sh
/bin/rm -f mttest
purify cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -p -DSOLARIS -I../../include -g mttest.c -o mttest -L/usr/lib/libc -ldl -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/sh
#
# build using pthreads where it's already built into the system
#
/bin/rm -f mttest
gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
| Shell |
#!/bin/sh
#
# build using pthreads
#
# http://www.mit.edu:8001/people/proven/pthreads.html
#
/bin/rm -f mttest
pgcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto
| Shell |
#!/bin/sh
/bin/rm -f mttest
cc -DSOLARIS -I../../include -g mttest.c -o mttest -L../.. -lthread -lssl -lcrypto -lnsl -lsocket
| Shell |
#!/bin/bash
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2010-11-15.09; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it un... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2009-04-28.21; # UTC
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain.
#
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@g... | Shell |
# Generated from ltmain.m4sh.
# libtool (GNU libtool) 2.2.10
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. T... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.