kind: autotools
depends:
- coreutils-common.bst
sources:
- kind: git
  url: upstream:kmod
  track: v22
  ref: 42f32b8ae45ad8e3a1da29c9b20af9b5e2e9e676
config:
  configure-commands:
  - |
    ./bootstrap-configure --prefix="%{prefix}" --sysconfdir=/etc --localstatedir=/var \
                          --bindir="%{prefix}"/bin  --libdir="%{prefix}"/lib \
                          --disable-manpages --enable-python
  install-commands:
    (>):
    - ln -s kmod "%{install-root}/%{prefix}"/bin/modprobe
    - ln -s kmod "%{install-root}/%{prefix}"/bin/lsmod
    - ln -s kmod "%{install-root}/%{prefix}"/bin/rmmod
    - ln -s kmod "%{install-root}/%{prefix}"/bin/insmod
    - ln -s kmod "%{install-root}/%{prefix}"/bin/modinfo
    - ln -s kmod "%{install-root}/%{prefix}"/bin/depmod
