Commit graph

253 commits

Author SHA1 Message Date
reed
fd3950fc40 Change "backspace" into "backslash".
Reported by  Jonathan Towne in PR #33480.
2006-05-15 16:28:19 +00:00
rillig
fd35d0a402 Added the word "internals" to the title of part III. Added a chapter
with general design guidelines. Fixed the statement that there are only
two parts.
2006-05-12 23:03:22 +00:00
rillig
127ca5704c Fixed the detab target. 2006-05-10 22:43:51 +00:00
rillig
b019c05b88 Ran "make detab". 2006-05-10 22:43:15 +00:00
rillig
b88e059259 Added the word ``internals'' to the title of part III and provided a
short introduction.
2006-05-10 22:42:30 +00:00
rillig
e300a151d9 Added part III, which is about the pkgsrc infrastructure. It currently
contains the chapter about porting pkgsrc to new platforms (formerly in
part II) and a new chapter on regression tests.
2006-05-10 20:56:00 +00:00
rillig
7bc0a76019 + Why does make show-var VARNAME=BUILDLINK_PREFIX.foo say it's empty? 2006-05-10 16:19:55 +00:00
rillig
d481d20fe8 Added a chapter in the developer's part for frequently asked questions. 2006-05-10 13:58:34 +00:00
jlam
2797f2c4fb Add two new capabilities to the pkginstall framework:
(1) Allow specifying the numeric UID and GID for users and groups in
    /etc/mk.conf by setting PKG_UID.<user> and PKG_GID.<group> to
    those values.  If these values are specified, then the +USERGROUP
    script will verify that existing users and groups match the
    requested UIDs and GIDs for the package, and otherwise create them
    with these UIDs and GIDs.  For example:

	PKG_UID.courier=	10001
	PKG_GID.mail=		6

    In this example, the courier-authlib binary package will be created
    to use uid 10001 for the "courier" user and gid 6 for the "mail"
    group.

(2) Allow a package to request that users and groups be created prior
    to configuring or building a package by setting USERGROUP_PHASE
    to "configure" or "build".  Because the reason for this is typically
    to hardcode the UIDs and GIDs of requested users and groups directly
    into the package's executables, these hardcoded values will be
    automatically determined and put into the +USERGROUP script.  For
    example:

	USERGROUP_PHASE=	configure

	PKG_GROUPS=	qmail nofiles
	PKG_USERS+=	qmaill:nofiles
	PKG_USERS+=	qmailq:qmail

    In this example, the users and groups are created before the
    configure phase when building qmail, and the qmail binary package's
    +INSTALL script will try to create (or verify) users and groups
    with the same UIDs and GIDs that were used during the build.

As part of these changes, the format for PKG_USERS and PKG_GROUPS has
changed -- the optional parts of the corresponding entries are no
longer used and cannot be specified.  Instead, the following variables
should be set:

        PKG_GID.<group> is the group's numeric GID.
        PKG_UID.<user> is the user's numeric UID.
        PKG_GECOS.<user> is the user's description.
        PKG_HOME.<user> is the user's home directory.
        PKG_SHELL.<user> is the user's login shell.

A separate commit will follow which will fix all packages that set
PKG_USERS and PKG_GROUPS to use the new syntax and variables.
2006-04-23 00:00:43 +00:00
lukem
f2b2c16894 use "tnftp" instead of "lukemftp" 2006-04-22 05:43:51 +00:00
rillig
d47c2c3393 Replaced SITES_* with SITES.*. 2006-04-21 07:55:16 +00:00
rillig
0747a13bdd Specified the structure and interpretation of the WRAPPER_REORDER_CMDS
variable.
2006-04-21 07:54:12 +00:00
rillig
86da515abd Documented (parts of) the wrapper phase. 2006-04-21 07:30:32 +00:00
rillig
a61f2d33e4 Added the binary packages URLs for Solaris 9. 2006-04-18 12:56:53 +00:00
jlam
d19161d212 Modify the plist module to automatically transform "^share/locale" in
PLISTs to "${PKGLOCALEDIR}/locale" for the installed PLIST.  This is
similar to the work that's already done to automatically handle
PKGINFODIR and PKGMANDIR.  PLISTs in pkgsrc will be modified so that
they would just list the message files to be under "share/locale".
USE_PKGLOCALEDIR must continue to be set in package Makefiles so that
localedir substitutions happen at post-configure time.
2006-04-17 06:12:46 +00:00
jlam
f85023f9da Now that all info file entries have been pushed from INFO_FILES into
the PLISTs, drop support for listing info files in INFO_FILES.  The
INFO_FILES variable is now strictly defined/undefined.
2006-04-16 04:27:17 +00:00
reed
103077021c Add missing close "para" tags in the INFO_FILES and PKGINFODIR
paragraphs.
2006-04-08 07:43:41 +00:00
reed
d31af5019d Move around text and rewrite some of the text
explaining BUILDLINK_API_DEPENDS and
BUILDLINK_ABI_DEPENDS.
2006-04-06 07:57:10 +00:00
reed
2f2c7d581f Fix documention about about BUILDLINK_API_DEPENDS (was
BUILDLINK_DEPENDS) and BUILDLINK_ABI_DEPENDS.pkg (was
BUILDLINK_RECOMMENDED).

Noticed
2006-04-06 07:33:30 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
29fefe52e3 * Creates a new variable PKGINFODIR (named similarly to PKGMANDIR)
that is a purely user-settable variable to represent the relative
  path under ${PREFIX} where info files are stored and "dir" files
  are managed.  PKGINFODIR defaults to "info".  INFO_DIR still works,
  but will be obsoleted after the 2006Q1 branch.

* Modify GNU_CONFIGURE_INFODIR to only honor ${PKGINFODIR} if the
  package installs directly into ${PREFIX} and not some subdirectory
  under ${PREFIX}.  This fixes packages that don't really honor
  $(infodir) all that well, and also avoids PLIST problems relating
  to directory removal for those packages.

* Since the majority of Emacs Lisp packages use GNU_CONFIGURE, just
  set GNU_CONFIGURE_INFODIR directly to ${EMACS_INFOPREFIX}, which is
  the Emacs-distro-specific location for info files.  Also pass
  EMACS_INFOPREFIX through PLIST_SUBST for PLIST substitution.

* INFO_FILES should be defined if the package installs info files.
  If the info files are not listed in the PLIST, then INFO_FILES
  must list the filenames for the info files installed by the package,
  which are assumed to be located in ${PREFIX}/${PKGINFODIR}.

* The plist module can now better detect info files listed in PLISTs
  and exports a command to the pkginstall module to append info file
  names to the +INFO_FILES scriptlet at install-time.

* The print-PLIST target is updated to properly list info files in
  the auto-generated PLIST.

* The check-files code is updated to skip all "dir" Info database files.
2006-03-20 01:48:57 +00:00
wiz
ece6e09d33 pkgsrc-users@ is the new default maintainer. 2006-03-17 19:45:30 +00:00
wiz
cb6329d205 Update mailing list information from subscription page and jlam's posting
when pkgsrc-users was created.
2006-03-17 19:45:07 +00:00
rillig
d05133fc3c For solving the Solaris/libtool problem, libtool-base needs to be
reinstalled.
2006-03-14 14:04:54 +00:00
rillig
78b38aeaa0 Fixed references to non-existent packages. When a package needs source
files from another package, it should just add that other package to
DISTFILES instead of (cd otherpackage && make extract).
2006-03-12 11:34:09 +00:00
jlam
949723070b ossaudio.buildlink3.mk instances should now be "oss.buildlink3.mk" 2006-03-09 21:45:51 +00:00
rillig
547ad94911 Documented the REPLACE.* and REPLACE_FILES.* variables. Added a note for
the old names.
2006-03-09 16:34:08 +00:00
wiz
dda9800f99 Correct path in example line for pre-build.local. 2006-03-03 22:22:07 +00:00
rillig
4a7a902fd7 There are some rules for adding a change to doc/CHANGES when the
PKGREVISION is bumped. If none of the rules applies, the behavior is
developer-dependent.
2006-03-02 23:08:40 +00:00
rillig
c0186393a8 Minor wording change. 2006-03-01 17:16:21 +00:00
reed
71f42efe60 Space between DragonFlY and BSD. 2006-03-01 00:04:30 +00:00
reed
197d86c91a Add a note about X11_TYPE about DragonFly's default.
(I had this in my pkgsrc since November.)
2006-03-01 00:01:51 +00:00
rillig
30e1783f6b Indented the output of "make show-options" properly. 2006-02-28 11:50:07 +00:00
rillig
74a3b41c9c Updated the "Using pkgsrc" chapter a bit, making it more
platform-independent. Explicitly added URLs where to find binary
packages for Solaris.
2006-02-22 01:30:25 +00:00
rillig
a67eedd930 Bootstrapping pkgsrc to build 64-bit binaries on Solaris with SunPro is
non-trivial. At least, it's documented now.
2006-02-18 19:59:12 +00:00
rillig
8d47b2a538 After the 2006Q1 branch, SITES_${file} should be replaced with
SITES.${file}.
2006-02-18 17:11:50 +00:00
rillig
448320f2d9 Documented the variable ALLOW_VULNERABLE_PACKAGES to be useful for bulk
builds.
2006-02-18 17:07:33 +00:00
rillig
dc9a324f58 Added a new chapter to the developer's guide that explains how to port
pkgsrc to new operating systems, how to add support for a compiler, and
maybe more.
2006-02-18 01:46:43 +00:00
rillig
a26429dde9 Documented the new mk/scripts/extract command. 2006-02-17 20:38:17 +00:00
rillig
377b70b74e On Solaris, it may be necessary to redefine WRAPPER_SHELL to work around
the buggy /bin/ksh.
2006-02-14 17:10:15 +00:00
rillig
529c1ceea2 Documented the broken /bin/ksh on Solaris (Fixes PR 32826). Compressed some
simple itemizations.
2006-02-14 10:12:39 +00:00
rillig
d917c825cf Removed trailing white-space. 2006-02-12 14:44:59 +00:00
rillig
ff0341dde1 Added a description for INSTALLATION_DIRS. Reworded the text of the
build.install section.
2006-01-27 04:06:25 +00:00
rillig
a3fbb6fc68 Added a reference to the file where CHECK_FILES and CHECK_INTERPRETER can
be found. Removed CVS_USER, since it doesn't exist anymore.
2006-01-22 21:56:13 +00:00
rillig
7acc70578f Added missing </para>. 2006-01-16 00:29:23 +00:00
minskim
e7afab3e12 Sync with htdocs and add NetBSD.css so that "make install" works. 2006-01-14 17:18:31 +00:00
reed
ec24b3ed93 Cross reference the "tools phase" section to
the new tools chapter.

I removed the TODO here; maybe some text should still be added
for this chapter?
2006-01-13 17:55:27 +00:00
reed
35d10ae652 Add a "tools" chapter. Documents the USE_TOOLS. 2006-01-13 17:42:33 +00:00
hubertf
3a6f5296c8 Add an example for the pkg options variables in /etc/mk.conf 2006-01-13 17:21:07 +00:00
wiz
5cbcb1ecd6 s/unstripped/stripped/ 2006-01-12 21:46:33 +00:00