head	1.2;
access;
symbols
	morgan_0_75:1.1.1.1 MORGAN:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2002.03.08.13.03.44;	author des;	state dead;
branches;
next	1.1;

1.1
date	2001.05.03.09.36.05;	author markm;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.05.03.09.36.05;	author markm;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Say good-bye, Linux-PAM.
@
text
@#!/bin/bash

FAKEROOT=$1
CONFD=$1$2
CONFILE=$1$3
MODULE=$4
CONF=$5

IGNORE_AGE=./.ignore_age
QUIET_INSTALL=../../.quiet_install

echo

if [ -f "$QUIET_INSTALL" ]; then
    if [ ! -f "$CONFILE" ]; then
        yes="y"
    else
        yes="skip"
    fi
elif [ -f "$IGNORE_AGE" ]; then
    echo "you don't want to be bothered with the age of your $CONFILE file"
    yes="n"
elif [ ! -f "$CONFILE" ] || [ "$CONF" -nt "$CONFILE" ]; then
    if [ -f "$CONFILE" ]; then
	echo "An older $MODULE configuration file already exists ($CONFILE)"
	echo "Do you wish to copy the $CONF file in this distribution"
	echo "to $CONFILE ? (y/n) [skip] "
        read yes
    else
	yes="y"
    fi
else
    yes="skip"
fi

if [ "$yes" = "y" ]; then
    mkdir -p $CONFD
    echo "  copying $CONF to $CONFILE"
    cp $CONF $CONFILE
else
    echo "  Skipping $CONF installation"
    if [ "$yes" = "n" ]; then
	touch "$IGNORE_AGE"
    fi
fi

echo

exit 0
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Vendor import Linux PAM 0.75
@
text
@@
