diff options
author | snj <snj@pkgsrc.org> | 2004-03-29 06:36:32 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2004-03-29 06:36:32 +0000 |
commit | 8bbe60b9a912dabd66c1c43ae7ec43207843d829 (patch) | |
tree | 998b50320304c33a580ae39ae50dec99cb5058cc /misc/cowsay/Makefile | |
parent | 76a9de9d4701e8f3e22d5392da4c987af0f74ef8 (diff) | |
download | pkgsrc-8bbe60b9a912dabd66c1c43ae7ec43207843d829.tar.gz |
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 (limited to 'misc/cowsay/Makefile')
-rw-r--r-- | misc/cowsay/Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/misc/cowsay/Makefile b/misc/cowsay/Makefile index a26799a724a..819ef690cf7 100644 --- a/misc/cowsay/Makefile +++ b/misc/cowsay/Makefile @@ -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 @@ COMMENT= Configurable talking cow 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" |