spf_url home 'http://kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/' &&
spf_url watch 'http://kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/' &&
spf_url src "http://kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-${spf_version?}.tar.bz2" &&
spf_cc_ cpp_args &&
spf_cc_ cc_args &&
spf_cc_ ld_args &&
spf_cc_ make_args &&
spf_hack_self_rpath &&
spf_do_install() {
  spf_trigger_conf_libc &&
  prj_sedfile libcap/Makefile '
s%-/sbin/ldconfig%:%
's%/usr/include%"${spf_path_libc?}"/include%g &&
  set prefix="${spf_path_prefix?}" \
      COPTFLAGS="${spf_args_cpp?} -O2 ${spf_args_cc?}" \
      LDFLAGS="-s ${spf_args_cc?} ${spf_args_ld?}" &&
  eval 'make "$@" '"${spf_args_make?} all install" &&
  chmod +x "${spf_path_prefix?}"/lib/*.so
} &&
spf_no_check &&
spf_tested_version 1.10

