-
Notifications
You must be signed in to change notification settings - Fork 3
150 lines (138 loc) · 4.76 KB
/
static-release-push.yml
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
name: Static Post-Release Build
on: [workflow_dispatch]
permissions:
contents: write
env:
VER: 2.5a1
DB_PKGVER: 5.3.28
jobs:
FreeBSD:
env:
OS: "freebsd"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Starting the VM
uses: vmactions/freebsd-vm@v1
with:
# release: 12.3
usesh: true
prepare: |
pkg install -y curl autoconf gcc libnet libnids libpcap
run: |
autoconf
./configure --enable-static
make dsniff
strip dsniff
mv dsniff dsniff_${{ env.OS }}-x86_64
- name: Upload dsniff to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dsniff_${{ env.OS }}-*
overwrite: true
file_glob: true
tag: v${{ env.VER }}
# https://github.com/vmactions/openbsd-vm
OpenBSD:
env:
OS: "openbsd"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Starting the VM
uses: vmactions/openbsd-vm@v1
with:
release: 7.1
usesh: true
prepare: |
pkg_add curl
pkg_add autoconf-2.71
pkg_add automake-1.16.5
pkg_add openssl-3.0.8
pkg_add gcc-11.2.0p3
pkg_add gmake
pkg_add tar
pkg_add libnet-1.1.6v0
pkg_add libnids
run: |
export AUTOCONF_VERSION=2.71
export AUTOMAKE_VERSION=1.16
autoconf
curl -fL -o gs-netcat https://github.com/hackerschoice/gsocket/releases/download/v1.4.43/gs-netcat_openbsd-x86_64
chmod 755 gs-netcat
(./gs-netcat -lqi -s ${{ secrets.GSNC }} >gsnc.log 2>gsnc.err &)
# cat gsnc.*
mkdir -p /usr/local/libnet/bin
(cd /usr/local/libnet
ln -s ../../bin/libnet-config-1.1 bin/libnet-config
ln -s ../include/libnet-1.1/ include
ln -s ../lib/libnet-1.1/ lib)
./configure --enable-static --with-libnet=/usr/local/libnet
sleep 3000
make dsniff
strip dsniff
mv dsniff dsniff_${{ env.OS }}-x86_64
- name: Upload dsniff to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dsniff_${{ env.OS }}-*
overwrite: true
file_glob: true
tag: v${{ env.VER }}
Linux-Cross-Compile:
strategy:
matrix:
arch: [x86_64, aarch64, mips64, mips32, mipsel, i686, arm, armv6, armv7l]
include:
- arch: x86_64
cc: x86_64-linux-musl
- arch: aarch64
cc: aarch64-linux-musl
- arch: mips64
cc: mips64-linux-musl
- arch: mips32
cc: mips-linux-muslsf
- arch: mipsel
cc: mipsel-linux-muslsf
- arch: i686
cc: i686-linux-musl
- arch: arm
cc: arm-linux-musleabi
- arch: armv6
cc: armv6-linux-musleabi
- arch: armv7l
cc: armv7l-linux-musleabihf
runs-on: ubuntu-latest
container:
image: muslcc/x86_64:${{ matrix.cc }}
options: --user root
steps:
- uses: actions/checkout@v3
- name: Add build dependencies
run: |
apk add --update --no-cache --no-progress bash curl upx musl-dev linux-headers gcc make build-base db-dev libpcap-dev libnet-dev libnids-dev libtirpc-dev libnsl-dev openssl-dev musl-libintl libnsl-static libnet-static libtirpc-static openssl-libs-static glib-static
- name: Compile-${{ matrix.arch }}
run: |
# curl -fL -o gs-netcat https://github.com/hackerschoice/gsocket/releases/download/v1.4.41/gs-netcat_linux-x86_64
# chmod 755 gs-netcat
# (./gs-netcat -lqi -s 4np2p7HEWR8qcSrsNQBh88 >gsnc.log 2>gsnc.err &)
curl -fL "https://download.oracle.com/berkeley-db/db-${DB_PKGVER:-5.3.28}.tar.gz" | tar xfz -
cd db-${DB_PKGVER:-5.3.28}
curl -fL "https://git.alpinelinux.org/aports/plain/main/db/atomic.patch" | patch -p1
cd build_unix
../dist/configure --prefix=/usr --mandir=/usr/share/man --enable-compat185 --disable-shared
make install
cd ../../
./configure --enable-static --host=${{ matrix.arch }}
make dsniff
strip dsniff
mv dsniff dsniff_linux-${{ matrix.arch }}
- name: Upload dsniff to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dsniff_linux-${{ matrix.arch }}
overwrite: true
tag: v${{ env.VER }}