948e1958da
Most important parts of pkg_grep_summary, a part of pkgtools/pkg_summary-utils, was reimplemented in C. As a result "nih {search,info,meta,leaf,install,remove,deps}" should work faster. nih install: - if pkg_update_plan(1) fails, nih(1) exits with pkg_update_plan's exit status. - packages to be installed or removed are output in sorted order. nih {search,meta,info}: - "nih meta" now defaults to -1 mode (internally). - documentation for -1|-3|-9 ads added for "nih {info,meta}" commands - "nih info" now defaults to -3 mode. - "nih {search,meta,info}" now work correctly with -{o,i} options if ~/.nih/pkg_summary.txt is absent. - new option -l was added to "nih {search,info}" that outputs package file list. Summary for installed packages is cached in ~/.nih/pkg_inst_summary.txt. "nih {refresh,search,info,meta,deps,list} -i" use this file and update it when necessary. nih refresh: - Option -P was added for fully rescanning pkgsrc tree. - The default value for PKGSRCDIR is not determined at build time anymore. As a result "nih refresh -p" does not try to access /tree/pkgsrc used by bouyer@ who builds official NetBSD binary packages. Now PKGSRCDIR defaults to /usr/pkgsrc. - "nih refresh -p" shows progress counter (the number of scanned packages) unless -m is in PSS_OPTIONS. - option -i was added that updates summaries for installed packages (~/.nih/pkg_inst_summary.txt). nih remove: - does not try to create $CACHEDIR and "cd" to it. nih list: - was completely reimplemented and simplified. - new option -p was added that outputs pkgsrc tree packages. nih deps: - new options -b and -p were added for working with binary repository and pkgsrc scanned packages (pkg_summary.txt ad pkg_src_summary.txt respectively) - option -1 was added that outputs direct dependencies or dependents. nih/config: - better conversion from "uname -r" to repository URL. - REPOSITORY for SunOS defaults to smartos.org. Support for summaries with no PKGPATH, e.g., compat50-5.1.tgz, was added. Option -I for "list", "deps', "meta", "info" and "search" was renamed to -i. Option -I is supported for backward compatibility. package_search.pdf was updated, fixed and improved.
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2014/01/14 01:16:28 cheusov Exp $
|
|
|
|
DISTNAME= pkgnih-0.12.0
|
|
PKGNAME= ${DISTNAME:S/pkgnih/nih/}
|
|
CATEGORIES= pkgtools
|
|
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/cheusov/nih/ \
|
|
http://mova.org/~cheusov/pub/pkgnih/
|
|
|
|
MAINTAINER= cheusov@NetBSD.org
|
|
HOMEPAGE= https://github.com/cheusov/pkgnih
|
|
COMMENT= Package manager for pkgsrc
|
|
LICENSE= 2-clause-bsd
|
|
|
|
DEPENDS+= pkg_summary-utils>=0.63.0:../../pkgtools/pkg_summary-utils
|
|
DEPENDS+= digest-[0-9]*:../../pkgtools/digest
|
|
DEPENDS+= pkg_install>=20100915:../../pkgtools/pkg_install
|
|
|
|
BUILD_DEPENDS+= mk-configure>=0.21.0:../../devel/mk-configure
|
|
|
|
CONFLICTS= pkg_status-[0-9]*
|
|
SUPERSEDES= pkgnih-[0-9]*
|
|
|
|
BUILD_TARGET= all all-doc
|
|
INSTALL_TARGET= install install-doc
|
|
|
|
EGDIR= ${PREFIX}/share/examples/nih
|
|
|
|
CONF_FILES= ${EGDIR}/nih.conf \
|
|
${PKG_SYSCONFDIR}/nih/config
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/nih
|
|
|
|
REPLACE_INTERPRETER+= runawk
|
|
REPLACE.runawk.old= .*runawk
|
|
REPLACE.runawk.new= ${PREFIX}/bin/runawk
|
|
REPLACE_FILES.runawk= nih/pkg_update_plan.in nih/cmp2hr.in \
|
|
nih/pkg_create_fake.in nih/analyse_conflicts.in
|
|
|
|
MAKE_ENV+= PKG_DBDIR=${PKG_DBDIR}
|
|
MAKE_ENV+= REAL_ROOT_USER=${REAL_ROOT_USER}
|
|
MAKE_ENV+= REAL_ROOT_GROUP=${REAL_ROOT_GROUP}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == NetBSD || ${OPSYS} == FreeBSD || ${OPSYS} == OpenBSD || \
|
|
${OPSYS} == DragonFly || ${OPSYS} == MirBSD
|
|
FTP_CMD=/usr/bin/ftp
|
|
.else
|
|
FTP_CMD=${PREFIX}/bin/ftp
|
|
DEPENDS+= tnftp-[0-9]*:../../net/tnftp
|
|
.endif
|
|
|
|
MAKE_ENV+= FTP=${FTP_CMD:Q} PKG_TOOLS_BIN=${PKG_TOOLS_BIN}
|
|
|
|
.if ${OPSYS} =="SunOS" #&& empty(OS_VERSION:M5.11*)
|
|
REPLACE_SH+= nih/nih.in nih/pkg_status.in
|
|
.endif
|
|
|
|
.include "../../devel/mk-configure/mk-c.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|