Skip to content

Commit db26a87

Browse files
committed
feat(stacks): add netcat
1 parent 52e1bf6 commit db26a87

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

stacks/netcat/build.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)