c77d3c5335
Mainly done by pkglint, manually reviewed and improved in some few cases.
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2018/01/27 19:07:47 rillig Exp $
|
|
|
|
DISTNAME= pkgnih-0.14.1
|
|
PKGNAME= ${DISTNAME:S/pkgnih/nih/}
|
|
CATEGORIES= pkgtools
|
|
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/cheusov/nih/
|
|
MASTER_SITES+= 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.66.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"
|