pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/pkgformat/pkg/templates
Module Name: pkgsrc
Committed By: jlam
Date: Mon Aug 21 12:48:25 UTC 2017
Modified Files:
pkgsrc/mk/pkgformat/pkg/templates: install
Log Message:
mk/pkgformat: Support INSTALL scripts that rely on UNPACK.
The pkginstall framework had an UNPACK action invoked early
in the PRE-INSTALL stage to unpack scriplets that were invoked
in later stages to perform extra work for installation, removal,
or both.
Add an UNPACK action that is a no-op for any scripts that don't
support the action.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/mk/pkgformat/pkg/templates/install
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/pkgformat/pkg/templates/install
diff -u pkgsrc/mk/pkgformat/pkg/templates/install:1.2 pkgsrc/mk/pkgformat/pkg/templates/install:1.3
--- pkgsrc/mk/pkgformat/pkg/templates/install:1.2 Thu Aug 10 05:41:52 2017
+++ pkgsrc/mk/pkgformat/pkg/templates/install Mon Aug 21 12:48:25 2017
@@ -27,10 +27,19 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
-# $NetBSD: install,v 1.2 2017/08/10 05:41:52 jlam Exp $
+# $NetBSD: install,v 1.3 2017/08/21 12:48:25 jlam Exp $
case ${STAGE} in
PRE-INSTALL)
+ # Scripts that make use of the older pkginstall framework may
+ # need to unpack scriptlets during PRE-INSTALL to be used in
+ # later stages.
+ #
+ # Failure to unpack is fatal since the scriptlets will be
+ # required to complete package installation or removal.
+ #
+ ${SH} ${SELF} ${PKGNAME} UNPACK || exit $?
+
task_load preinstall
# Use the data in the shell comments appended at the end of
Home |
Main Index |
Thread Index |
Old Index