#!/bin/sh

cd libmd && install -C -o root -g wheel -m 444  md2.h /usr/include
install -C -o root -g wheel -m 444  md4.h /usr/include
install -C -o root -g wheel -m 444  md5.h /usr/include
install -C -o root -g wheel -m 444  ripemd.h /usr/include
install -C -o root -g wheel -m 444  sha.h /usr/include
install -c -o root -g wheel -m 444   -p libmd.a /usr/lib
ranlib /usr/lib/libmd.a
install -c -o root -g wheel -m 444   -p libmd_p.a /usr/lib
ranlib /usr/lib/libmd_p.a

cd ..

cd libfetch && install -C -o root -g wheel -m 444  fetch.h /usr/include
install -c -o root -g wheel -m 444   -p libfetch.a /usr/lib
ranlib /usr/lib/libfetch.a
install -c -o root -g wheel -m 444   -p libfetch_p.a /usr/lib
ranlib /usr/lib/libfetch_p.a

cd ..

cd usr.sbin/pkg_install && install -c -o root -g wheel -m 444   -p libinstall.a /usr/lib
ranlib /usr/lib/libinstall.a
install -c -o root -g wheel -m 444   -p libinstall_p.a /usr/lib
ranlib /usr/lib/libinstall_p.a

install -c -s -o root -g wheel -m 555   pkg_add /usr/sbin
install -c -o root -g wheel -m 444 pkg_add.1.gz  /usr/share/man/man1

install -c -s -o root -g wheel -m 555   pkg_create /usr/sbin
install -c -o root -g wheel -m 444 pkg_create.1.gz  /usr/share/man/man1

install -c -s -o root -g wheel -m 555   pkg_delete /usr/sbin
install -c -o root -g wheel -m 444 pkg_delete.1.gz  /usr/share/man/man1

install -c -s -o root -g wheel -m 555   pkg_info /usr/sbin
install -c -o root -g wheel -m 444 pkg_info.1.gz  /usr/share/man/man1
