Commit graph

12 commits

Author SHA1 Message Date
jlam
e811379bc2 Pluralize INSTALL_TEMPLATE and DEINSTALL_TEMPLATE variable names as per
the pkglint warning:

    As {INSTALL,DEINSTALL}_TEMPLATE is modified using "+=", its name
    should indicate plural.

This does make the variables a bit more suggestive of the fact that they
hold lists of values.
2006-06-15 22:13:58 +00:00
jlam
daad0f3d6c 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.
2006-03-14 01:14:26 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
jlam
da2fc85390 Don't check for USE_BUILDLINK3 anymore in these files. These are included
by other package Makefiles, and with the deprecation of USE_BUILDLINK3
support in the infrastructure files, these had the potential to break
existing packages.
2005-03-24 22:42:58 +00:00
wiz
659fd7654f Remove bl2 support -- all packages including this file
have been converted.
2004-04-27 01:26:29 +00:00
jmmv
92181d1d58 During print-PLIST, do not output files inside scrollkeeper's database
(libdata/scrollkeeper), and for the removal of the share/omf directory,
print a comment telling that it's beeing removed by this package.
2004-04-12 21:08:15 +00:00
jmmv
ad018dca7b Fix fatal typo that avoided updates of the database (resulting in no
documentation available from yelp, for example).
2004-03-07 11:53:00 +00:00
jlam
1db7d040be Cut-n-paste... it's so easy... easy to miss errors, that is. 2004-02-12 10:20:33 +00:00
jlam
856fb839ef Allow this file to keep working with packages that haven't been bl3ified. 2004-02-12 10:05:08 +00:00
xtraeme
79317ebe2d bl3ify 2004-02-11 04:35:20 +00:00
jmmv
e3f5102cf0 Update to 0.3.12. There have been lots of changes since 0.2 (this version
is almost a rewrite of the program).  Note that this is still a development
version but includes new features that may be required by packages using
scrollkeeper (which won't work with the old 0.2).

Provide a framework to automatically rebuild scrollkeeper's database from
packages installing OMF files under share/omf/;  they only need to include
omf.mk in their Makefile and take care to install OMF files in the said
directory.

Reviewed by rh and wiz.
2003-02-18 14:39:02 +00:00