Commit graph

1605 commits

Author SHA1 Message Date
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
lukem
12065b2b71 it's now bsd.pkg.mk (not bsd.port.mk) 1998-08-30 04:44:56 +00:00
garbled
e7a8892b6e Add new NOT_FOR_ARCHS variable, that has the reverse logic of
ONLY_FOR_ARCHS.
1998-08-28 14:03:48 +00:00
agc
1d40454b64 Re-introduce NO_PKG_REGISTER. We now have a use for it. 1998-08-28 11:13:23 +00:00
agc
efa51a069d Cosmetic mods:
PACKAGE_NAME_AS_LINK, which can have a YES or NO value, changed to
PACKAGE_NAME_TYPE, which can have an html or name value.

s/echo/${ECHO}/
1998-08-27 14:56:02 +00:00
frueauf
f9663802a3 Change "This package has a homepage" to "This package has a homepage at <link>."
Suggested by David Brownlee.
1998-08-27 11:34:23 +00:00
tsarna
5e9cc577b8 Automatically append HOMEPAge to DESCR files, and remove homepage URLs
from individual DESCR files that had them.
1998-08-26 16:50:48 +00:00
agc
844ae65cbc + Remove the generated ${PLIST} file when doing a re-install.
+ Enable wildcard matching in DEPENDS and CONFLICTS definitions.
1998-08-25 16:26:09 +00:00
tron
c21c981a9d Print an empty line before and after message file as "pkg_add" does. 1998-08-22 20:12:04 +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
92f6763b81 Don't barf if the environment sets PREFIX (just ignore it). Needed for
recursive makes.
1998-08-19 16:23:40 +00:00
agc
ad907f9db5 Add a LIBTOOL_FLAGS definition, and use it when adding ${LIBTOOL} to the
CONFIGURE_ENV and MAKE_ENV definitions.

Get rid of NO_PKG_REGISTER - it's not used anywhere.
1998-08-19 15:21:20 +00:00
tron
9a709927e0 Add "emul" directory. 1998-08-17 18:25:14 +00:00
tron
c03c3966d8 Fix MD5 checksum test in "do-fetch:" target to work with "DIST_SUBDIR".
Patch supplied by Jim Bernard in PR pkg/5962.
1998-08-14 22:10:53 +00:00
tv
0f64486f1a Add CROSSBASE. 1998-08-12 02:54:30 +00:00
tv
1cba567f7e Set NO_MTREE= for a USE_CROSSBASE pkg. 1998-08-12 01:30:13 +00:00
tv
985a1a266c - Introduce CROSSBASE and a USE_CROSSBASE option, for use with pkgs from
the "cross" subdirectory.  Defaults to ${LOCALBASE}/cross.
- PREFIX is not user settable.  Do not conditionally set it such that
  environment variables and mk.conf can override it.  Issue an error if
  PREFIX is attempted to be set from mk.conf, environment, or command line.
1998-08-11 19:30:48 +00:00
agc
894cb04dba Generate NetBSD RCS Id strings in the generated ${MD5_FILE}. 1998-08-07 12:30:29 +00:00
hubertf
952467d132 Back out last commit to better print an empty list of conflicting pkgs than
not to print any pkg at all.
1998-08-07 10:04:53 +00:00
hubertf
8efa598b69 Back out changes for fnmach'ing pkg_info -e due to the changed semantics
(print name(s) of found pkgs) not available in 1.3; This can be backed
out together with revisions 1.136-1.138 if NetBSD 1.4 gets out.
1998-08-07 07:44:26 +00:00
agc
342338df9b Revert previous change.
The matching package name is useful to check for any bogus matches, is
consistent with the BUILD_DEPENDS and RUN_DEPENDS matching, and will
be necessary when wildcard matching is introduced.  It is benign in
pre-fnmatching pkg_info(1)s, and useful in post-fnmatching ones.
1998-08-06 14:49:41 +00:00
tv
9c186e3461 Since 1.3.2 pkg_info -e doesn't print anything for a package name, be
uniform and don't try to print the package found name.
1998-08-06 14:18:35 +00:00
agc
1167a92572 Apparently, 1.3.2's pkg_info -e doesn't print the name of the matching
package, just using the exit value to determine success or failure, so
use the exit value in DEPENDS tests, rather than matching on output.
1998-08-06 13:01:55 +00:00
agc
cfe98cff62 Add back default MAINTAINER field.
Remove test which made MAINTAINER field mandatory - it's not a field that's
critical to the build or installation of a package, and is redundant given
a default value.
1998-08-06 09:51:20 +00:00
tv
fe8bdf4ad0 - Nuke LIB_DEPENDS pkg cruft. Add an error message if LIB_DEPENDS is set.
- Build in some pkglint: error out if DISTNAME or MAINTAINER are not set
  in the pkg Makefile.
1998-08-05 19:25:08 +00:00
agc
8cabc1463f Enable specification of CONFLICTS entries using fnmatch(3) patterns. 1998-08-04 15:05:38 +00:00
agc
0c7c660eaa Make it possible for package Makefiles to specify DEPENDS package
dependencies using fnmatch(3)-style wildcards.
1998-08-04 10:28:08 +00:00
tv
a2daea77e9 - Add option USE_LOCALBASE_FOR_X11.
- Redocument X11BASE as the primarily path to the installation of X11
  (and secondarily, the default X11 pkg install path).
1998-07-31 14:56:46 +00:00
tv
5e3dae779b - Integrate xpkgwedge with a switch, USE_LOCALBASE_FOR_X11, which leaves
X11BASE alone and, when set, sets PREFIX to LOCALBASE and adds a build
  dependency on xpkgwedge
- Nuke last vestiges of the ${ARCH} variable, and replace it with the
  binary compatibility identifier ${MACHINE_ARCH}.
- Include bsd.prefs.mk early in bsd.pkg.mk.  (Needed by xpkgwedge change.)
- Look for Motif/lesstif in both X11BASE and LOCALBASE
- Add rpath (-Wl,-R) options for MOTIFLIB
- Nuke obsolete EXEC_DEPENDS cruft
1998-07-31 14:55:38 +00:00
tv
7c6f6d5aeb Add mipseb and mipsel to MACHINE_GNU_ARCH and set them to mips. After
linting, set them to mipseb and mipsel accordingly.
1998-07-31 14:55:07 +00:00
agc
0d4ffda91d Calculate an additional checksum when a distfile is fetched - if it
doesn't match the stored checksum, retrieve the distfile from the
next site in the list, rather than simply dying.
1998-07-27 11:17:51 +00:00
tv
be6f4e5204 Add glob-style wildcards to ONLY_FOR_ARCHS. 1998-07-26 22:20:22 +00:00
mycroft
460b9f3c11 Use a direct comparison rather than a regexp match when looking for checksums. 1998-07-26 09:27:15 +00:00
lukem
8933f6caca support distclean in subdir makes 1998-07-26 03:25:54 +00:00
agc
138c3c37e3 Change two ocurrences of "grep foo | awk" pipelines into simple awk
invocations.  Minor re-format to the shared object handling (no
functional changes).
1998-07-24 14:13:46 +00:00
tv
519925679a Now I remember why I suggested a ${LIBTOOL} variable: libtool is also used
in manual {pre,do,post}-install targets in pkg Makefiles.  Define
${LIBTOOL} to be ${LOCALBASE}/bin/libtool, but do not allow it to be
overridden.
1998-07-24 01:47:33 +00:00
tv
c0ff1c70cc Add the USE_LIBTOOL pkg Makefile option. When set, it adds a build
dependency on libtool, and puts the path to libtool in $LIBTOOL in the
configure and make environments.
1998-07-24 01:41:15 +00:00
agc
388d113839 Add any licensing information to the README.html files which are generated
for each package.
1998-07-22 09:18:46 +00:00
agc
cdb325c0d5 The obsolete <$ARCH> pattern in PLISTs was not used anywhere - it has
been superceded by ${MACHINE_ARCH} and ${MACHINE_GNU_ARCH} - so remove
it.
1998-07-22 07:30:22 +00:00
agc
c382906b78 Missed one occurrence of "licence". 1998-07-21 11:12:11 +00:00
agc
548db3b001 Acceptable licence logic had been reverted to UK English spellings. 1998-07-21 11:09:11 +00:00
hubertf
684e8f57a8 Sort output of depends-list and package-depends targets. 1998-07-16 16:24:40 +00:00
agc
997da4ac6e On NetBSD ports which don't support shared objects, comment out any
shared object names in the PLIST.
1998-07-14 16:48:48 +00:00
agc
9ffd5f8e0c Fill in SHLIB_TYPE in the pkgsrc copy of bsd.own.mk. Use this value
in bsd.pkg.mk to work out the type of shared objects when doing
automatic shared object handling (ELF, a.out or none).
1998-07-14 15:53:54 +00:00
agc
d3d69aff56 Add logic to handle shared objects correctly for ELF and a.out platforms. 1998-07-14 11:36:11 +00:00
frueauf
004e47e5b0 cat ${PKGDIR}/MESSAGE in bsd.pkg.mk if it exists, don't do it in every
package Makefile.
1998-07-14 10:56:15 +00:00
hubertf
b400acae4b Only update README.html if it has changed. 1998-07-13 20:39:32 +00:00
mycroft
c2e672f055 We use American English.
licence -> license
1998-07-13 13:08:06 +00:00
tron
be401dbad8 Fix another variable expansion bug in dependence handling. 1998-07-12 09:41:25 +00:00
hubertf
403e10a469 partially back out variable expansion from rev. 1.109 as inspired by
tron's last commit. Beware that this may break in nasty ways when using
wildcards in CONFLICTS and DEPENDS.
1998-07-12 00:20:04 +00:00
tron
16878ea5a6 Fix dependences check. 1998-07-11 21:12:59 +00:00
mycroft
dd9de7a51b Removing /bin/cat is rather hostile... 1998-07-10 05:24:19 +00:00
hubertf
771cbc2f2c Only print "Creating README.html ..." if it really was created. 1998-07-09 18:18:43 +00:00
hubertf
9a4df22f55 Extend "pkg_info -e" to allow pkg-globbing, and allow using it. 1998-07-09 17:47:03 +00:00
hubertf
bb4fb86735 Fix check if we're doing a package or a category (via PR 5687 by
Tim Rightnour).
1998-07-07 15:08:10 +00:00
agc
90c83cf716 Add an ACCEPTABLE_LICENCES definition to /etc/mk.conf. This is a
whitespace-delimited list, and details which types of licences are
allowed.  Package Makefiles with non-standard licences (shareware,
non-commercial-use only) should have a LICENCE= <type> added.  Normal
package Makefiles remain unchanged.

Add logic to bsd.pkg.mk to check, if LICENCE is defined, that the package
is acceptable.
1998-07-06 15:10:48 +00:00
hubertf
49e451283d When OBJMACHINE and WRKOBJDIR set, be sure to also add the arch name to
the directory created in $WRKOBJDIR, to allow using the same obj-dir for
several architectures at once (e.g. via NFS or with cross compiling).
Inspired by Bill Studenmund <skippy@macro.stanford.edu>.
1998-07-03 19:27:39 +00:00
hubertf
de62410695 Fix a comment, nuke tabs at beginning of line
(pointed out by Bill Studenmund).
1998-07-03 06:18:43 +00:00
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
tv
1f34e4a1d4 Add ZIP_ENCRYPTION option for zip, zip1, and unzip pkgs. 1998-06-20 23:28:24 +00:00
tv
81faff1dd4 Apache pkg no longer uses HTTP_ROOT or VERS_ID. 1998-06-20 22:46:19 +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
tron
cfa9cb3a6b On request by mrg build "ssh" with "--disable-suid-ssh" by default. This
can be overridden by setting "SSH_SUID" to "YES".
1998-06-19 17:16:32 +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
agc
4c83501c32 Replace leading tabs before a comment with spaces in a new entry, to
keep make(1) happy.
1998-06-18 11:38:35 +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
hubertf
3f24a982fc Do not abort compilation of several packages if building a single package
fails. (Doing this via a "make -k" breaks things like dependent pkgs in a
nasty way)
1998-06-17 21:01:09 +00:00
tv
ad8e6d451e Update to 19980608, and add option to make use of the "bootstrap"
(actually, "bootstrap-lean") make target.
1998-06-15 19:06:23 +00:00
agc
8d33c3585d Modify the usage of the USE_SOCKS definition. Now it can take the
values:  4, 5 or undefined, meaning use socks4, use socks5, or don't
use socks, respectively.
1998-06-11 16:21:53 +00:00
agc
a74473ff60 Document PGGROUP definition, for use in the postgresql package. 1998-06-10 14:01:34 +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
6ece6d1ead Get rid of obsolete HAVE_MOTIF definition and explanation. 1998-06-10 07:21:49 +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
agc
ef77988d9f The previous re-formatting introduced tabs as whitespace characters
before the comment character - make(1) interprets these tabs as precursors
of a shell command. Change the tabs to spaces, so that mk.conf.example
can actually be used as /etc/mk.conf.
1998-06-04 12:30:25 +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
agc
a108306300 Consolidate all the logic for inclusion of MAKECONF, and /etc/mk.conf,
into one file, located in the pkgsrc tree.  Thus one file simply needs
to be included before any .if* statements in the package Makefile,
rather than a large number of ad-hoc methods of doing this.
1998-06-03 11:15:29 +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
ea657a401a Sync with the version in src/share/mk.
As this file may be used on hosts which are not NetBSD-current, add a
check that a version of -current is being used before setting UVM
dependent on platform.
1998-05-29 13:57:09 +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
905e28799e Make these lists real tables 1998-05-29 03:25:51 +00:00
hubertf
6a1ef30378 Mark README.html as precious.
This will result in the pkgsrc/README.html _not_ being removed, even if
some "make readme" in any of the pkgs fails. (That's the reason there
was no toplevel README.html when I postet this first :)
1998-05-29 02:34:36 +00:00
tron
6d8cd4b7a2 Add "SSH_NO_SUID" option. 1998-05-26 19:46:17 +00:00
tv
ed6fff9af7 SPARC was missing from the list of GNU_ARCHs. 1998-05-25 23:40:21 +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
tv
f671e5fcc3 Add the ability to map a MACHINE_ARCH to a GNU architecture name:
- ${GNU_ARCH.${TARGET_ARCH}} will produce a target architecture name in
  mainline sources
- ${MACHINE_GNU_ARCH} is equivalent to ${GNU_ARCH.${MACHINE_ARCH}}
1998-05-22 16:43:42 +00:00
agc
591b6bbf26 More cosmetic editing - PORTSTOP is now PKGSRCTOP 1998-05-15 12:14:24 +00:00
agc
1d9a75e381 PORTSDIR no longer existss, so delete a reference to it. 1998-05-15 12:10:43 +00:00
agc
abdead7f98 Fix botch in previous commit, as pointed out by Thorsten Frueauf.
Add missing semi-colon, and missing '$', both on the same line.
1998-05-14 14:27:47 +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
agc
ebaf10b588 s/make/${MAKE}/g
Use _THISDIR_, rather than DIRPRFX, in the same way as
src/share/bsd.subdir.mk, and pass _THISDIR_ down to any
subdirectories.
1998-05-14 11:52:01 +00:00
agc
d040b8ad6b Use spaces to indent lines which contain only comments, rather than tabs,
so that make(1) doesn't think that these lines contain shell commands.
1998-05-14 11:45:07 +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
1140042c87 Document AMANDA_USER and PGUSER variables. 1998-05-07 17:24:39 +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
fdd3aabd8c Enable deinstall target from here 1998-05-06 09:33:22 +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
agc
e5fc7b2597 Rename (by CVS repository copy) bsd.port.mk to bsd.pkg.mk, and
bsd.port.subdir.mk to bsd.pkg.subdir.mk.  Remove the Makefile that was
used to install the old files, as we use the files in place in the
pkgsrc tree now.
1998-04-15 10:32:59 +00:00
agc
fb3441ac31 Moved bsd.port.mk and bsd.port.subdir.mk into the pkgsrc tree, by
CVS repository copy magick. Add a Makefile so that these files can
be installed properly. This Makefile was derived from that in src/share/mk.
1998-04-14 07:54:09 +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
hubertf
3e3a40f8df Add examples for a distributed pkgsrc amongst different archs, plus some more. 1998-03-30 08:18:49 +00:00
agc
a7b030821a Initial pass at creating an example /etc/mk.conf. 1998-03-27 17:31:21 +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
105023d3e6 Echo the directory name when doing a "make readme", so that progress
can be monitored.
1998-01-30 14:33:48 +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
hubertf
6bbb30d306 add mirror-distfiles target also here 1998-01-27 23:04:48 +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
agc
9456e71ade Add lines so that "make readme" in the top level pkgsrc directory, or
one if the categories directories, will call "make readme" in
any subdirectories.

I thought that this was suggested by Chris Demetriou, but I can't find
any PR backing this up.  So my apologies to the person who did suggest
this.
1998-01-08 10:59:47 +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
41243ee1cb Modification by Bill Fenner which removes the embedded control
characters, and avoids the wrong interpretation of magic HTML
characters in DESCR files or categories.

Forwarded to me by Chris Demetriou, and refers to PR 4341.
1997-11-21 16:01:54 +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
agc
716f735802 Don't set username to man on the */cat? directories, as that username
might not exist on NetBSD.
1997-11-17 16:49:07 +00:00
agc
140a4576da Add NetBSD RCS Id. 1997-11-17 08:20:08 +00:00
agc
a9ef59e9b7 Initial import of FreeBSD's X11 mtree file. 1997-11-17 08:17:44 +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
7dbb594940 Remove the uname=man lines as NetBSD doesn't seem to have a user called
man.

Add NetBSD RCS Id.
1997-08-20 15:41:11 +00:00
agc
3b48b9faa2 Import FreeBSD's etc/mtree/BSD.local.dist as etc/mtree/BSD.pkg.dist.
This is for use with the FreeBSD ports system.
1997-08-20 15:23:33 +00:00
agc
6b32d05fa0 Change a path for NetBSD. Our PORTSDIR is /usr/pkg/src 1997-08-20 10:51:40 +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