Commit graph

32 commits

Author SHA1 Message Date
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
5946936ffc Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 20:52:18 +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
veego
b2daa161e3 Put back part of the ${PKGMINOR} handling, but keep the PKGREVISION at 2,
due too the nb1 usage in the DISTNAME.
2005-02-27 22:42:30 +00:00
veego
4488cdcf48 Bumpd the PKGREVISION for the following packages:
emulators/compat13
  emulators/compat14
  emulators/compat14-crypto
  emulators/twin
  lang/blackdown-jdk13
  multimedia/transcode
because of a broken PLIST_SRC handling introduced in mk/bsd.pkg.mk
rev 1.1593 and fixed in rev 1.1596.

compat13 was bumped to nb2 so we don't have different package version on
different archs (alpha had an nb1 before but all other had no PKGREVISION).
2005-02-27 22:30:43 +00:00
agc
459a5bb28d Add RMD160 digests to the SHA1 ones 2005-02-23 18:49:17 +00:00
veego
3d53f18e7b Use the extended PLIST_SRC support which now also reads:
PLIST.${MACHINE_ARCH:C/i[3-6]86/i386/g}
PLIST.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g}
and remove the package hack for MD PLIST files.
2005-02-21 20:57:20 +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
e4940de598 Convert to use bsd.pkg.install.mk. 2003-08-30 18:57:03 +00:00
kristerw
0fba0bd0e3 Deal with "arm32" being called "arm" these days. 2003-08-02 18:55:22 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
abs
fb6c29f8bf Update for the fact that 'arm' ports have been called NetBSD-*-arm for a while
now and not NetBSD-*-arm32. Changes include one or more of:
    - Change MACHINE_ARCH == arm32 to also match arm
    - Where ONLY_FOR_PLATFORM includes NetBSD-*-arm32, add NetBSD-*-arm
    - Where BROKEN or worked around for arm gcc bugs, set USE_GCC3
The last may shake out a few more broken packages the next bulk build.
2003-06-11 20:50:50 +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
taca
f0d8aefd07 make lintpkgsrc a little happy. 2003-05-24 11:47:53 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
dmcmahill
ddf5ea3a02 add missing shared lib (libcurses.so.2) for the alpha version of the
pkg.
2001-05-07 12:51:25 +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
68304cdae0 Add rules to create/nuke ld.so on mipsel for binary packages and pkg_delete
time, respectively.
1999-04-27 11:52:38 +00:00
tv
c508d502cb NetBSD 1.3.x compatibility package for 1.4 and beyond. 1999-04-15 16:36:14 +00:00