mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-15 11:10:08 -07:00
22 lines
555 B
Bash
Executable File
22 lines
555 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
CFLAGS="$CFLAGS $(pkg-config --cflags libnl-tiny)"
|
|
export CFLAGS
|
|
|
|
cd wpa_supplicant
|
|
|
|
make LIBDIR=/usr/lib BINDIR=/usr/bin
|
|
make LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR="$1" install
|
|
|
|
mkdir -p \
|
|
"$1/usr/share/man/man5" \
|
|
"$1/usr/share/man/man8"
|
|
|
|
cp -f doc/docbook/*.5 "$1/usr/share/man/man5"
|
|
cp -f doc/docbook/*.8 "$1/usr/share/man/man8"
|
|
|
|
# Install runit service.
|
|
mkdir -p "$1/etc/sv/wpa_supplicant"
|
|
cp -f wpa_supplicant.run "$1/etc/sv/wpa_supplicant/run"
|
|
ln -sf /run/runit/supervise.wpa_supplicant "$1/etc/sv/wpa_supplicant/supervise"
|