#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2015-2016, 2026 InterGenJLU
#
# IPRoute2 6.18.0
# LFS 13.0 Section 8.68

configure() {
    set -e
    # Remove arpd (requires Berkeley DB, not in LFS)
    sed -i /ARPD/d Makefile
    rm -fv man/man8/arpd.8
}

build() {
    set -e
    make NETNS_RUN_DIR=/run/netns -j${IGOS_JOBS}
}

do_install() {
    set -e
    make DESTDIR="$DESTDIR" SBINDIR=/usr/sbin install
}
