diff options
author | mharo <mharo@FreeBSD.org> | 1999-04-19 06:52:37 +0800 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 1999-04-19 06:52:37 +0800 |
commit | 1cf90e01b660a92bdf2a3e43e68a33ffea6c3af5 (patch) | |
tree | 08bea833cb0275659e9c8b5d6be74ca2665231f3 | |
parent | c75196d4a3516f7c21cb012165ccde65bba7f7df (diff) | |
download | freebsd-ports-graphics-1cf90e01b660a92bdf2a3e43e68a33ffea6c3af5.tar.gz freebsd-ports-graphics-1cf90e01b660a92bdf2a3e43e68a33ffea6c3af5.tar.zst freebsd-ports-graphics-1cf90e01b660a92bdf2a3e43e68a33ffea6c3af5.zip |
Add warning if the games distro isn't installed - it is required
for this port to install.
Obtained from: bento.freebsd.org
-rw-r--r-- | misc/fortuneit/Makefile | 8 | ||||
-rw-r--r-- | misc/fortuneit/pkg-plist | 1 | ||||
-rw-r--r-- | misc/fortuneit/pkg-plist.off | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/misc/fortuneit/Makefile b/misc/fortuneit/Makefile index 16cb4c9a36d..9fae4a8cb5b 100644 --- a/misc/fortuneit/Makefile +++ b/misc/fortuneit/Makefile @@ -3,7 +3,7 @@ # Date created: 25-01-1999 # Whom: gmarco@scotty.masternet.it # -# $Id$ +# $Id: Makefile,v 1.1.1.1 1999/04/02 04:39:34 steve Exp $ # DISTNAME= fortune.it-1.51 @@ -41,6 +41,12 @@ do-install: @${INSTALL_DATA} ${WRKSRC}/zozzital ${PREFIX}/share/games/fortune .endif +pre-install: +.if exists(${STRCMD}) + @ ${ECHO_MSG} "Please install the games distribution" + @ exit 1 +.endif + post-install: @${STRCMD} ${PREFIX}/share/games/fortune/italia .if defined(INSTALL_OFFENSIVE) diff --git a/misc/fortuneit/pkg-plist b/misc/fortuneit/pkg-plist index e6598ac626d..96d1a22da98 100644 --- a/misc/fortuneit/pkg-plist +++ b/misc/fortuneit/pkg-plist @@ -1,2 +1,3 @@ share/games/fortune/italia share/games/fortune/italia.dat +@dirrm share/games/fortune diff --git a/misc/fortuneit/pkg-plist.off b/misc/fortuneit/pkg-plist.off index 4da2448fba2..31657f2158d 100644 --- a/misc/fortuneit/pkg-plist.off +++ b/misc/fortuneit/pkg-plist.off @@ -2,3 +2,5 @@ share/games/fortune/italia share/games/fortune/zozzital share/games/fortune/italia.dat share/games/fortune/zozzital.dat +@dirrm share/games/fortune +@dirrm share/games |