Commit graph

41 commits

Author SHA1 Message Date
jlam
5dca58e72d Don't rely on differences in the value of DISTNAME that rely on
"immediate" versus "lazy" evaluation of the value.  Just explicitly
define a variable (COMPAT_PKG) that holds the value that's needed in
each of the compat* packages, and use it within Makefile.common.

This was an attempt to solve PR pkg/36863, but it doesn't look like
pkglint or lintpkgsrc understand this more straightforward variable
construction either.
2007-08-30 16:54:06 +00:00
jlam
ffd0fa8226 * Support netbsd-* as a valid platform in EMUL_PLATFORMS. Use the
pkgsrc/emulator/compat* and pkgsrc/emulator/netbsd32_compat* packages
  to provide the necessary shared libraries to run dynamically linked
  NetBSD binaries from the days of yore.

* Add some additional compat* packages for completeness:

	compat15, compat20, compat30

* Modify the compat* packages so that "compatNM" only provides files
  that aren't in "NetBSD-N.(M+1)".  For example, compat12 only provides
  files that don't exist in NetBSD-1.3.x, compat13 only provides files
  that don't exist in NetBSD-1.4.x, etc.

  As a result, if you are running NetBSD-3.0/alpha and want to run a
  1.3 dynamically linked binary, there is an automatic dependency
  chain that causes the following packages to be installed:

	compat13, compat14, compat15, compat16, compat20

  There are some deviations from this dependency chain on platforms
  that have changed executable formats, e.g. i386, m68, sparc, etc.
  However, in general pkgsrc will require that you have the necessary
  COMPAT_* options in your kernel to match the installed compat*
  packages.  This restriction is an artificial one imposed by pkgsrc,
  but allows for a single set of distfiles to be used on all versions
  of NetBSD.

* Provide compat* package support for every supported architecture
  of NetBSD.  Verily, it is now possible to run 1.2 binaries on
  NetBSD-1.5.3/pc532 by installing the compat12 package from pkgsrc.
  Rejoice, one and all!

* The netbsd32_compat* packages mirror the corresponding compat*
  packages for use by sparc64 and x86_64 to allow running 32-bit
  binaries with COMPAT_NETBSD32 kernel support.  The "extras" packages
  supply the additional shared libraries from the corresponding release
  of NetBSD so that the set of files in /emul/netbsd32 will be complete.

* pkgsrc/emulators/compat_netbsd contains infrastructure files shared
  by all of the compat* packages.
2007-08-21 22:49:02 +00:00
wiz
f7e8b48f0b Mark as NO_SRC_ON_FTP -- files are already in MASTER_SITE_LOCAL. 2006-10-19 19:37:38 +00:00
jlam
60f791e1e6 Move the check-shlibs target from bsd.pkg.mk to bsd.pkg.check.mk where
it will live with other "check" targets run after package installation.

Get rid of SHLIB_HANDLING, whose meaning had mutated over the years
from one thing to another.  Currently, it is used to basically note
whether the system's "ldd" command can be usefully run on the package's
binaries and libraries.  Rename this variable to CHECK_SHLIBS_SUPPORTED
for more clarity.

CHECK_SHLIBS is now a variable set exclusively by the user in /etc/mk.conf
to note whether the check for missing run-time search paths is performed
after a package is installed.  It defaults to "no" unless PKG_DEVELOPER
is set.
2006-05-22 22:22:02 +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
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +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
rillig
05c01bf522 Added missing RMD160 checksums. 2005-10-23 14:32:06 +00:00
rillig
e9a74b4b84 Set NO_BUILD and NO_MTREE to yes instead of #defined. 2005-05-23 09:27:48 +00:00
kristerw
5e5180ef1b Prevent warnings during bulk dependency tree creation for ports that
cannot use these packages.
2005-04-15 18:40:50 +00:00
agc
459a5bb28d Add RMD160 digests to the SHA1 ones 2005-02-23 18:49:17 +00:00
jlam
b2677a2cb0 Add definitions for DEINSTALL_EXTRA_TMPL and INSTALL_EXTRA_TMPL if
USE_PKGINSTALL is "YES".  bsd.pkg.install.mk will no longer automatically
pick up a INSTALL/DEINSTALL script in the package directory and assume that
you want it for the corresponding *_EXTRA_TMPL variable.
2003-08-30 22:51:11 +00:00
jlam
e56730c7c4 Convert to use bsd.pkg.install.mk. 2003-08-30 18:53:07 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
agc
7e2fedb405 Move to sha1 digests, and add distfile sizes. 2001-04-20 10:49:52 +00:00
agc
d7d36b3561 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 10:57:56 +00:00
wiz
311d465268 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 18:38:11 +00:00
tv
d76b0dfff3 Set MAINTAINER to packages@netbsd.org. 2001-01-25 21:43:58 +00:00
jlam
b56bc45bfc Group logical expressions correctly. 2000-10-14 00:17:18 +00:00
jlam
943a1e9a35 Run ldconfig after installing/deinstalling shared libraries. We need to
do this manually since it's not automatically handled by bsd.pkg.mk.
2000-10-14 00:01:56 +00:00
jlam
9be7e73f42 Make these install into /usr on most platforms, and into /emul/aout/usr
on platforms transitioning to ELF (currently only i386).  The /emul/aout
installation occurs much like the suse_linux and freebsd_lib packages.

Also add SHLIB_HANDLING=NO to ensure library links aren't clobbered.

This should fix PR#9011.
2000-10-13 23:36:37 +00:00
wiz
93111f9f12 remove unnecessary whitespace 2000-02-05 18:33:29 +00:00
tron
8475357fcd Don't use "{}" or "[]" in "ONLY_FOR_PLATFORM" or "NOT_FOR_PLATFORM"
because "bsd.pkg.mk" can't handle those patterns. Fixes PR pkg/7808
by Chris Demetriou.
1999-06-20 21:06:17 +00:00
tv
5c60ed5794 Change {ONLY,NOT}_FOR_{ARCH,OPSYS} format to {ONLY,NOT}_FOR_PLATFORM
pattern match format.  Minor pkglint along the way.
1999-05-24 20:39:35 +00:00
tv
af4a0239f6 Explicitly install these into /usr in order to avoid messing with
ld.so.conf on a.out and LD_LIBRARY_PATH on ELF.
1999-04-27 11:53:39 +00:00
tv
cea0293f59 ONLY_FOR_OPSYS=NetBSD. 1999-04-15 16:35:13 +00:00
tsarna
6bd0d65c65 The Grand Homepagification:
- New, optional Makefile variable HOMEPAGE, specifies a URL for
	  the home page of the software if it has one.
	- The value of HOMEPAGE is used to add a link from the
	  README.html files.
	- pkglint updated to know about it.  The "correct" location for
	  HOMEPAGE in the Makefile is after MAINTAINER, in that same
	  section.
1998-08-20 15:16:34 +00:00
tv
2dc95eff91 Fix DISTNAME/PKGNAME differences. 1998-08-17 18:35:34 +00:00
tv
bb2a45e08a Consolidate and clean up compat11/compat12. Now there is only one pkg
(compat12), which uses MACHINE_ARCH and does not supply libkvm.
1998-08-13 02:17:37 +00:00
agc
05b88260d7 Add NetBSD RCS Ids. 1998-08-07 13:16:49 +00:00
agc
c5543eb5a0 Use automatic shared object handling 1998-07-15 11:57:30 +00:00
tron
ea3fd44915 Don't mirror distribution files which are kept locally anyway. 1998-07-03 23:30:09 +00:00
tron
0260abe254 Use "ONLY_FOR_ARCHS" instead of "pre-fetch" hack and fix broken package
list creation.
1998-05-08 21:22:35 +00:00
agc
258b808c9f Use the bsd.pkg.mk and bsd.pkg.subdir.mk files in the pkgsrc tree.
Remove redundant (and sometimes erroneous) comments.
1998-04-15 10:38:15 +00:00
tv
c729d5c38c ONLY_FOR_ARCHS doesn't check ARCH; it checks MACHINE_ARCH. Change this to
a shell check as changing <bsd.port.mk> is more than it should be.
1998-03-26 17:35:39 +00:00
frueauf
2f7d0c480b portlint: remove double "post-install:"; reorder EXTRACT_SUFX. 1998-03-19 11:11:55 +00:00
tv
26ca2f7615 Import of NetBSD 1.2[.1] shared library compat package 1998-03-17 21:32:54 +00:00