Commit graph

256 commits

Author SHA1 Message Date
hubertf
8c743a0b7d Attempt to re-renerate README.html only if it has really changed. 1998-06-29 21:52:20 +00:00
agc
6a46f4ba75 Use -h when using egrep(1) to find the manual pages from ${PLIST_SRC},
as ${PLIST_SRC} may be more than one file, and the ${PLIST_SRC}
filenames only get in the way.
1998-06-23 10:35:56 +00:00
agc
fa9d3d91e2 Get rid of the old, error-prone, MAN<sect> and CAT<sect> manual page
handling.  Also, use two regexps when creating the work/.PLIST file,
rather than the four original ones (necessary because the MANLANG
definition has now gone away too).
1998-06-22 14:47:49 +00:00
agc
dff3f19af7 Use one gonzo regular expression to recognise man and catman pages. 1998-06-22 09:12:48 +00:00
tron
9ddda2fb4a If "${USE_MOTIF}" is set install package to "${X11BASE}" and check if
X11 is actually installed.
1998-06-20 14:01:28 +00:00
agc
eb2a847935 Add automatic manual page handling. This is backwards-compatible with
the MANx and CATx definitions in package Makefiles - if neither MANx
or CATx is specified, the PLIST will be searched for the package's
manual pages. If automatic manual page handling is in operation, and
PKG_VERBOSE is set, echo the manual page names.
1998-06-18 11:45:33 +00:00
tron
601baa86ba Remove unnecessary check for distribution files on CD ROM, "${DISTDIR}"
can be set instead.
1998-06-17 22:00:15 +00:00
agc
666273802a Remove the trailing '-f' from MAKE_FLAGS in bsd.pkg.mk, and include it
explicitly in the commands before ${MAKEFILE}; modify package
Makefiles to conform to this rationalisation.  This was used
inconsistently in many packages, some including it, some not.
1998-06-10 08:02:08 +00:00
agc
30f402725f Rationalise Motif/Lesstif handling.
Get rid of HAVE_MOTIF, MOTIF_STATIC, REQUIRES_MOTIF and MOTIF_ONLY.
Standardise on USE_MOTIF, which uses the pkgsrc dependency checks to
use Motif, if it's available, or Lesstif, if not.
1998-06-09 13:36:48 +00:00
frueauf
1eed6b4a70 Add missing @ in line 1731. 1998-06-05 23:27:48 +00:00
tv
aa36cae03c Rework the pkg_create -C check: don't check the kernel version number for
a userland binary's features; instead, check that tool directly.
1998-06-05 20:31:55 +00:00
mrg
1f1a5de5e4 move documentation to packages.7. also, remove ts=4 crap. 1998-06-05 12:45:53 +00:00
agc
33f24e7f6d Add a USE_MOTIF definition, for use in package Makefiles.
This will make and install lesstif, should Motif be unavailable.
1998-06-05 12:14:44 +00:00
frueauf
72c9f85c48 Add support for CONFLICTS entry. 1998-06-05 11:23:09 +00:00
agc
72f22c05c2 Minor cosmetic mods. Remove the 'V' before the NetBSD version number
in the README.html list of binary packages, and use the same format
for the DEPENDS package message as for BUILD_DEPENDS and RUN_DEPENDS.
1998-06-05 10:27:42 +00:00
tv
5d405bfba7 Use MACHINE_GNU_ARCH in PLISTs that require it, so that arm32 (and
possibly other future platforms) will get the `right' name.
1998-06-03 17:48:32 +00:00
tv
3bfd2cd7b0 Skip checksum step if the ${EXTRACT_COOKIE} exists (NFS speedup if build
quits and you want to restart, or you run "make install" separately)
1998-06-02 15:47:06 +00:00
hubertf
60a4646d8e Document MANLANG 1998-06-01 21:30:10 +00:00
hubertf
ce13f8a7ec Exclude m68k from list of platforms for which a binary pkg is available from README.html 1998-05-29 22:48:17 +00:00
agc
f9adca1464 Implement a new PASSIVE_FETCH definition, which can be set in the
environment, or /etc/mk.conf, and is used to specify -p to ftp(1) when
fetching distfiles from behind a filtering firewall.  Document
PASSIVE_FETCH in mk.conf.example.  Suggested by Bill Coldwell.
1998-05-29 09:21:43 +00:00
hubertf
63cc39d315 Add "click here to download"-links. 1998-05-25 00:04:30 +00:00
tv
92d0556067 Fix --host= rule to use a three part architecture, and fix GNU pkgs to use
the new automatic --host= setting.  Now all GNU pkgs should work on all
archs (including arm32), except emacs/xemacs, which I'll fix soon.
1998-05-23 15:42:58 +00:00
tv
acb95350f0 Tell GNU packages the explicit host, instead of "guessing" via uname.
Derive this from ${MACHINE_GNU_ARCH}.
1998-05-22 17:35:42 +00:00
agc
d92b93c0f2 Use _THISDIR_, not DIRPRFX, when working out whether we've been called
from bsd.pkg.subdir.mk
1998-05-14 11:53:30 +00:00
tv
608fd01e5e pkg_info -> /usr/sbin/pkg_info (may or may not be in a builder's $PATH) 1998-05-13 13:34:13 +00:00
tron
02d7e667a8 Remove "sup.owl.de" (unexpected provider trouble). 1998-05-08 20:30:53 +00:00
agc
80b6dda486 PORTSDIR must die.
s/PORTSDIR/PKGSRCDIR/g

(PKGSRCDIR should not be set by users - bsd.pkg.mk sets it automatically).

Also clear up some comments, and move USE_GTEXINFO to use DEPENDS, and
move USE_PERL5 to use DEPENDS.
1998-05-07 17:21:13 +00:00
tron
5b2a1dce25 Add "sup.owl.de" to "${MASTER_SITE_BACKUP}". 1998-05-06 13:41:13 +00:00
hubertf
6f4f42ab4d Make PORTSDIR still be an absolute patch, but don't require it to
be hardcoded to /usr/pkgsrc. Use ${.CURDIR} instead. Inspired by
Jaromir Dolecek's PR 5360.
1998-04-25 22:42:16 +00:00
hubertf
a9704efb79 Partially back our changes from r1.76. Obviously we do _not_ know
how deep in the pkgsrc tree we are and this have to pass absolute
paths.
1998-04-25 00:01:21 +00:00
agc
4d9b4e20bb Use relative paths within the pkgsrc tree, and remove PORTSDIR
definition accordingly.
Modify check in LIB_DEPENDS, RUN_DEPENDS and BUILD_DEPENDS, so that
the first component is considered to be a file name if it contains a
'/' character anywhere within it, not just the first character.
1998-04-24 09:15:57 +00:00
agc
6ef03845dd Slightly shorter way of using pkg_info -e to work out whether a package
is installed, from Hubert Feyrer.
1998-04-23 07:13:17 +00:00
agc
7b0b3b3747 Restore INFO_FILES change that got lost in the previous commit. 1998-04-22 17:29:10 +00:00
agc
1f4495b33e Remove the old deprecated DEPENDS definition from bsd.pkg.mk.
Implement a new DEPENDS definition, which looks for an installed
package, building it if not present, and use it in preference to
LIB_DEPENDS.  This should make the package collection more useful on
NetBSD ELF ports.
1998-04-22 14:22:39 +00:00
agc
ff3e48e78c Fix INFO_FILES definitions to match the commands in bsd.pkg.mk 1998-04-22 11:05:01 +00:00
hubertf
48a6874f33 Fix info-file handling 1998-04-22 09:51:01 +00:00
agc
070f1849ac Pass the environment down when using xmkmf to configure. 1998-04-21 15:50:27 +00:00
agc
fcebe960c3 Add a copy of bsd.own.mk to the pkgsrc tree, and modify bsd.pkg.mk to
include it, rather than the copy in /usr/share/mk. This should fix the
last remaining "sync" problems between pkgsrc and /usr/share/mk.

XXX pkgsrc/mk/bsd.own.mk will go away in 1.4 XXX

This was all done by Hubert Feyrer.
1998-04-20 10:16:24 +00:00
frueauf
e9702b8b80 Store pkg/REQ in +REQUIRE not +REQ to be consistent with pkg_install/*. 1998-04-20 08:24:58 +00:00
tv
19e78639cd Find install-info in ${LOCALBASE}/bin. pkg people are adamant about this
in order to keep the info directory in ${LOCALBASE}/info.
1998-04-19 13:14:19 +00:00
hubertf
8a1f92f5a1 make -> ${MAKE}, as per FreeBSD's PR 6341. 1998-04-19 12:48:07 +00:00
tv
b5b15cdca8 Find install-info in $PATH instead of specifying the absolute path, just
like USE_GMAKE and USE_PERL.  Addresses PR #5317 and also fixes it for
people who havve `install-info' in /usr/local.
1998-04-19 02:49:46 +00:00
agc
5201e68497 Introduce USE_GTEXINFO and INFO_FILES definitions to bsd.pkg.mk, and use them. 1998-04-17 09:37:21 +00:00
agc
3e01763fc4 Fix the names of these two files. 1998-04-15 10:45:05 +00:00
hubertf
86f8df6700 Don't creade dirs mode 444, inspired by fvdl's last commit. 1998-04-09 12:47:02 +00:00
fvdl
b29ed0a20f INSTALL_DATA_DIR should not install directories with mode 444 1998-04-08 22:27:41 +00:00
tron
fa1cc877c5 Add "ftp.uni-paderborn.de" and "ftp.x.org" to "${MASTER_SITE_XCONTRIB}". 1998-03-24 10:27:44 +00:00
hubertf
1806df5d6e Document ALL_TARGET and INSTALL_TARGET, as per PR 5186. 1998-03-23 07:42:50 +00:00
agc
5f515a6d97 Temporarily revert to using GNU tar, until pax is bug-compatible with
gtar.  pax has problems extracting certain archives which were made by
gtar and contain trailing trash at the end - gtar ignores this dross,
pax thinks it's valid, and prompts for the second volume.
1998-03-09 18:36:51 +00:00
hubertf
da9d709b6d Make definition of OBJMACHINE in mk.conf work. 1998-03-08 14:55:04 +00:00
frueauf
1bbea52a58 Introduce "Arch:" field in INDEX to handle the ONLY_FOR_ARCHS case better. 1998-03-08 14:25:52 +00:00
hubertf
9c0c02d920 Add INSTALL_*_DIR macros. 1998-03-07 21:19:00 +00:00
tron
51c49a64ae MANZ now handles symlinks properly. 1998-03-01 13:38:03 +00:00
hubertf
18a2a23c83 Cleanup fetch-list change reported by Bernd Ernesti.. 1998-02-28 16:02:21 +00:00
tron
5ad9145d04 Fix merge problem with last commit. 1998-02-28 10:39:19 +00:00
tron
599dd364d0 Fix problem with registering foreign language manual pages. 1998-02-28 10:14:41 +00:00
agc
25269a4603 Patches from Matthew Green to use pax if it's present, in preference
to tar.
1998-02-27 13:22:59 +00:00
hubertf
da9ec0b877 Enhance look & feel of the generated README.html's. 1998-02-20 22:06:18 +00:00
hubertf
b2eb841a5c Recursively print /bin/sh code for all dependent package as well as the
current package (IF called from a package dir and not via bsd.port.subdir.mk;
in the latter case it's assumed that the dependent packages will be scanned
later anyways).

This fixes PR 4992 by Mario Kemper <magick@bundy.lip.owl.de>.
1998-02-20 21:31:20 +00:00
hubertf
c56e57276e Kill line forgotten during PATH extension (in MAKE_ENV). 1998-02-20 21:01:09 +00:00
agc
e904242751 Add a deinstall target, so that packages can be removed easily.
This implementation was taken from FreeBSD.
1998-02-17 15:07:02 +00:00
agc
dd59281c96 When generating the PLIST, if a manual page name has to have .gz added
or removed using sed, don't add the g at the end of the substitution
expression - there will only be one substitution per line.
1998-02-13 15:16:43 +00:00
hubertf
16b5cca770 Fix PR 4884 by replacing STRIP with STRIPFLAG.
This addes yet another step towards bsd.pkg.mk. :)
1998-02-09 00:47:23 +00:00
hubertf
403cfa3d46 Introduce TRUE?=/usr/bin/true, and use it. 1998-02-02 08:10:41 +00:00
agc
517e21a42c Remove the requirement that a LIB_DEPENDS name must have any '.'
characters escaped with a backslash, but recognise the backslashes for
backwards compatibility. When matching names, do any escaping of
the regexp '.' metacharacter automatically, if needed.

When a shared object dependency is printed out, use a form that does
not have the backslashes in it, for readability.

Print out the full pathname of the matching shared object, for clarity.
1998-01-30 13:53:53 +00:00
hubertf
f535cf3701 Replace "<$ARCH"> by "${MACHINE_ARCH}", keep "<$ARCH>"
(in bsd.port.mk) for backward compatibility.
1998-01-28 15:33:44 +00:00
agc
8a4b6d4901 Rename the mirror' target to be mirror-distfiles'. This describes
the action better, and works around problems with the mirror package.

Document the mirror-distfiles target, and also the readme target.
1998-01-27 13:14:07 +00:00
hubertf
972a50ce19 use __ARCH_OK=yes and NO_IGNORE=yes at the mirror-target to get ALL distfiles 1998-01-25 14:50:47 +00:00
hubertf
074cd6325e Re-move .if!defined(__ARCH_OK) to fix use of NO_IGNORE; document some .endif's 1998-01-25 14:46:10 +00:00
hubertf
ac68d7425b MAINTAINER = packages@NetBSD.ORG 1998-01-25 14:39:49 +00:00
hubertf
88f9bce7cb From OpenBSD's bsd.port.mk rlog (Mmm, AnonCVS :-):
revision 1.21
date: 1997/12/20 01:26:57;  author: joey;  state: Exp;  lines: +2 -2
openbsd maintainer changed from imp to me
1998-01-24 23:06:33 +00:00
hubertf
7b574e64e0 Echo "" instead of nothing in CKSUMFILES computation..
Fixes PR 4877 by Manuel Bouyer <bouyer@antioche.lip6.fr>
1998-01-23 16:48:23 +00:00
agc
9896f91228 In the shell script to find an executable upon which this package
depends, break out of the loop when you find one.  Also print the name
of the executable found.
1998-01-23 09:47:57 +00:00
agc
8dd06dcbcb Ignore the return code from rm when removing the ${WRKDIR} symbolic
link, when doing a "make clean" with WRKOBJDIR defined.  From Thorsten
Frueauf.
1998-01-22 11:27:54 +00:00
agc
b18b1d84e7 Add a MIRROR_DISTFILE variable; defaults to "yes", and should be set
to "no" in a package's Makefile when the authors have placed
restrictions on the redistribution of the distfiles.  (Thanks to Jason
Thorpe for the idea).

Add a `mirror' target, which will do a "make fetch" if the package's
distfile is allowed to be redistributed.  This is for use on sites
which mirror package distfiles.  (Thanks to Charles Hannum for the
idea).
1998-01-22 10:20:48 +00:00
hubertf
54802d7bd4 Fix comment for FETCH_CMD wrt non-NetBSD-systems 1998-01-16 09:07:46 +00:00
hubertf
15d441445e - Our default for FETCH_CMD is ftp, not fetch.
- Document NO_IGNORE, __ARCH_OK
 - Make __ARCH_OK overridable, so it can be set to YES e.g. for fetching
   all distfiles.
 - Move ".ifndef(__ARCH_OK): block, so some targets like clean work
   in any case.
 - Add LOCALBASE and X11BASE to PATH in MAKE_ENV, CONFIGURE_ENV and
   SCRIPT_ENV; this fixes PR 4573
1998-01-15 22:58:59 +00:00
agc
4ccba1f339 Move the inclusion of bsd.own.mk back to the correct place in
bsd.port.mk, but this time use a definition before the inclusion,
which stops <bsd.own.mk> defining its own install target when
using the package system.

This makes the package system take notice of the definitions in
/etc/mk.conf
1998-01-15 09:37:27 +00:00
hubertf
902e9d6be4 Add us to MASTER_SITE_LOCAL. 1997-12-29 20:10:24 +00:00
hubertf
45194571e2 MACHINE_ARCH of pmax is "mips" 1997-12-27 03:24:10 +00:00
hubertf
a64285f809 Fix up documentation (MASTER_SITE_SUBDIR, PATCH_SITE_SUBDIR,
MASTER_SITE_BACKUP).
1997-12-21 01:59:44 +00:00
hubertf
902bf5f529 Now that we have ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles,
add it to MASTER_SITE_BACKUP.
1997-12-19 10:20:02 +00:00
hubertf
09dcd59cf7 - move definition of ARCH and OPSYS so it is even available if
ONLY_FOR_ARCHS is set
 - Usage points to PLIST_SRC
1997-12-13 21:28:24 +00:00
hubertf
20239bb938 do not depend on gmake being called gmake (pointed out by Matt Green) 1997-12-03 08:32:01 +00:00
agc
2c406d0ad3 Fix missing backslash when gzipping manual pages.
If we're going to go to the bother of defining LDCONFIG, we might as
well use it.
1997-11-26 09:24:18 +00:00
hubertf
2a7599fccd We use perl 5.004_04 now 1997-11-22 04:20:49 +00:00
hubertf
87364636d6 Use MI/MD PLIST files pkg/PLIST-{mi,md-{shared,static}} 1997-11-22 03:39:20 +00:00
agc
0d929991a3 Remove the magic control characters in a similar way to Bill Fenner's
patch for bsd.port.subdir.mk.
1997-11-21 17:44:11 +00:00
agc
4eed590d5b Eliminate a nasty and horrible kluge by using the BSD.x11.dist when
checking the directory tree for an X11 package.
1997-11-19 16:41:21 +00:00
hubertf
f6fac8cd37 Remove unneeded RCS Id 1997-11-10 08:07:29 +00:00
hubertf
090e0ed592 - Not only add $CAT[1-9] to _CATLIST, but also $CAT[NL}
- Fixup documentation for CAT<sect>, CATPREFIX.
(these two changes were accidentally committed to the 1.3 branch
 as revisions 1.13.2.3 and 1.13.2.4 before!)
1997-11-08 00:18:24 +00:00
agc
6c9ead9d89 Let make do the work:
+ set MAKE_PROGRAM variable in bsd.port.mk to either ${GMAKE} or
${MAKE}, and use it in do-build and do-install targets

+ if X11 package, and man pages are installed, add install.man to
${INSTALL_TARGET}, rather than using a separate command to do this.

Also added CATn= blah.0, similar to MANn= blah.1, which installs
pre-formatted man pages, like the ones imake produces.
1997-11-05 13:36:31 +00:00
agc
4434fa54ec When a package depends on an executable from another package,
bsd.port.mk would always find the executable (using which), even if
there wasn't an executable in the $PATH.  I've modified bsd.port.mk to
look for the executable directly, and simplified the shell code
somewhat in the process.  There may be a lurking bug in shell exit
status handling here.

Noted by matthew green <mrg@madrugada.eterna.com.au> and Chris
Demetriou <cgd@netbsd.org> (PR pkg/4337) but I was too stupid to
realise what was happening.  That, and a copy of gmake in
/usr/local/bin.
1997-10-28 12:46:37 +00:00
hubertf
3b3433af0e - don't clean out dependent packages (requested by thorpej)
- actually document the feature used above (NOCLEANDEPENDS)
 - put pkg/MESSAGE file into /var/db/pkg/XXX/+DISPLAY, if
   present (from FreeBSD)
1997-10-18 23:33:25 +00:00
thorpej
8af161a067 Make sure the ${PREFIX} directory exists before invoking mtree. 1997-10-17 01:40:49 +00:00
agc
fa4d9cc170 s/sed/${SED}/g
Change <$ARCH> into bsd.port.mk's ${ARCH} value (uname -m) when
constructing the derived PLIST, so that we can use packages on
non-i386 NetBSD architectures and have the correct file names in the
installed inventory.
1997-10-09 10:38:13 +00:00
hubertf
1fc40a5559 Be correct about manpage compression by regarding MANZ and fixing
PLIST before applying.

It is assumed that ports do install manpages uncompressed, if not
they have to set MANCOMPRESSED. Upon that, the pages will be
(un)compressed according to the setting of MANZ.
1997-10-07 00:30:31 +00:00
agc
82e85dd37b + Move inclusion of bsd.own.mk to the end of bsd.port.mk.
<bsd.own.mk> defines its own `install' target if none is defined,
which conflicts with the default one we define later on in bsd.port.mk.
This may nuke any WRKOBJDIR definitions (which I have yet to encounter),
but enables "make install" to work as expected.

+ Add temporary mtree file for any X11 packages (like xpm, jpeg etc),
which require a default X11 tree. This will change when we get a NetBSD
x11.dist mtree file.

+ Define SHAREOWN, SHAREGRP and SHAREMODE (in NetBSD) to be the same as
DOCOWN, DOCGRP and DOCMODE respectively.
1997-10-03 09:16:15 +00:00
hubertf
e2d34aa7bd MACHINE -> MACHINE_ARCH, as pointed out by thorpej.
(Changed in ARCH_ONLY stuff as well as WRKDIR definition)
1997-10-01 23:38:34 +00:00
hubertf
df52205019 - Move around .include <bsd.own.mk> so PORTSDIR gets set propperly
- make 'make clean' DTRT when WRKOBJDIR is set
1997-09-28 11:22:40 +00:00
hubertf
6cf9432e27 Forgot to include <bsd.own.mk> in last commit
(from OpenBSD)
1997-09-28 00:56:00 +00:00
hubertf
848315b212 - Add OpenBSD and FreeBSD Ids in the header
- Changes from FreeBSD's V1.164:
        * Warn if mtree-file not found
        * On 'make reinstall' gets DEPENDS_TARGET set
          to 'reinstall' instead of 'install'
  - Changes from OpenBSD's V1.14:
        * Documentation and implementation for ONLY_FOR_ARCHS
        * Documentation and implementation for WRKOBJDIR
        * Documentation on HAVE_MOTIF and MOTIF_STATIC:
          set in /etc/mk.conf, not /etc/make.conf
        * Set NOMANCOMPRESS=no to still compress man-pages
	  (should probably be set to 'yes')
        * DEF_UMASK=022
        * add ${MACHINE} suffix to WRKDIR if OBJMACHINE is set
        * .include <bsd.own.mk>
1997-09-28 00:44:15 +00:00
thorpej
78968c27c9 /usr/pkg/src -> /usr/pkgsrc (per discussion w/ agc) 1997-09-25 19:09:32 +00:00
agc
aacf970e46 Don't assume we're on NetBSD when setting LOCALBASE i.e.
test the OSNAME first.

Change the name of the mtree file to match NetBSD's.
1997-08-20 16:02:48 +00:00
agc
adfa9b1b6e Change paths for NetBSD. We have our PORTSDIR at /usr/pkg/src,
and our PREFIX is /usr/pkg.
1997-08-20 10:50:26 +00:00
agc
f3a1a1f048 Initial import of FreeBSD's ports makefiles. 1997-08-20 10:21:05 +00:00