pkgsrc/pkgtools/pkgdepgraph/Makefile

65 lines
1.6 KiB
Makefile
Raw Normal View History

2003-07-18 00:50:55 +02:00
# $NetBSD: Makefile,v 1.12 2003/07/17 22:52:17 grant Exp $
#
DISTNAME= pkgdepgraph-2.5
WRKSRC= ${WRKDIR}
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
2003-07-18 00:50:55 +02:00
MAINTAINER= atatat@NetBSD.org
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/Packages.txt
COMMENT= Visual representation of installed NetBSD packages
# removed so that pkgdepgraph can be used on "client" machines -- @@@
# DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz
USE_PERL5= YES
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_CONFIGURE= yes
DISTVER= ${DISTNAME:S/pkgdepgraph-//}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
# This doesn't create readable manual pages. "mandoc" should be added
# to zoularis.
NROFF= nroff -man
.else
NROFF= nroff -mandoc
.endif
do-extract:
${CP} ${FILESDIR}/pkgdepgraph.pl ${WRKSRC}/pkgdepgraph.pl
${CP} ${FILESDIR}/pkgdepgraph.1 ${WRKSRC}/pkgdepgraph.1.in
do-build:
.for FILE in pkgdepgraph
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
Jump to pkgdepgraph v2.0. New features (excerpts from the man page, not in proper order, so that you can better see how it fits together): -L Limit the graph to those packages that are out of date or ulti- mately depend on some package that is. -D Instead of the standard graph output, pkgdepgraph lists the packages that need to be deleted, in ``least required first'' order, so that they can be deleted without any dependency prob- lems. -R Instead of the standard graph output, emits a series of sh(1) commands that will rebuild all the out of date packages by re- building all the deleted leaf packages. -U package Generates a graph with only the out of date dependencies of package marked in red (ie, packages that are out of date but not dependencies of package will not be considered out of date). -f Force a rebuild of all dependent packages. This option is for use in conjunction with the -U option to force a rebuild of all the dependencies of a package to be updated. -O package Marks package as out of date so that you can see the impact of deleting dependent packages and rebuilding everything. -t target Changes the target of the -R output from ``install'' to target in case you want to ``make package'' or some other target. -c Inserts a ``make clean'' command in the set of instructions to rebuild packages (see the -R option) after they are installed. -C Asserts -c and adds ``CLEANDEPENDS=YES'' so that all rebuilt de- pendencies are cleaned as well. The code was also cleaned up a bit, some unused or otherwise useless variables were culled, the "multiple box" phenomenon of subgroups is fixed, and the examples were all cleaned up to take advantage of all the new features. Hey ma! Now I can update my pkgs in four easy steps! $ lintpkgsrc -i > pkgdepgraph.in $ pkgdepgraph -R pkgdepgraph.in > rebuild.sh $ pkg_delete `pkgdepgraph -D pkgdepgraph.in` $ sh rebuild.sh
2003-03-06 22:13:13 +01:00
-e 's|@PKGSRCDIR@|${_PKGSRCDIR}|g' \
-e 's|@DISTVER@|${DISTVER}|g' \
< ${WRKSRC}/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
.for FILE in pkgdepgraph
${SED} -e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
Jump to pkgdepgraph v2.0. New features (excerpts from the man page, not in proper order, so that you can better see how it fits together): -L Limit the graph to those packages that are out of date or ulti- mately depend on some package that is. -D Instead of the standard graph output, pkgdepgraph lists the packages that need to be deleted, in ``least required first'' order, so that they can be deleted without any dependency prob- lems. -R Instead of the standard graph output, emits a series of sh(1) commands that will rebuild all the out of date packages by re- building all the deleted leaf packages. -U package Generates a graph with only the out of date dependencies of package marked in red (ie, packages that are out of date but not dependencies of package will not be considered out of date). -f Force a rebuild of all dependent packages. This option is for use in conjunction with the -U option to force a rebuild of all the dependencies of a package to be updated. -O package Marks package as out of date so that you can see the impact of deleting dependent packages and rebuilding everything. -t target Changes the target of the -R output from ``install'' to target in case you want to ``make package'' or some other target. -c Inserts a ``make clean'' command in the set of instructions to rebuild packages (see the -R option) after they are installed. -C Asserts -c and adds ``CLEANDEPENDS=YES'' so that all rebuilt de- pendencies are cleaned as well. The code was also cleaned up a bit, some unused or otherwise useless variables were culled, the "multiple box" phenomenon of subgroups is fixed, and the examples were all cleaned up to take advantage of all the new features. Hey ma! Now I can update my pkgs in four easy steps! $ lintpkgsrc -i > pkgdepgraph.in $ pkgdepgraph -R pkgdepgraph.in > rebuild.sh $ pkg_delete `pkgdepgraph -D pkgdepgraph.in` $ sh rebuild.sh
2003-03-06 22:13:13 +01:00
-e 's|@PKGSRCDIR@|${_PKGSRCDIR}|g' \
< ${WRKSRC}/${FILE}.1.in \
> ${WRKSRC}/${FILE}.1
${NROFF} ${WRKSRC}/${FILE}.1 >${WRKSRC}/${FILE}.0
.endfor
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkgdepgraph ${PREFIX}/bin/pkgdepgraph
${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.0 ${PREFIX}/man/cat1
${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.1 ${PREFIX}/man/man1
post-install:
@${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"