- Kill DEINSTALL
- Replace INSTALL with MESSAGE, @sample and @exec - Bump PKGNAME I guess so naddy@
This commit is contained in:
parent
0fcb286a79
commit
f257928094
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2004/05/21 22:55:41 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2004/11/27 18:33:31 alek Exp $
|
||||
|
||||
COMMENT= "filter to print a wide range of file formats"
|
||||
|
||||
DISTNAME= apsfilter-7.2.5
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
CATEGORIES= print
|
||||
|
||||
HOMEPAGE= http://www.apsfilter.org/
|
||||
|
@ -1,23 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2004/04/14 10:44:13 xsa Exp $
|
||||
#
|
||||
# apsfilter de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
ETCDIR=${SYSCONFDIR}/apsfilter
|
||||
|
||||
if [ ${PKG_DELETE_EXTRA} != Yes -a -d $ETCDIR ]; then
|
||||
echo ""
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -fr $ETCDIR"
|
||||
echo "|"
|
||||
echo "+---------------"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,77 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2003/05/29 11:09:46 sturm Exp $
|
||||
#
|
||||
# Pre/post-installation setup of sane-backends
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
ETCDIR=${SYSCONFDIR}/apsfilter
|
||||
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The directory ${ETCDIR} exists on your system. It"
|
||||
echo "| has NOT been updated."
|
||||
}
|
||||
|
||||
# Function: install the a2ps*.cfg where it is supposed to be.
|
||||
#
|
||||
do_install()
|
||||
{
|
||||
install -d -g wheel -o root ${ETCDIR}
|
||||
ln -sn ${PREFIX}/share/apsfilter ${ETCDIR}/basedir
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To configure the $1 package, you have to run"
|
||||
echo "|"
|
||||
echo "| ${ETCDIR}/basedir/SETUP"
|
||||
echo "|"
|
||||
echo "| as root."
|
||||
}
|
||||
|
||||
do_end_notice()
|
||||
{
|
||||
echo "|"
|
||||
echo "| Depending on your printer and what files you want to print,"
|
||||
echo "| $1 needs some software for conversion like ghostscript,"
|
||||
echo "| ImageMagick or teTeX. For details, see section 3.1 of"
|
||||
echo "| file:$PREFIX/share/doc/apsfilter/handbook.html"
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
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 ${ETCDIR} ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
do_end_notice $1
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
10
print/apsfilter/pkg/MESSAGE
Normal file
10
print/apsfilter/pkg/MESSAGE
Normal file
@ -0,0 +1,10 @@
|
||||
To configure the apsfilter package, you have to run
|
||||
|
||||
${SYSCONFDIR}/apsfilter/basedir/SETUP
|
||||
|
||||
as root.
|
||||
|
||||
Depending on your printer and what files you want to print,
|
||||
apsfilter needs some software for conversion like ghostscript,
|
||||
ImageMagick or teTeX. For details, see section 3.1 of
|
||||
file ${PREFIX}/share/doc/apsfilter/handbook.html
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2004/09/15 18:32:13 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2004/11/27 18:33:31 alek Exp $
|
||||
bin/aps2file
|
||||
bin/apsfilter-bug
|
||||
bin/apspreview
|
||||
@ -338,4 +338,6 @@ share/doc/apsfilter/README.TeX
|
||||
share/doc/apsfilter/apsfilter4.png
|
||||
share/doc/apsfilter/handbook.html
|
||||
share/doc/apsfilter/paper
|
||||
@extraunexec rm -rf ${SYSCONFDIR}/apsfilter
|
||||
@sample ${SYSCONFDIR}/apsfilter/
|
||||
@exec ln -sh ${PREFIX}/share/apsfilter ${SYSCONFDIR}/apsfilter/basedir
|
||||
@unexec rm -f ${SYSCONFDIR}/apsfilter/basedir
|
||||
|
Loading…
Reference in New Issue
Block a user