diff options
author | Brian Somers <brian@FreeBSD.org> | 2001-08-21 15:29:13 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2001-08-21 15:29:13 +0000 |
commit | 98d4e4780ee8c0f06a616d68d52a493578f45967 (patch) | |
tree | 5b7737434ae72a176ca6c7a2cacd42a5fe01f864 /security/op/pkg-install | |
parent | 76951925331fa5f4a630d86b6eef3a333370d83b (diff) | |
download | ports-98d4e4780ee8c0f06a616d68d52a493578f45967.tar.gz ports-98d4e4780ee8c0f06a616d68d52a493578f45967.zip |
Tidy things up a bit
Submitted by: Cyrille Lefevre <clefevre@citeweb.net> (maintainer)
Notes
Notes:
svn path=/head/; revision=46596
Diffstat (limited to 'security/op/pkg-install')
-rw-r--r-- | security/op/pkg-install | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/security/op/pkg-install b/security/op/pkg-install index 7e4789e6398e..3a974814cbf3 100644 --- a/security/op/pkg-install +++ b/security/op/pkg-install @@ -6,34 +6,32 @@ PKGNAME=$1 ACTION=$2 CONF_DIR=${PKG_PREFIX}/etc -SAMP_DIR=${CONF_DIR} CONF_FILE=op.access CONF_OWN=root CONF_GRP=wheel CONF_MODE=400 -SAMP_FILE=${CONF_FILE} SAMP_SUFX=.sample INSTALL=install CMP=cmp RM=rm -case $ACTION in +case "$ACTION" in POST-INSTALL) if [ -f ${CONF_DIR}/${CONF_FILE} ]; then echo "$PKGNAME: Will not overwrite existing ${CONF_DIR}/${CONF_FILE} file." else ${INSTALL} -c -o ${CONF_OWN} -g ${CONF_GRP} -m ${CONF_MODE} \ - ${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX} \ + ${CONF_DIR}/${CONF_FILE}${SAMP_SUFX} \ ${CONF_DIR}/${CONF_FILE} fi ;; DEINSTALL) - if ${CMP} -s ${SAMP_DIR}/${SAMP_FILE}${SAMP_SUFX} \ + if ${CMP} -s ${CONF_DIR}/${CONF_FILE}${SAMP_SUFX} \ ${CONF_DIR}/${CONF_FILE}; then ${RM} -f ${CONF_DIR}/${CONF_FILE} else @@ -42,13 +40,11 @@ DEINSTALL) ;; PRE-INSTALL|POST-DEINSTALL) - exit 0 ;; *) exit 1 ;; - esac exit |