We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e1bf6 commit db26a87Copy full SHA for db26a87
1 file changed
stacks/netcat/build.sh
@@ -0,0 +1,25 @@
1
+#!/bin/bash
2
+
3
+# Load stack utils
4
+. /usr/bin/stack-utils
5
6
+# Implement build function
7
+function build() {
8
+ generate-stack-path
9
+ install-packages \
10
+ gcc liblzo2-dev make cmake git build-essential
11
12
+ curl -fsSL -o tmp.tar.bz2 http://sourceforge.net/projects/netcat/files/netcat/${STACK_VERSION}/netcat-${STACK_VERSION}.tar.bz2
13
+ tar -jxvf tmp.tar.bz2
14
+ cd netcat-${STACK_VERSION}
15
+ ./configure \
16
+ --prefix=/opt/drycc/nc
17
18
+ make && make install
19
+ cp -rf /opt/drycc/nc/* "${DATA_DIR}"
20
+ cd .. && rm -rf netcat-${STACK_VERSION} tmp.tar.bz2
21
+}
22
23
+# call build stack
24
+build-stack "${1}"
25
0 commit comments