summaryrefslogtreecommitdiff
path: root/pkgtools/pkgfind/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-06-22 20:01:01 +0000
committerxtraeme <xtraeme>2004-06-22 20:01:01 +0000
commit952a2ca0a88adf42209872765afa6421c0bc9981 (patch)
tree21511a67d1f2966746ec94a206762e7acfd33d73 /pkgtools/pkgfind/Makefile
parente5df2a4b4ff4003c0be470d57dd506d01e7732fc (diff)
downloadpkgsrc-952a2ca0a88adf42209872765afa6421c0bc9981.tar.gz
Initial import of pkgfind-20040622 from pkgsrc-wip, written by
Peter Postma. pkgfind can find packages in pkgsrc. It tries to find packages which matches a keyword in the package name.
Diffstat (limited to 'pkgtools/pkgfind/Makefile')
-rw-r--r--pkgtools/pkgfind/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgtools/pkgfind/Makefile b/pkgtools/pkgfind/Makefile
new file mode 100644
index 00000000000..53633829e88
--- /dev/null
+++ b/pkgtools/pkgfind/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/22 20:01:01 xtraeme Exp $
+
+DISTNAME= pkgfind-20040622
+CATEGORIES= pkgtools
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= peter@pointless.nl
+COMMENT= Find packages by package name in pkgsrc
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+NO_BUILDLINK= yes
+NO_CONFIGURE= yes
+NO_CHECKSUM= yes
+
+INSTALLATION_DIRS= bin man/cat1 man/man1
+
+NROFF= nroff -mandoc
+
+do-extract:
+ @${CP} -Rp ${FILESDIR} ${WRKSRC}
+
+do-build:
+ ${CC} ${CFLAGS} -o ${WRKSRC}/pkgfind ${WRKSRC}/pkgfind.c
+ ${NROFF} ${WRKSRC}/pkgfind.1 > ${WRKSRC}/pkgfind.cat1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pkgfind ${PREFIX}/bin/pkgfind
+ ${INSTALL_MAN} ${WRKSRC}/pkgfind.1 ${PREFIX}/man/man1/pkgfind.1
+ ${INSTALL_MAN} ${WRKSRC}/pkgfind.cat1 ${PREFIX}/man/cat1/pkgfind.0
+
+SUBST_CLASSES= path
+SUBST_STAGE.path= post-patch
+SUBST_FILES.path= pkgfind.c pkgfind.1
+SUBST_SED.path= -e "s,/usr/pkgsrc,${_PKGSRCDIR},g"
+SUBST_MESSAGE.path= "Adjusting pkgsrc directory."
+
+.include "../../mk/bsd.pkg.mk"