- move examples from share/minicom to share/examples/minicom
- ${FOO} -> $FOO in DEINSTALL/INSTALL
This commit is contained in:
parent
50d20074bb
commit
a60d676442
@ -1,9 +1,15 @@
|
||||
# $OpenBSD: Makefile,v 1.27 2000/06/14 16:45:01 form Exp $
|
||||
# $OpenBSD: Makefile,v 1.28 2000/08/31 00:40:30 brad Exp $
|
||||
|
||||
PKGNAME= minicom-1.83.1
|
||||
DISTNAME= ${PKGNAME}.src
|
||||
PKGNAME= minicom-1.83.1
|
||||
CATEGORIES= comms
|
||||
NEED_VERSION= 1.230
|
||||
NEED_VERSION= 1.320
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
MASTER_SITE_SUBDIR= apps/serialcomm/dialout
|
||||
|
||||
BUILD_DEPENDS= msgfmt::devel/gettext
|
||||
RUN_DEPENDS= kermit::comms/kermit \
|
||||
lrz::comms/lrzsz
|
||||
|
||||
MAINTAINER= form@openbsd.org
|
||||
|
||||
@ -12,15 +18,6 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
||||
http://www.pp.clinet.fi/~walker/mc-dev/ \
|
||||
http://www.clinet.fi/~walker/ \
|
||||
http://www.pp.clinet.fi/~walker/
|
||||
MASTER_SITE_SUBDIR= apps/serialcomm/dialout
|
||||
|
||||
BUILD_DEPENDS= msgfmt::devel/gettext
|
||||
RUN_DEPENDS= kermit::comms/kermit lrz::comms/lrzsz
|
||||
|
||||
WRKDIST= ${WRKDIR}/${PKGNAME}/src
|
||||
|
||||
pre-build:
|
||||
@ -29,7 +26,8 @@ pre-build:
|
||||
${FILESDIR}/xminicom.in > ${WRKBUILD}/xminicom
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/minicom
|
||||
${INSTALL_DATA} ${WRKBUILD}/minicom.users ${PREFIX}/share/minicom
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/minicom
|
||||
${INSTALL_DATA} ${WRKBUILD}/minicom.users \
|
||||
${PREFIX}/share/examples/minicom
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2000/07/19 09:31:17 brad Exp $
|
||||
# $OpenBSD: DEINSTALL,v 1.3 2000/08/31 00:40:30 brad Exp $
|
||||
#
|
||||
# minicom de-installation
|
||||
|
||||
@ -8,13 +8,13 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_DIR=/etc/minicom
|
||||
|
||||
if [ -d ${CONFIG_DIR} ]; then
|
||||
if [ -d $CONFIG_DIR ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -rf ${CONFIG_DIR}"
|
||||
echo "| rm -rf $CONFIG_DIR"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.2 2000/06/03 06:20:57 form Exp $
|
||||
# $OpenBSD: INSTALL,v 1.3 2000/08/31 00:40:31 brad Exp $
|
||||
#
|
||||
# Pre/post-installation setup of minicom
|
||||
|
||||
@ -9,61 +9,57 @@ set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_DIR=/etc/minicom
|
||||
SAMPLE_CONFIG_DIR=${PREFIX}/share/minicom
|
||||
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/minicom
|
||||
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 configuration files in ${CONFIG_DIR},"
|
||||
echo "| have NOT been changed. You may want to compare them to the"
|
||||
echo "| current sample files in ${SAMPLE_CONFIG_DIR},"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 configuration files in $CONFIG_DIR,"
|
||||
echo "| have NOT been changed. You may want to compare them to the"
|
||||
echo "| current sample files in $SAMPLE_CONFIG_DIR,"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# Function: install default config files from the samples
|
||||
#
|
||||
do_install()
|
||||
{
|
||||
install -o uucp -g dialer -m 755 -d ${CONFIG_DIR}
|
||||
install -o root -g wheel -m 644 ${SAMPLE_CONFIG_DIR}/* ${CONFIG_DIR}
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The $1 configuration files have been installed into"
|
||||
echo "| ${CONFIG_DIR}. Please view these files and change"
|
||||
echo "| the configuration to meet your needs."
|
||||
echo "+---------------"
|
||||
echo
|
||||
install -d -o root -g wheel -m 755 $CONFIG_DIR
|
||||
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/* $CONFIG_DIR
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The $1 configuration files have been installed into"
|
||||
echo "| $CONFIG_DIR. Please view these files and change"
|
||||
echo "| the configuration to meet your needs."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -d ${CONFIG_DIR} ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -d $CONFIG_DIR ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.9 2000/08/31 00:22:56 brad Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.10 2000/08/31 00:40:31 brad Exp $
|
||||
bin/ascii-xfr
|
||||
bin/minicom
|
||||
bin/runscript
|
||||
@ -45,6 +45,7 @@ share/doc/minicom/tables/mc.iso
|
||||
share/doc/minicom/tables/mc.noconv
|
||||
share/doc/minicom/tables/mc.pc8
|
||||
share/doc/minicom/tables/mc.sf7
|
||||
share/examples/minicom/minicom.users
|
||||
share/locale/fi_FI/LC_MESSAGES/minicom.mo
|
||||
share/locale/fr/LC_MESSAGES/minicom.mo
|
||||
share/locale/ja/LC_MESSAGES/minicom.mo
|
||||
@ -52,8 +53,7 @@ share/locale/ja_JP.SJIS/LC_MESSAGES/minicom.mo
|
||||
share/locale/ko/LC_MESSAGES/minicom.mo
|
||||
share/locale/pl/LC_MESSAGES/minicom.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/minicom.mo
|
||||
share/minicom/minicom.users
|
||||
@dirrm share/minicom
|
||||
@dirrm share/doc/minicom/tables
|
||||
@dirrm share/doc/minicom/demos
|
||||
@dirrm share/doc/minicom
|
||||
@dirrm share/examples/minicom
|
||||
|
Loading…
x
Reference in New Issue
Block a user