Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
# $NetBSD: bin-install.mk,v 1.23 2011/11/05 17:04:42 tcort Exp $
# $NetBSD: bin-install.mk,v 1.25 2016/06/16 18:28:45 mspo Exp $
#
# This file provides the following targets:
@@ -31,7 +31,8 @@
# replaced with OS release ("1.5", ...) and architecture ("mipsel", ...)
.if ${OPSYS} == "NetBSD"
BINPKG_SITES?= \
ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$${arch}/$${rel}
http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$${arch}/$${rel} \
http://ftp6.NetBSD.org/pub/pkgsrc/packages/NetBSD/$${arch}/$${rel}
.elif ${OPSYS} == "Minix"
BINPKG_SITES?= \
ftp://ftp.minix3.org/pub/minix/packages/$$(${UNAME} -r)/$${arch}
+6 -9
View File
@@ -1,4 +1,4 @@
# $NetBSD: bsd.install.mk,v 1.15 2014/12/06 23:28:18 agc Exp $
# $NetBSD: bsd.install.mk,v 1.16 2016/04/10 15:58:02 joerg Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to installing packages.
@@ -17,14 +17,12 @@ _COOKIE.install= ${WRKDIR}/.install_done
######################################################################
### install (PUBLIC)
######################################################################
### install is a public target to install the package either by
### depending on stage-install (_USE_DESTDIR=no) or package-install
### (_USE_DESTDIR!=no).
### install is a public target to install the package by depending
### on stage-package-install or package-install. The difference is
### a package is created in the public PACKAGES directory.
###
.PHONY: install
.if ${_USE_DESTDIR} == "no"
install: stage-install
.elif ${_KEEP_BIN_PKGS} == "no"
.if ${_KEEP_BIN_PKGS} == "no"
install: stage-package-install
.else
install: package-install
@@ -34,8 +32,7 @@ install: package-install
### stage-install (PUBLIC)
######################################################################
### stage-install is a public target to install the package to
### ${PREFIX} (_USE_DESTDIR=no) or to ${DESTDIR}${PREFIX}
### (_USE_DESTDIR!=no)
### to ${DESTDIR}${PREFIX}.
###
.PHONY: stage-install
.if !defined(NO_INSTALL)
+1 -4
View File
@@ -1,4 +1,4 @@
# $NetBSD: deinstall.mk,v 1.11 2011/10/15 00:23:09 reed Exp $
# $NetBSD: deinstall.mk,v 1.12 2016/04/10 15:58:02 joerg Exp $
# DEINSTALLDEPENDS controls whether dependencies and dependents are also
# removed when a package is de-installed. The valid values are:
@@ -31,9 +31,6 @@ deinstall: su-target
_SU_DEINSTALL_TARGETS= acquire-deinstall-lock
_SU_DEINSTALL_TARGETS+= _pkgformat-deinstall
_SU_DEINSTALL_TARGETS+= release-deinstall-lock
.if ${_USE_DESTDIR} == "no"
_SU_DEINSTALL_TARGETS+= install-clean
.endif
su-deinstall: ${_SU_DEINSTALL_TARGETS}
.PHONY: acquire-deinstall-lock release-deinstall-lock
+3 -31
View File
@@ -1,4 +1,4 @@
# $NetBSD: install.mk,v 1.66 2013/01/05 07:32:49 sbd Exp $
# $NetBSD: install.mk,v 1.69 2016/07/26 08:41:36 jperkin Exp $
#
# This file provides the code for the "install" phase.
#
@@ -153,14 +153,6 @@ install-check-version: ${_COOKIE.extract}
${RECURSIVE_MAKE} ${MAKEFLAGS} build ;; \
esac
######################################################################
### The targets below are run with elevated privileges.
######################################################################
.PHONY: acquire-install-localbase-lock release-install-localbase-lock
acquire-install-localbase-lock: acquire-localbase-lock
release-install-localbase-lock: release-localbase-lock
######################################################################
### install-all, su-install-all (PRIVATE)
######################################################################
@@ -168,13 +160,6 @@ release-install-localbase-lock: release-localbase-lock
### the built software, register the software installation, and run
### some sanity checks.
###
.if ${_USE_DESTDIR} != "user-destdir"
_INSTALL_ALL_TARGETS+= acquire-install-localbase-lock
.endif
.if ${_USE_DESTDIR} == "no"
_INSTALL_ALL_TARGETS+= _pkgformat-check-conflicts
_INSTALL_ALL_TARGETS+= _pkgformat-check-installed
.endif
_INSTALL_ALL_TARGETS+= install-check-umask
.if empty(CHECK_FILES:M[nN][oO]) && !empty(CHECK_FILES_SUPPORTED:M[Yy][Ee][Ss])
_INSTALL_ALL_TARGETS+= check-files-pre
@@ -186,9 +171,6 @@ _INSTALL_ALL_TARGETS+= install-dirs-from-PLIST
.elif defined(AUTO_MKDIRS) && !empty(AUTO_MKDIRS:M[Yy][Ee][Ss])
_INSTALL_ALL_TARGETS+= install-dirs-from-PLIST
.endif
.if ${_USE_DESTDIR} == "no"
_INSTALL_ALL_TARGETS+= pre-install-script
.endif
_INSTALL_ALL_TARGETS+= pre-install
_INSTALL_ALL_TARGETS+= do-install
_INSTALL_ALL_TARGETS+= post-install
@@ -201,18 +183,8 @@ _INSTALL_ALL_TARGETS+= install-script-data
.if empty(CHECK_FILES:M[nN][oO]) && !empty(CHECK_FILES_SUPPORTED:M[Yy][Ee][Ss])
_INSTALL_ALL_TARGETS+= check-files-post
.endif
.if ${_USE_DESTDIR} == "no"
_INSTALL_ALL_TARGETS+= post-install-script
.endif
.if ${_USE_DESTDIR} == "no"
_INSTALL_ALL_TARGETS+= _pkgformat-register
.else
_INSTALL_ALL_TARGETS+= _pkgformat-generate-metadata
.endif
_INSTALL_ALL_TARGETS+= privileged-install-hook
.if ${_USE_DESTDIR} != "user-destdir"
_INSTALL_ALL_TARGETS+= release-install-localbase-lock
.endif
_INSTALL_ALL_TARGETS+= error-check
.PHONY: install-all su-install-all
@@ -315,7 +287,7 @@ INSTALL_DIRS?= ${BUILD_DIRS}
INSTALL_MAKE_FLAGS?= # none
INSTALL_TARGET?= install ${USE_IMAKE:D${NO_INSTALL_MANPAGES:D:Uinstall.man}}
DESTDIR_VARNAME?= DESTDIR
.if ${_USE_DESTDIR} != "no" && !empty(DESTDIR_VARNAME)
.if !empty(DESTDIR_VARNAME)
INSTALL_ENV+= ${DESTDIR_VARNAME}=${DESTDIR:Q}
INSTALL_MAKE_FLAGS+= ${DESTDIR_VARNAME}=${DESTDIR:Q}
.endif
@@ -370,7 +342,7 @@ install-strip-debug: plist
_PLIST_REGEXP.info= \
^([^\/]*\/)*${PKGINFODIR}/[^/]*(\.info)?(-[0-9]+)?(\.gz)?$$
_PLIST_REGEXP.man= \
^([^/]*/)+(man[1-9ln]/[^/]*\.[1-9ln]|cat[1-9ln]/[^/]*\.[0-9])(\.gz)?$$
^([^/]*/)+((man|html)[1-9ln](am|f)?/[^/]*\.([1-9ln](am|f)?|html)|cat[1-9ln](am|f)?/[^/]*\.[0-9])(\.gz)?$$
_DOC_COMPRESS= \
${PKGSRC_SETENV} PATH=${PATH:Q} \
+3 -16
View File
@@ -1,4 +1,4 @@
# $NetBSD: replace.mk,v 1.17 2015/09/07 19:23:47 gdt Exp $
# $NetBSD: replace.mk,v 1.18 2016/04/10 15:58:02 joerg Exp $
#
# Public targets:
#
@@ -13,11 +13,8 @@
#
# Private targets that must be defined by the package system format:
#
# _pkgformat-replace:
# Updates a package in-place on the system (USE_DESTDIR=no).
#
# _pkgformat-destdir-replace:
# Updates a package in-place on the system (USE_DESTDIR=yes).
# Updates a package in-place on the system.
#
# _pkgformat-undo-replace:
# Undoes a previous "make _pkgformat-replace".
@@ -25,9 +22,7 @@
# _pkgformat-destdir-undo-replace:
# Undoes a previous "make _pkgformat-destdir-replace".
.if ${_USE_DESTDIR} == "no"
_REPLACE_TARGETS+= ${_PKGSRC_BUILD_TARGETS}
.elif ${_KEEP_BIN_PKGS} == "no"
.if ${_KEEP_BIN_PKGS} == "no"
_REPLACE_TARGETS+= stage-package-create
.else
_REPLACE_TARGETS+= package
@@ -49,11 +44,7 @@ replace: barrier
replace-message: .PHONY
@${PHASE_MSG} "Replacing for ${PKGNAME}"
.if ${_USE_DESTDIR} == "no"
su-replace: .PHONY _pkgformat-replace
.else
su-replace: .PHONY _pkgformat-destdir-replace
.endif
MAKEFLAGS.su-replace= _UPDATE_RUNNING=yes
MAKEFLAGS.su-replace+= PKGNAME_REQD=${PKGNAME_REQD:Q}
@@ -67,9 +58,5 @@ undo-replace-message: .PHONY
@${PHASE_MSG} "Undoing replacement for ${PKGNAME}"
@${WARNING_MSG} "experimental target - DATA LOSS MAY OCCUR."
.if ${_USE_DESTDIR} == "no"
su-undo-replace: .PHONY _pkgformat-undo-replace
.else
su-undo-replace: .PHONY _pkgformat-destdir-undo-replace
.endif
MAKEFLAGS.su-undo-replace= _UPDATE_RUNNING=yes