2023-05-23 05:55:56 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/thom311/libnl/releases/download/libnl{{version.major}}_{{version.minor}}_{{version.patch}}/libnl-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
display-name: libnl
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: thom311/libnl
|
|
|
|
strip: /^libnl/
|
|
|
|
|
|
|
|
platforms:
|
2023-10-02 03:41:57 +03:00
|
|
|
- linux
|
2023-05-23 05:55:56 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/bison: '*'
|
|
|
|
github.com/westes/flex: '*'
|
|
|
|
script:
|
|
|
|
- ./configure $ARGS
|
|
|
|
- make --jobs {{ hw.concurrency }} install
|
|
|
|
|
|
|
|
- |
|
|
|
|
cd "{{prefix}}/include"
|
|
|
|
mv libnl3/* .
|
|
|
|
rmdir libnl3
|
|
|
|
ln -s . linl3
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix="{{prefix}}"
|
|
|
|
- --disable-silent-rules
|
|
|
|
|
|
|
|
test:
|
|
|
|
script:
|
|
|
|
- gcc ./fixture.c -lnl-3 -lnl-route-3 -o test
|
|
|
|
- (./test 2>&1 || true) | grep "$OUT"
|
|
|
|
|
|
|
|
- nl-route-list | grep "$OUT2"
|
|
|
|
env:
|
2023-10-02 03:41:57 +03:00
|
|
|
OUT: 'Unable to delete link: Operation not permitted'
|
2023-05-23 05:55:56 +03:00
|
|
|
OUT2: inet 127.0.0.1
|