mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+dest-unreach.org/socat (#4908)
* new file: projects/dest-unreach.org/socat/package.yml * certs? * debug * <<< 'GET /\n' * wip * test --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
1dfc1d2992
commit
0d0228f300
1 changed files with 36 additions and 0 deletions
36
projects/dest-unreach.org/socat/package.yml
Normal file
36
projects/dest-unreach.org/socat/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
distributable:
|
||||
url: http://www.dest-unreach.org/socat/download/socat-{{version.raw}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: http://www.dest-unreach.org/socat/download/
|
||||
match: /socat-\d+\.\d+\.\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^socat-/
|
||||
- /\.tar\.gz$/
|
||||
|
||||
dependencies:
|
||||
openssl.org: ^1.1
|
||||
gnu.org/readline: ^8.2
|
||||
|
||||
build:
|
||||
script:
|
||||
- ./configure $CONFIGURE_ARGS
|
||||
- make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
CONFIGURE_ARGS:
|
||||
- --disable-dependency-tracking
|
||||
- --prefix={{prefix}}
|
||||
- --libdir={{prefix}}/lib
|
||||
- --mandir={{prefix}}/share/man
|
||||
|
||||
provides:
|
||||
- bin/socat
|
||||
|
||||
test:
|
||||
- socat -V | grep {{version}}
|
||||
- run: |
|
||||
echo -e "GET / HTTP/1.1\r\nhost: example.com\r\nConnection: close\r\n\r\n" | socat - TCP4:example.com:80
|
||||
- run: |
|
||||
echo -e "GET / HTTP/1.1\r\nhost: example.com\r\nConnection: close\r\n\r\n" | socat - TCP4:example.com:80 > index.html
|
||||
- cat index.html | grep "<title>Example Domain</title>"
|
Loading…
Reference in a new issue