~ubuntu-branches/ubuntu/trusty/dante/trusty-proposed

« back to all changes in this revision

Viewing changes to bin/socksify.in

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2002-04-07 12:45:55 UTC
  • Revision ID: james.westby@ubuntu.com-20020407124555-qke8rt2tdor0naz2
Tags: upstream-1.1.11.12p1
Import upstream version 1.1.11.12p1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -
 
2
#
 
3
# Copyright (c) 1997, 1998
 
4
#      Inferno Nettverk A/S, Norway.  All rights reserved.
 
5
#
 
6
# Redistribution and use in source and binary forms, with or without
 
7
# modification, are permitted provided that the following conditions
 
8
# are met:
 
9
# 1. The above copyright notice, this list of conditions and the following
 
10
#    disclaimer must appear in all copies of the software, derivative works
 
11
#    or modified versions, and any portions thereof, aswell as in all
 
12
#    supporting documentation.
 
13
# 2. All advertising materials mentioning features or use of this software
 
14
#    must display the following acknowledgement:
 
15
#      This product includes software developed by
 
16
#      Inferno Nettverk A/S, Norway.
 
17
# 3. The name of the author may not be used to endorse or promote products
 
18
#    derived from this software without specific prior written permission.
 
19
#
 
20
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 
21
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 
22
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 
23
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 
24
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 
25
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
26
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 
27
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
28
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 
29
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
30
#
 
31
# Inferno Nettverk A/S requests users of this software to return to
 
32
#
 
33
#  Software Distribution Coordinator  or  sdc@inet.no
 
34
#  Inferno Nettverk A/S
 
35
#  Oslo Research Park
 
36
#  Gaustadall�en 21
 
37
#  NO-0349 Oslo
 
38
#  Norway
 
39
#
 
40
# any improvements or extensions that they make and grant Inferno Nettverk A/S
 
41
# the rights to redistribute these changes.
 
42
#
 
43
# $Id: socksify.in,v 1.22 2001/12/04 11:57:18 karls Exp $
 
44
 
 
45
#On systems where a supported preloading mechanism is used, you can
 
46
#do "socksify <program>" and <program> will use socks without having
 
47
#been relinked or recompiled.  This will not work on statically linked
 
48
#binaries.
 
49
 
 
50
SOCKSIFY_PRELOAD_LIBS="@SOCKSIFY_PRELOAD_LIBS@"
 
51
 
 
52
LIBDIR="@LIBRARY_PREFIX@"
 
53
 
 
54
#XXX shared library name should be generated too (possibly including version)
 
55
LIBRARY="${SOCKS_LIBRARY-${LIBDIR}/libdsocks.@SOLIB_POSTFIX@}"
 
56
 
 
57
PRELOAD_SEPERATOR="@PRELOAD_SEPERATOR@"
 
58
PRELOAD_POSTFIX="@PRELOAD_POSTFIX@"
 
59
 
 
60
@PRELOAD_VARIABLE@="${LIBRARY}${SOCKSIFY_PRELOAD_LIBS:+${PRELOAD_SEPERATOR}}${SOCKSIFY_PRELOAD_LIBS}${PRELOAD_POSTFIX:+${PRELOAD_SEPERATOR}}${PRELOAD_POSTFIX}"
 
61
export @PRELOAD_VARIABLE@
 
62
 
 
63
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}${LIBDIR}"
 
64
export LD_LIBRARY_PATH
 
65
 
 
66
exec "$@"