summaryrefslogtreecommitdiff
path: root/pkgtools/lintpkgsrc
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-01-03 17:43:15 +0000
committerrillig <rillig@pkgsrc.org>2008-01-03 17:43:15 +0000
commite770357f67d4478e95b20fab3d416f46b19d5555 (patch)
tree46f37f44f543fb7e63435d962f8f3b3a7bdd2214 /pkgtools/lintpkgsrc
parent7519dfb32c482a32569a80eb564e144753239ebc (diff)
downloadpkgsrc-e770357f67d4478e95b20fab3d416f46b19d5555.tar.gz
Imported lintpkgsrc.
lintpkgsrc checks various things on the complete pkgsrc tree.
Diffstat (limited to 'pkgtools/lintpkgsrc')
-rw-r--r--pkgtools/lintpkgsrc/DESCR1
-rw-r--r--pkgtools/lintpkgsrc/Makefile51
-rw-r--r--pkgtools/lintpkgsrc/PLIST4
3 files changed, 56 insertions, 0 deletions
diff --git a/pkgtools/lintpkgsrc/DESCR b/pkgtools/lintpkgsrc/DESCR
new file mode 100644
index 00000000000..83b81d09954
--- /dev/null
+++ b/pkgtools/lintpkgsrc/DESCR
@@ -0,0 +1 @@
+lintpkgsrc checks various things on the complete pkgsrc tree.
diff --git a/pkgtools/lintpkgsrc/Makefile b/pkgtools/lintpkgsrc/Makefile
new file mode 100644
index 00000000000..a17c266cb95
--- /dev/null
+++ b/pkgtools/lintpkgsrc/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/01/03 17:43:15 rillig Exp $
+#
+
+DISTNAME= lintpkgsrc-4.82
+CATEGORIES= pkgtools
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.NetBSD.org/Documentation/pkgsrc/
+COMMENT= Sanity checks on the complete pkgsrc tree
+
+DEPENDS+= digest>=20010101:../../pkgtools/digest
+CONFLICTS+= pkglint<4.82
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_TOOLS+= perl:run
+
+FILESDIR= ../../pkgtools/pkglint/files
+WRKSRC= ${WRKDIR}
+NO_CHECKSUM= yes
+NO_BUILD= yes
+USE_LANGUAGES= # none
+AUTO_MKDIRS= yes
+
+SUBST_CLASSES+= lp
+SUBST_STAGE.lp= post-configure
+SUBST_FILES.lp+= lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl
+.if defined(BATCH)
+SUBST_SED.lp+= -e s\|@PKGSRCDIR@\|/usr/pkgsrc\|g
+.else
+SUBST_SED.lp+= -e s\|@PKGSRCDIR@\|${PKGSRCDIR}\|g
+.endif
+SUBST_SED.lp+= -e s\|@PREFIX@\|${PREFIX}\|g
+SUBST_SED.lp+= -e s\|@MAKE@\|${MAKE:Q}\|g
+SUBST_SED.lp+= -e s\|@PERL@\|${PERL5:Q}\|g
+
+.include "../../mk/bsd.prefs.mk"
+
+do-extract:
+ cd ${FILESDIR} && cp lintpkgsrc.* ${WRKSRC}/
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc.pl ${PREFIX}/bin/lintpkgsrc
+ ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.0 ${PREFIX}/${PKGMANDIR}/cat1
+.if !empty(MANINSTALL:Mmaninstall)
+ ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.1 ${PREFIX}/${PKGMANDIR}/man1
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/pkgtools/lintpkgsrc/PLIST b/pkgtools/lintpkgsrc/PLIST
new file mode 100644
index 00000000000..99d9ca2a89e
--- /dev/null
+++ b/pkgtools/lintpkgsrc/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/01/03 17:43:15 rillig Exp $
+bin/lintpkgsrc
+man/cat1/lintpkgsrc.0
+man/man1/lintpkgsrc.1