#!/bin/sh
#-----------------------------------------------------------------------
# /tmp/install.sh -- gnupg installation
#
# Copyright (c) 2005--2009 Alexander Dahl <post@lespocky.de>
#
# Creation:     2005-08-09  alex
# Last Update:  $Id$
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#-----------------------------------------------------------------------
PATH='/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin'

_PACKAGE_NAME='gnupg'
_FILELIST="/etc/filelist.d/${_PACKAGE_NAME}-files.txt"

echo "Installing ${_PACKAGE_NAME} ..."

### set access rights
echo "Setting correct permissions of ${_PACKAGE_NAME} files ..."
_FILES_TO_CHMOD="`grep -v ' tmp/' ${_FILELIST} | awk '/^[u|b] / {print $2":/"$6}'`"
for _idx in $_FILES_TO_CHMOD
do
    _file_to_chmod=`echo "${_idx}" | sed 's/:/ /'`
    chmod ${_file_to_chmod}
done				

exit 0
