ruby/rb-rack-protection/rb-rack-protection.sh

Fri, 15 Nov 2019 20:05:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:05:00 +0100
changeset 1207
c9592a9a949b
parent 1124
fb1bed662e25
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

1124
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #!/bin/sh
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 _GEM=rack-protection
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
19
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGNAME=rb-rack-protection
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGVERSION=2.0.7
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGREVISION=1
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGLICENSE="MIT"
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 PKGSUMMARY="protect against typical web attacks"
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 PKGDOWNLOAD="https://rubygems.org/downloads/$_GEM-$PKGVERSION.gem"
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 PKGDEPENDS="ruby rb-rack"
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
27
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 build()
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 {
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 gem install -l \
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 --ignore-dependencies \
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 --no-user-install \
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 -i $DESTDIR/$(gem env gemdir) \
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 -n $DESTDIR/bin \
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 $_GEM-$PKGVERSION.gem
fb1bed662e25 ruby/rb-rack-protection: initial import, closes #2369
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 }

mercurial