#
# Could use ./install.sh, but then we wouldn't get
# the protection of install_config_file
#
mkdir  -p  $INSTALL_ROOT/usr/share/hibernate                            &&
install  -o root  -g root  -m 0755  hibernate.sh                        \
         $INSTALL_ROOT/usr/sbin/hibernate                               &&

local CONFIG_FILE

for CONFIG_FILE in *.conf; do
	install_config_file  $CONFIG_FILE                               \
                     $INSTALL_ROOT/etc/hibernate/$CONFIG_FILE
done &&
cp  -r  hibernate.vim  scriptlets.d  $INSTALL_ROOT/usr/share/hibernate  &&
cp  hibernate.8  $INSTALL_ROOT/usr/share/man/man8                       &&
cp  hibernate.conf.5  $INSTALL_ROOT/usr/share/man/man5
