pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/cowsay Handle installation ourselves so that file...
details: https://anonhg.NetBSD.org/pkgsrc/rev/65c5db047d3b
branches: trunk
changeset: 471563:65c5db047d3b
user: snj <snj%pkgsrc.org@localhost>
date: Mon Mar 29 06:36:32 2004 +0000
description:
Handle installation ourselves so that files are owned by the proper
users.
Fixes PR pkg/24251.
Don't install a useless cow. Bump PKGREVISION for this part.
diffstat:
misc/cowsay/Makefile | 17 +++++++++++++++--
misc/cowsay/PLIST | 3 +--
2 files changed, 16 insertions(+), 4 deletions(-)
diffs (53 lines):
diff -r 68acdeccac98 -r 65c5db047d3b misc/cowsay/Makefile
--- a/misc/cowsay/Makefile Mon Mar 29 06:05:10 2004 +0000
+++ b/misc/cowsay/Makefile Mon Mar 29 06:36:32 2004 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2003/07/17 21:48:50 grant Exp $
+# $NetBSD: Makefile,v 1.5 2004/03/29 06:36:32 snj Exp $
DISTNAME= cowsay-3.03
+PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.nog.net/pub/tony/cowsay/
@@ -10,10 +11,22 @@
USE_PERL5= # defined
+SUBST_CLASSES+= pap
+SUBST_STAGE.pap= pre-install # after patch to avoid sneaking into patches
+SUBST_MESSAGE.pap= Adjusting paths to perl and the cows
+SUBST_FILES.pap= cowsay
+SUBST_SED.pap= -e "s|%BANGPERL%|!${PERL5}|" -e "s|%PREFIX%|${PREFIX}|"
+
NO_CONFIGURE= # defined
NO_BUILD= # defined
+INSTALLATION_DIRS= bin man/man1 share/cows
+
do-install:
- cd ${WRKSRC}; ${SH} install.sh ${PREFIX}
+ ${INSTALL_SCRIPT} ${WRKSRC}/cowsay ${PREFIX}/bin
+ cd ${PREFIX}/bin; ${LN} -s cowsay cowthink
+ ${INSTALL_DATA} ${WRKSRC}/cowsay.1 ${PREFIX}/man/man1
+ cd ${PREFIX}/man/man1; ${LN} -s cowsay.1 cowthink.1
+ ${INSTALL_DATA} ${WRKSRC}/cows/*.cow ${PREFIX}/share/cows
.include "../../mk/bsd.pkg.mk"
diff -r 68acdeccac98 -r 65c5db047d3b misc/cowsay/PLIST
--- a/misc/cowsay/PLIST Mon Mar 29 06:05:10 2004 +0000
+++ b/misc/cowsay/PLIST Mon Mar 29 06:36:32 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:27:48 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/03/29 06:36:32 snj Exp $
bin/cowsay
bin/cowthink
man/man1/cowsay.1
@@ -25,7 +25,6 @@
share/cows/koala.cow
share/cows/kosh.cow
share/cows/luke-koala.cow
-share/cows/mech-and-cow
share/cows/meow.cow
share/cows/milk.cow
share/cows/moofasa.cow
Home |
Main Index |
Thread Index |
Old Index