diff options
author | jmz <jmz@FreeBSD.org> | 1997-12-03 06:36:46 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1997-12-03 06:36:46 +0800 |
commit | 880f7aa1d25b7ab6f4bd5107ed6f3143dd245ca3 (patch) | |
tree | 8309c93f2de069b6fcf5a7cecb42a023b519bbf4 /sysutils | |
parent | a7e94c0febc453ceb9e973bf2ccb24f0edd7623c (diff) | |
download | freebsd-ports-gnome-880f7aa1d25b7ab6f4bd5107ed6f3143dd245ca3.tar.gz freebsd-ports-gnome-880f7aa1d25b7ab6f4bd5107ed6f3143dd245ca3.tar.zst freebsd-ports-gnome-880f7aa1d25b7ab6f4bd5107ed6f3143dd245ca3.zip |
Print a warning if mkisofs is not installed.
PR: ports/4814
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/cd-write/Makefile | 5 | ||||
-rw-r--r-- | sysutils/cd-write/pkg-install | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/sysutils/cd-write/Makefile b/sysutils/cd-write/Makefile index 00c6100d5343..f7153e24c782 100644 --- a/sysutils/cd-write/Makefile +++ b/sysutils/cd-write/Makefile @@ -3,7 +3,7 @@ # Date created: 1 May 1997 # Whom: jmz # -# $Id: Makefile,v 1.6 1997/09/25 02:06:19 jmz Exp $ +# $Id: Makefile,v 1.7 1997/10/08 07:45:44 asami Exp $ # DISTNAME= cd-write-1.4 @@ -23,4 +23,7 @@ pre-build: @cd ${WRKSRC}/c++tk; mv Makefile Makefile~; \ sed -e s:/usr/local:${PREFIX}:g <Makefile~ >Makefile +post-install: + @PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL + .include <bsd.port.mk> diff --git a/sysutils/cd-write/pkg-install b/sysutils/cd-write/pkg-install new file mode 100644 index 000000000000..992296d564ea --- /dev/null +++ b/sysutils/cd-write/pkg-install @@ -0,0 +1,18 @@ +#!/bin/sh +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi +if [ -e ${PREFIX}/bin/mkisofs ]; then + exit 0 +fi +cat <<EOF +*********************** Warning *********************** +It seems that mkisofs is not installed on your system. +You will only be able to burn audio disks or to copy +data disks. +Mkisofs is required if you want to create a filesystem +image. +******************************************************* +EOF + +exit 0 |