Subject: CVS commit: pkgsrc
From: Johnny C. Lam
Date: 2006-03-14 02:14:36
Message id: 20060314011436.63A3F2DA27@cvs.netbsd.org

Log Message:
Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.

Files:
RevisionActionfile
1.89modifypkgsrc/audio/gqmpeg/Makefile
1.14modifypkgsrc/audio/gqmpeg-devel/Makefile
1.61modifypkgsrc/audio/xmcd/Makefile
1.11modifypkgsrc/audio/xmms-meta-input/Makefile
1.29modifypkgsrc/chat/ircd-hybrid/Makefile
1.49modifypkgsrc/chat/silc-server/Makefile
1.18modifypkgsrc/comms/efax/Makefile
1.52modifypkgsrc/comms/mgetty+sendfax/Makefile
1.28modifypkgsrc/databases/mysql4-server/Makefile
1.9modifypkgsrc/databases/mysql5-server/Makefile
1.20modifypkgsrc/databases/postgresql80-server/Makefile
1.16modifypkgsrc/databases/shared-mime-info/Makefile
1.4modifypkgsrc/databases/shared-mime-info/mimedb.mk
1.14modifypkgsrc/devel/GConf2/schemas.mk
1.34modifypkgsrc/devel/isect/Makefile
1.3modifypkgsrc/devel/rt3/Makefile.install
1.30modifypkgsrc/emulators/compat12/Makefile
1.26modifypkgsrc/emulators/compat13/Makefile
1.17modifypkgsrc/emulators/compat14/Makefile
1.14modifypkgsrc/emulators/compat14-crypto/Makefile
1.20modifypkgsrc/emulators/freebsd_lib/Makefile
1.17modifypkgsrc/emulators/netbsd32_compat14/Makefile
1.15modifypkgsrc/emulators/netbsd32_compat15/Makefile
1.15modifypkgsrc/emulators/netbsd32_compat16/Makefile
1.10modifypkgsrc/emulators/osf1_lib/Makefile
1.2modifypkgsrc/emulators/suse100_gtk2/Makefile
1.21modifypkgsrc/emulators/suse91_base/Makefile
1.16modifypkgsrc/emulators/suse91_gtk2/Makefile
1.20modifypkgsrc/emulators/vmware-module/Makefile
1.19modifypkgsrc/emulators/vmware-module3/Makefile
1.11modifypkgsrc/fonts/ghostscript-cidfonts/Makefile
1.12modifypkgsrc/fonts/ghostscript-cmaps/Makefile
1.11modifypkgsrc/fonts/ja-kappa20/Makefile
1.16modifypkgsrc/fonts/ja-shinonome/Makefile
1.15modifypkgsrc/fonts/vfontcap-kochi/Makefile
1.31modifypkgsrc/games/falcons-eye/Makefile
1.64modifypkgsrc/games/gnome2-games/Makefile
1.8modifypkgsrc/games/ivan/Makefile
1.2modifypkgsrc/games/tetrinetx/Makefile
1.10modifypkgsrc/games/xmris/Makefile
1.14modifypkgsrc/games/xscavenger/Makefile
1.12modifypkgsrc/ham/dpbox/Makefile
1.15modifypkgsrc/inputmethod/canna-server/Makefile
1.12modifypkgsrc/inputmethod/sj3-dict/Makefile
1.11modifypkgsrc/inputmethod/skkinput/Makefile
1.16modifypkgsrc/inputmethod/skkserv/Makefile
1.30modifypkgsrc/lang/perl5/buildlink3.mk
1.4modifypkgsrc/lang/perl5/packlist.mk
1.18modifypkgsrc/lang/ruby18-base/Makefile
1.29modifypkgsrc/lang/sun-jre15/Makefile
1.54modifypkgsrc/mail/clamav/Makefile
1.51modifypkgsrc/mail/courier-imap/Makefile
1.18modifypkgsrc/mail/courier-maildir/Makefile
1.62modifypkgsrc/mail/cyrus-imapd/Makefile
1.40modifypkgsrc/mail/cyrus-imapd21/Makefile
1.32modifypkgsrc/mail/mailman/Makefile
1.24modifypkgsrc/mail/mailwrapper/Makefile
1.24modifypkgsrc/mail/majordomo/Makefile
1.34modifypkgsrc/mail/mimedefang/Makefile
1.136modifypkgsrc/mail/mutt/Makefile
1.45modifypkgsrc/mail/mutt-devel/Makefile
1.22modifypkgsrc/mail/nullmailer/Makefile
1.44modifypkgsrc/mail/popa3d/Makefile
1.6modifypkgsrc/mail/pymsgauth/Makefile
1.47modifypkgsrc/mail/qmail/Makefile
1.16modifypkgsrc/mail/qmail-run/Makefile
1.47modifypkgsrc/mail/sqwebmail/Makefile
1.16modifypkgsrc/mail/yatsvrs/Makefile
1.28modifypkgsrc/misc/jitterbug/Makefile
1.18modifypkgsrc/misc/openoffice2-bin/Makefile
1.58modifypkgsrc/misc/rpm/Makefile
1.2modifypkgsrc/multimedia/gstreamer0.8/plugins.mk
1.55modifypkgsrc/net/arla/Makefile
1.25modifypkgsrc/net/ddclient/Makefile
1.14modifypkgsrc/net/djbdns-run/Makefile
1.44modifypkgsrc/net/ja-samba/Makefile
1.18modifypkgsrc/net/lambdamoo/Makefile
1.47modifypkgsrc/net/net-snmp/Makefile
1.13modifypkgsrc/net/netdisco/Makefile
1.25modifypkgsrc/net/nocol/Makefile
1.21modifypkgsrc/net/sendfile/Makefile
1.26modifypkgsrc/net/tor/Makefile
1.38modifypkgsrc/net/vtun/Makefile
1.32modifypkgsrc/news/leafnode/Makefile
1.34modifypkgsrc/parallel/glunix/Makefile
1.21modifypkgsrc/pkgtools/libkver/Makefile
1.9modifypkgsrc/pkgtools/pkg_alternatives/Makefile
1.125modifypkgsrc/pkgtools/pkg_install/Makefile
1.65modifypkgsrc/pkgtools/xpkgwedge/Makefile
1.27modifypkgsrc/print/LPRng-core/Makefile
1.27modifypkgsrc/print/apsfilter/Makefile
1.5modifypkgsrc/print/dvipdfmx/map.mk
1.11modifypkgsrc/print/foomatic-filters/Makefile
1.4modifypkgsrc/print/foomatic-filters-cups/Makefile
1.4modifypkgsrc/print/foomatic-ppds-cups/Makefile
1.14modifypkgsrc/print/ja-jsclasses/Makefile
1.25modifypkgsrc/print/ja-ptex-bin/Makefile
1.12modifypkgsrc/print/teTeX/module.mk
1.15modifypkgsrc/print/xpdf-arabic/Makefile
1.19modifypkgsrc/print/xpdf-chinese-simplified/Makefile
1.17modifypkgsrc/print/xpdf-chinese-traditional/Makefile
1.17modifypkgsrc/print/xpdf-cyrillic/Makefile
1.17modifypkgsrc/print/xpdf-greek/Makefile
1.16modifypkgsrc/print/xpdf-hebrew/Makefile
1.19modifypkgsrc/print/xpdf-japanese/Makefile
1.19modifypkgsrc/print/xpdf-korean/Makefile
1.19modifypkgsrc/print/xpdf-latin2/Makefile
1.18modifypkgsrc/print/xpdf-thai/Makefile
1.18modifypkgsrc/print/xpdf-turkish/Makefile
1.15modifypkgsrc/security/AiCA/Makefile
1.21modifypkgsrc/security/courier-authlib/Makefile
1.29modifypkgsrc/security/cyrus-saslauthd/Makefile
1.166modifypkgsrc/security/openssh/Makefile
1.33modifypkgsrc/security/openssh+gssapi/Makefile
1.17modifypkgsrc/security/smtpd/Makefile
1.36modifypkgsrc/security/uvscan/Makefile
1.12modifypkgsrc/sysutils/desktop-file-utils/Makefile
1.4modifypkgsrc/sysutils/desktop-file-utils/desktopdb.mk
1.12modifypkgsrc/sysutils/webmin/Makefile
1.44modifypkgsrc/sysutils/xcdroast/Makefile
1.36modifypkgsrc/textproc/scrollkeeper/Makefile
1.11modifypkgsrc/textproc/scrollkeeper/omf.mk
1.15modifypkgsrc/textproc/xmlcatmgr/catalogs.mk
1.28modifypkgsrc/www/firefox/Makefile-firefox.common
1.8modifypkgsrc/www/firefox/Makefile.common
1.33modifypkgsrc/www/htdig/Makefile
1.8modifypkgsrc/www/htdig-devel/Makefile
1.25modifypkgsrc/www/privoxy/Makefile
1.13modifypkgsrc/www/wwwcount/Makefile
1.64modifypkgsrc/www/wwwoffle/Makefile
1.59modifypkgsrc/x11/gnome2-applets/Makefile
1.115modifypkgsrc/x11/gtk/Makefile
1.12modifypkgsrc/x11/gtk2/modules.mk
1.89modifypkgsrc/x11/lesstif/Makefile