forked from corsis/PortFusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PortFusion.cabal
165 lines (137 loc) · 4.97 KB
/
PortFusion.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: PortFusion
version: 1.2.2
stability: stable on all operating systems
synopsis: high-performance distributed reverse / forward proxy & tunneling for TCP
description: PortFusion is a minimalistic, cross-platform, transport-layer
distributed reverse / forward proxy & tunneling solution for TCP
(RDP, SSH, HTTP(S), (S)FTP, VNC, ...) released under GPLv3.
.
A single package that makes the most of each platform by tapping
into their unique capabilities, combining this power with an
intuitive interface, beautiful design and Haskell's excellent
support for unprecedented levels of concurrency and parallelism.
.
It strives for the smallest source code size while delivering
maximum throughput with near zero overhead.
.
[Official Binaries]
visit <http://fusion.corsis.eu> to download for:
.
* Windows (: now also builds 64-bit, with GHC 7.6.1 or above *^o*^!! :)
.
* GNU/Linux
.
* OS X
.
* FreeBSD
.
[Version Scheme]
Major-@/R/@-ewrite . New-@/F/@-unctionality . @/I/@-mprovementAndBugFixes . @/P/@-ackagingOnly
.
* @PackagingOnly@ changes are made for quality assurance reasons.
.
* No new official binary releases are made for @PackagingOnly@ changes.
.
* Official @r.f.i@ binaries are bit-for-bit the same as @r.f.i.p@ builds for all @p@.
copyright: Copyright © 2011 - 2013 Cetin Sert
license: GPL-3
license-file: LICENSE
author: Cetin Sert <fusion@corsis.eu>, Corsis Research
maintainer: Cetin Sert <fusion@corsis.eu>, Corsis Research
homepage: http://fusion.corsis.eu
package-url: http://fusion.corsis.eu
bug-reports: http://github.com/corsis/PortFusion/issues
category: System, Network,
build-type: Simple
cabal-version: >= 1.6
extra-source-files: res/*.svg
res/osx/*.icns
res/osx/*.hqx
res/win/*.rc
res/win/*.bat
res/win/*.ico
res/win/*.res
source-repository head
type: git
location: git://github.com/corsis/PortFusion.git
flag threaded
description: use threaded runtime
default: True
flag static
description: enable fully static linking
default: False
flag llvm
description: compile via LLVM
default: False
executable PortFusion
hs-source-dirs: src
main-is: Main.hs
buildable: True
build-depends: base >= 4 && <= 5,
bytestring -any,
splice >= 0.6.1
if os(windows)
build-depends: network >= 2.3.0.13
if arch(i386)
ghc-options: res\win\PortFusion.res
if arch(x86_64)
ghc-options: res\win\PortFusion-64.res
else
build-depends: network -any
ghc-options: -O2 -Wall -fno-warn-name-shadowing -fno-warn-orphans
if flag(threaded) && !os(windows) && !arch(arm)
ghc-options: -threaded -rtsopts
if flag(static)
ghc-options: -static
ld-options: -static -pthread
if flag(llvm)
ghc-options: -fllvm -optlo-O3
--------------------------------------------------------------------------------
-- CORSIS Build Name Components
if os(linux)
cpp-options: -D__OS__="Linux"
else
if os(windows)
cpp-options: -D__OS__="Windows"
else
if os(freebsd)
cpp-options: -D__OS__="FreeBSD"
else
if os(openbsd) || os(netbsd)
cpp-options: -D__OS__="BSD"
else
if os(darwin)
cpp-options: -D__OS__="MacOS"
else
if os(solaris)
cpp-options: -D__OS__="Solaris"
else
-- if os(gnu) || os(hurd)
-- cpp-options: -D__OS__="HURD"
-- else
cpp-options: -D__OS__="Generic"
if arch(i386)
cpp-options: -D__ARCH__="x86"
else
if arch(x86_64)
cpp-options: -D__ARCH__="x86-64"
else
if arch(arm)
cpp-options: -D__ARCH__="ARM"
else
-- if arch(powerpc)
-- cpp-options: -D__ARCH__="PowerPC"
-- else
-- if arch(powerpc64)
-- cpp-options: -D__ARCH__="PowerPC-64"
-- else
if arch(sparc)
cpp-options: -D__ARCH__="SPARC"
else
if arch(ia64)
cpp-options: -D__ARCH__="Itanium-64"
else
if arch(mips)
cpp-options: -D__ARCH__="MIPS"
else
cpp-options: -D__ARCH__="Unknown"