Commit graph

351 commits

Author SHA1 Message Date
hubertf
7742bbe8ac Call "pkg_delete -O' on "make reinstall", to remove things not only
from /var/db/pkg, but also from the pkgdb (in case someone does a
"make reinstall" with FORCE_PKG_REGISTER set). Pointed out by Greg Woods.

XXX This change is only effective if one has a pkg_* tools as of 19990302
or later, but I will not bump the PKGTOOLS_REQD version up, as I do
not expect many people to run into this (and if, it's not a problem).
One should just remove the check with ${_PKGTOOLS_VER} >= 19990302
if the version's bumped beyond 19990302.
1999-03-03 17:48:23 +00:00
sakamoto
161a33b116 Add example entry for Japanese mirror sites. 1999-02-27 17:24:17 +00:00
hubertf
1fa4d66514 Set things like PATH for targets pre-*, do-* and post-* (from ${MAKE_ENV}).
This prevents that the pkg builder needs ${LOCALBASE/bin in $PATH.
Helps also with Peter Seebach's problem in PR 7047.
1999-02-25 23:02:38 +00:00
bouyer
60a68ce7ff Document AMANDA_VAR 1999-02-25 15:58:26 +00:00
agc
3a8ab982fc Use leading spaces before the comment, rather than leading tabs, so that
make(1) does not puke.

Add a note at the top of the file for people editing it, requesting them
to do just that.
1999-02-24 10:45:42 +00:00
bouyer
f742be3bf5 A new variable, AMANDA_SMB, to control support of backup with smbclient. 1999-02-23 17:10:53 +00:00
hubertf
5619befc40 Comment that targets listed in $PKG_MISC_TARGETS are also regarded 1999-02-22 01:11:18 +00:00
agc
8e2ac8a943 Allow for customised groups of packages at the top-level of pkgsrc.
If SPECIFIC_PKGS is defined (at the top-level of pkgsrc), then instead of
looping through all the categories and then all the packages within that,
simply loop through ${SITE_SPECIFIC_PKGS}, ${HOST_SPECIFIC_PKGS},
${GROUP_SPECIFIC_PKGS} and ${USER_SPECIFIC_PKGS}, which are whitespace
separated lists of categories/packages e.g.
SITE_SPECIFIC_PKGS+= devel/cvs security/ssh
The default behaviour is unchanged - if SPECIFIC_PKGS is not defined,
the whole hierarchy will be traversed.

Modify mk.conf.example to reflect the settings of SPECIFIC_PKGS,
SITE_SPECIFIC_PKGS, HOST_SPECIFIC_PKGS, GROUP_SPECIFIC_PKGS and
USER_SPECIFIC_PKGS.

Modify the ispell package to use the make definition ISPELL_LANG,
rather than just LANG (which can clash with the environment variable
of the same name), and modify mk.conf.example accordingly.
1999-02-21 21:25:02 +00:00
tron
4f617e15e1 Because 1.3's and 1.3.x's "pax" chokes on some ".tar.bz2" archives
use "tar" for now.
1999-02-21 14:29:58 +00:00
hubertf
cb4b88bb46 Pull in mk.conf (via bsd.pref.mk), so that e.g. PKG_MISC_TARGETS can
be set there.
1999-02-21 01:24:22 +00:00
hubertf
b7e101fd1b Do not overwrite (files of) other pkg versions, warn instead. 1999-02-16 03:23:04 +00:00
tron
2c9cc4246e Add "WINDOWMAKER_OPTIONS". 1999-02-15 19:23:38 +00:00
tron
0d2728f8bc Use "pkglibtool-1.2p1" as package libtool. 1999-02-14 21:15:12 +00:00
tron
6e253cc3ff Add "MASTER_SITE_OVERRIDE". 1999-02-14 12:49:15 +00:00
tron
e97a78cea2 Add automatic handling for ".tar.bz2" archives - just set "EXTRACT_SUFX"
and "bsd.pkg.mk" will do the rest. Furthermore replace all remaining
instances of ":../../foo/bar" in dependences by ":${PKGSRCDIR}/foo/bar".
1999-02-13 11:06:47 +00:00
tv
9e9372fd24 Back out the info dir changes/install-to-LOCALBASE; /usr/share/info was
not in pkgsrc's info path, which confused me to no end.
1999-02-11 17:56:08 +00:00
tv
f0ac2ccd5c Also make this work if gtexinfo is not installed at all and info is in the
base; install the symlink at ${LOCALBASE}/info/dir if there is nothing
there yet.
1999-02-11 15:40:13 +00:00
tv
ea800198df Missed the !exists(/usr/bin/install-info) on the gtexinfo dependency. 1999-02-11 14:44:00 +00:00
tv
6a93f491ef If /usr/bin/install-info exists:
- do not depend on gtexinfo pkg even if USE_GTEXINFO is set
- if ${LOCALBASE}/info/dir is a regular file, nuke it and replace as a
  symlink to /usr/share/info/dir.  (Upgrades of the base system will
  do this too, except that those will copy the contents of
  /usr/pkg/info/dir first.  There is no truly clean solution here.)

Also, use --info-dir=${LOCALBASE}/info/dir, NOT ${PREFIX}/info/dir.
info(1) only searches one directory file.
1999-02-11 14:42:08 +00:00
hubertf
abb3fd7ca0 NETBSD_CURRENT is not only used for finding out abouth UVM, but also for the
OBJECT_FMT, thanks to Thorsten Frueauf for finding this. (The error only
showed up if you defined UVM in mk.conf on a -current system)
1999-02-10 21:35:36 +00:00
hubertf
fe945af59f Backward compatible OBJECT_FMT/SHLIB_TYPE handling,
pointed out by Alistair Crooks.
1999-02-09 15:44:52 +00:00
hubertf
0662cedb1e sync with -current 1999-02-08 20:55:47 +00:00
tv
9cc74c3676 Don't match a slash in the middle of a library name. 1999-02-03 15:11:46 +00:00
frueauf
3972e41670 Use a more generic pattern to match libs in PLIST, this will
DTRT on ELF for e.g. lib/mozilla/*.
1999-02-01 11:37:02 +00:00
tron
f3abb7c3ec Make "distclean" target work for packages without distribution and
patch files, e.g. meta packages.
1999-02-01 00:43:13 +00:00
agc
f6473207ca Replace all occurrences of USE_X11 with USE_X11BASE. This means "install this
package into ${X11BASE}".
Replace all occurrences of BUILD_USES_X11 with USE_X11. This means "use X11
headers and libraries to build this package".
1999-01-30 23:18:44 +00:00
is
c913b0fea6 Fix space-ing of comment. 1999-01-30 22:11:37 +00:00
is
2379bb4aad Document the M68060= variable, which is used by (currently) pgp2 and ssh
to avoid emulated instructions on the Motorola 68060 cpu.
1999-01-30 20:39:05 +00:00
agc
9fe0ebf4eb Introduce a BUILD_USES_X11 definition, defined in package Makefiles,
and used to denote that a package uses X11 headers and libraries to
build, but does not install itself into X11BASE (xpkgwedge
notwithstanding).

This is used to ignore packages which would otherwise cause build
problems on machines with no X11 installation.
1999-01-26 22:03:18 +00:00
hubertf
f7cb33f3d9 Bump PKGTOOLS_REQD to 19990119 for pkgdb code. 1999-01-19 23:40:09 +00:00
agc
ab399a0140 Patches from Greg Woods to get rid of GNU awk dependencies, so that
mawk and nawk can be used in bsd.pkg.mk (by setting AWK accordingly),
in PR pkg/6582.  With thanks to Hubert for reminding me about this
one.
1999-01-19 22:18:19 +00:00
hubertf
272c8530d2 Give better help if umask is wrong: tell the expected umask, and mention
that the just installed package may be deinstalled with "make deinstall"
first.

Pointed out in PR 5973 by Kimmo Suominen <kim@tac.nyc.ny.us>.
1999-01-19 01:30:29 +00:00
wrstuden
2e510ae79c Ack! Don't use tabs to space over comments in make files!
Lines which start with tabs are shell commands. As we define no targets
in this file, they end up being unassosciated shell commands, and
cause make to bomb.
1999-01-15 21:19:59 +00:00
hubertf
8936dac1ff If applying a patch fails, tell which patch failed. 1999-01-09 20:52:30 +00:00
tv
a96bf3e298 Shared objects can, in fact, have dots in their basenames. Libtool
creates such with the `-release' (versus `-version-info') build option.
1999-01-04 19:23:30 +00:00
tron
2bfc513950 Add "cleandir" target. 1998-12-29 22:31:53 +00:00
garbled
e35f6f1fda Add a second check after branching to build a dependency to make sure it
actually completed succesfully before continuing on with the current
build.  This makes NOT_FOR_ARCHS and ONLY_FOR_ARCHS propogate up to
the pkgs which depend on them.
1998-12-29 17:23:39 +00:00
frueauf
b7d4248e23 If the default for MANZ is unset, then comment it out too. Maybe this
causes less confusion.
1998-12-24 11:10:32 +00:00
tron
b481232167 Add "${MUTT_INTERNATIONAL}". 1998-12-12 17:45:36 +00:00
simonb
a11f5ff43a Remove var (and var/games). Consensus seems to be that var-type things
should exist in /var, not ${PREFIX}/var.
1998-12-12 15:32:50 +00:00
hubertf
aeef2024b8 Add support for custom, per-category targets by setting PKG_MISC_TARGETS
This can be used to
 - enable execution of a non-standard target for all pkgs of a category,
   e.g. cd pkgsrc/benchmarks ; make benchmark
 - superceding standard-targets with custom versions, e.g. from
   /etc/mk.conf
1998-12-06 01:22:54 +00:00
tron
667daa1a69 Add "WINDOWMAKER_THEMES" for "wm-themes" package. 1998-12-05 10:48:14 +00:00
simonb
016bbbca5e Add "share/games", "var" and "var/games". 1998-12-03 05:07:04 +00:00
hubertf
273e4f158f Add BSD_PKG_MK=1 to bsd.prefs.mk, and clarify it's usage (comment) a bit,
pointed out by Alistair Crooks and Johnny Lam.
1998-11-26 23:39:15 +00:00
hubertf
f21be39f4d Set BSD_PKG_MK=1 so people can put conditional things into their
/etc/mk.conf. Suggested by Johnny Chi-Lung Lam <jlbg+@andrew.cmu.edu>.
1998-11-26 06:40:15 +00:00
tv
6418c7c5f1 Use ftp.gnu.org', instead of prep.ai.mit.edu', to find the master GNU
distribution site.
1998-11-25 17:15:36 +00:00
tron
cc67d355c7 Add "share/aclocal". 1998-11-24 21:42:19 +00:00
tron
4f91bdfd07 Handle decompression of symlinked manual pages. 1998-11-19 22:59:03 +00:00
agc
7c0be4bb96 When building the PLIST for the package, also substitute for the pattern
${OS_VERSION} (which is already calculated earlier in bsd.pkg.mk).
1998-11-16 11:25:08 +00:00
hubertf
ed5fd0d3c4 bump PKGTOOLS_REQD to 19981107 1998-11-09 15:45:11 +00:00
hubertf
6c8b6500fa add print-pkgtools_ver to get version of currently-installed pkg-tools 1998-11-09 14:41:30 +00:00
mycroft
d572623218 Do the info file handling *after* the post-install target, just before doing
man pages.
1998-11-07 16:08:41 +00:00
mycroft
78be378206 A foolish consistency: use && rather than ; in a bunch of places. Also, use
${SETENV} explicitly for configure.
1998-11-07 14:41:50 +00:00
mycroft
961ff44ea3 Handle one error case slightly better. 1998-11-07 14:23:26 +00:00
agc
d64d2e109e Now we can be sure of pkg_install tools with the functionality, make
PKG_RELATIVE_SYMLINKS the default (i.e. if any full-pathname symbolic
links are encountered by pkg_create(1), adjust them to be relative to
${PREFIX}, if appropriate). This helps with binary packages.
1998-10-27 10:35:26 +00:00
agc
a1b5626a3b Update the (package) version of pkg_install tools to 19981026, to use
the new -b and -B flags to pkg_create, so that any binary packages
that are created automatically get their build information and
versioning data attached.
Update bsd.pkg.mk to have PKGTOOLS_REQD= 19981026.
1998-10-26 18:29:10 +00:00
agc
22a3783121 Use the new flags for pkg_create(1) for the build information and versioning
information. Re-arrange the fake-pkg target so that the files exist before
they're used.
1998-10-26 17:40:57 +00:00
agc
8fc62f5265 Use ${GMAKE}, not ${LOCALBASE}/bin/gmake, as pointed out by Matt Green. 1998-10-26 11:53:56 +00:00
agc
8df14057a4 Patch from Hubert Feyrer - make sure the directory entry is a file before
using it to make the +BUILD_VERSION file.
1998-10-22 08:53:22 +00:00
hubertf
aa2805e913 Fix depends-list target WRT dewey depends; try (for USE_PERL5):
DEPENDS+=              perl>=5.00404:${PKGSRCDIR}/lang/perl5
1998-10-20 23:21:18 +00:00
agc
43e7751994 + Remove the old check for pkg_create being able to handle a -C
argument if any CONFLICTS are defined - it's been superceded by the
new PKGTOOLS_REQD definition.

+ Set PKGTOOLS_REQD correctly if PKG_RELATIVE_SYMLINKS is defined.
1998-10-20 17:03:25 +00:00
agc
190dbb0673 + Add and document the PKG_RELATIVE_SYMLINKS option, which makes sure
that a symbolic link in a package is relative to ${PREFIX}, if it is
under ${PREFIX}, using the -l argument to pkg_create.

+ Build a +BUILD_INFO file with appropriate information from the
package build.  Thanks to Christoph Badura for pointers to the
appropriate information.
1998-10-20 16:01:03 +00:00
agc
b51395b479 Improvements suggested by Charles Hannum:
+ use ident rather than strings
+ only check for up-to-date pkg_* tools when they're about to be used
Also
+ don't include the RCS Id string from crt0 when calculating version date
1998-10-19 12:50:51 +00:00
agc
6b868b539a nntpcache has a "fee-based-commercial-use" license. Add that category of
license to the ACCEPTABLE_LICENSES category in the example mk.conf file.
1998-10-19 11:23:31 +00:00
frueauf
376dc893a6 Add examples for Danish mirrors, provided in pr 6329 by Soren S. Jorvang. 1998-10-19 07:41:23 +00:00
frueauf
31e85e01b0 Add example entry for Austrian mirror sites, provided in pr 6326 by Rene Hexel. 1998-10-18 12:03:01 +00:00
mycroft
66774f291f When doing binpkg-list, make sure to only look in directories with an actual
release number, not in distfiles.  Makes `make readme' about 40x faster on
the FTP server.
1998-10-17 06:39:48 +00:00
agc
23fc7d9c88 Correct the date of the PKGTOOLS_REQD version - although our package was
dated 19980911, the latest NetBSD RCS Id string was 19980908. Thanks to
Thorsten Frueauf for pointing this out.
1998-10-15 12:22:40 +00:00
agc
672ea0bf19 Add logic to check for pkg_install tools that are up to date. 1998-10-15 10:50:38 +00:00
agc
b6ab247bd6 Fix tyop I introduced yesterday, when creating the +BUILD_VERSION file
when registering a package.
1998-10-13 14:51:31 +00:00
agc
7982f5f16d + explain "Unacceptable license" message a bit better.
+ create a +BUILD_VERSION file when creating the package, containing
the RCS Id strings of files pertinent to the package build.
+ re-format one block of code
+ s/echo/${ECHO}/
+ don't give out unnecessary internal pkg information to users (the exact
location of registration of the package does not matter).
1998-10-12 19:40:33 +00:00
hubertf
160670734f reverse \" and | (thanks Al for helping to find this!), plus
add more quotes at another place.
1998-10-05 21:47:02 +00:00
hubertf
fad55d411a fix up for dewey depends 1998-10-05 00:34:44 +00:00
tron
f8e4028777 Add "share/locale". 1998-10-04 22:05:45 +00:00
tron
4fd5782fd6 Add "cleandir" target to comform with the rest of our source tree. 1998-10-04 20:56:58 +00:00
hubertf
09392b5f1b fix list of ports supporting UVM and PMAP_NEW with reality. 1998-10-04 02:29:35 +00:00
hubertf
a2eae18262 Teach our tools about dependencies containing wildcards. 1998-10-03 16:24:35 +00:00
tv
e4214fe55d Filter dlopen'ed (.so) shared objects from NOPIC systems, so that PLISTs
that include them will not need the "-mi/-md" split.
1998-10-03 14:44:14 +00:00
tv
ada1e56cbf Use PLIST-md.shared on alpha and place an exception into perl's Makefile,
not into the generic bsd.pkg.mk.
1998-10-03 03:14:23 +00:00
tv
e9b1ca5dea Switch USE_LIBTOOL pkgs to use pkglibtool, and revert libtool back to a
"vanilla" libtool (pkg now called glibtool) that understands NetBSD ELF.
1998-10-02 14:49:33 +00:00
lukem
9c900de734 fix MASTER_SITE_PERL_CPAN example for australia; noted by kimmo 1998-10-01 06:30:17 +00:00
kim
3c1e6cda5e Added Finnish defaults. 1998-10-01 05:40:16 +00:00
agc
6c522c02de Add a cdrom-readme target, a clone of the readme target, for ease of use.
The URLs in the generated README.html files can be specified by overriding
the CDROM_PKG_URL_HOST and CDROM_PKG_URL_DIR definitions.
Document the targets, and clean up some English, in Packages.txt
1998-09-23 13:09:32 +00:00
agc
3b8cfa4642 Use the correct INSTALL_FILE, DEINSTALL_FILE, MESSAGE_FILE and REQ_FILE
at installation time.
1998-09-21 12:22:47 +00:00
agc
9db74e9f8a Make the REQ and MESSAGE files specifiable from package Makefiles,
as REQ_FILE and MESSAGE_FILE respectively.
Modify xpkgwedge to create its MESSAGE_FILE in the WRKDIR.
1998-09-17 15:47:08 +00:00
agc
3e45f77a05 Make any INSTALL or DEINSTALL scripts specifiable in the package
Makefile (for read-only pkgsrc use).  This is for the use of packages
which build INSTALL and DEINSTALL scripts dynamically, such as
pkgsrc/games/crossfire.
1998-09-17 14:03:48 +00:00
agc
a42523279c If WRKOBJDIR is set, try to create a symbolic link to the working
directory, but fail silently if we can't (for read-only pkgsrc use).
Also clean up properly if WRKOBJDIR is set.
1998-09-16 08:46:58 +00:00
agc
5d76d7d8c7 Eliminate redundant code - never need to create a symlink called
${WRKDIR} if WRKOBJDIR is set.
1998-09-15 17:28:34 +00:00
agc
aaf5955178 Modifications for a read-only pkgsrc (but writable WRKOBJDIR). 1998-09-15 17:05:04 +00:00
garbled
0b761742f0 Add new automatic handling for rpath. This sets the LDFLAGS variable
to include rpath statements for /usr/pkg/lib, and if using X11,
/usr/X11R6/lib.  It also gives us the side benefit of having an
LDFLAGS variable in top level makefiles.
1998-09-14 17:07:46 +00:00
tv
ebfa1c2a66 Fix location of xpkgwedge. 1998-09-07 15:41:28 +00:00
kim
10969eec96 Added share/nls/el_GR.ISO_8859-7. 1998-09-06 23:08:31 +00:00
tron
6b77256f82 Combine fetch loops for distribution and patch files to reduce duplicate
code. Patch supplied by Jim Bernard in PR pkg/5977.
1998-09-05 19:45:25 +00:00
agc
30852e379b Moved src/etc/mtree/BSD.x11.dist to pkgsrc/mk/NetBSD.x11.dist by
Repository Copy.  Modified bsd.pkg.mk to use the file from the new
location.
1998-09-04 10:26:59 +00:00
agc
200adda2c4 Moved src/etc/mtree/BSD.pkg.dist to pkgsrc/mk/NetBSD.pkg.dist by Repository
Copy. Modified bsd.pkg.mk to use the file from the new location. Pointed out
by Jason Thorpe in PR 5643.
1998-09-04 10:08:27 +00:00
mellon
027fac3931 Don't override INSTALL_* definitions in local Makefiles. 1998-09-01 21:21:09 +00:00
agc
f31ef2befe Document USETBL definition (not just used in pkgsrc - see <bsd.man.mk>). 1998-09-01 13:56:42 +00:00
agc
3f482566b3 Amend the fetch: target, so that the distfile's integrity is checked
with the additional checksum only if FAILOVER_FETCH is set (this does
not affect the checksum:  target at all).

Document FAILOVER_FETCH.
1998-09-01 13:15:29 +00:00
frueauf
9aac52ee55 - Point ppl actually to the packages(7) manual page
- add sample entry for USE_XFACE
1998-08-30 11:01:58 +00:00
lukem
2a9f49cb81 * add section titled `Overrides for faster or cheaper sites',
providing example MASTER_SITE_* overrides for people with
  costly net.connections...
* add sample Australian (AARNET) MASTER_SITE_* entries
1998-08-30 04:58:20 +00:00