Commit graph

261 commits

Author SHA1 Message Date
jlam
7230ff5dd9 PKG_SYSCONFDIR is not supposed to be settable, so change its setting from
?= to =.  Note in Packages.txt that the only variables that a user should
customize in /etc/mk.conf are PKG_SYSCONFBASE and PKG_SYSCONFDIR.<pkg>.
2002-08-26 05:17:39 +00:00
agc
09afe2685e Remove the setting of BATCH=yes and DEPENDS_TARGET=bulk-install from
the example mk.conf for bulk builds, since these are now set by the
bulk build machinery itself.  This allows an /etc/mk.conf file to be
shared between ordinary builds and bulk builds.
2002-08-12 14:23:47 +00:00
wiz
a06a664212 Add a paragraph on how to move a package in the repository. 2002-07-29 21:10:18 +00:00
hubertf
82eb1cbb51 fix typo 2002-07-04 13:42:11 +00:00
wiz
0c3f94f20f Deprecate USE_SSL. 2002-07-02 15:25:49 +00:00
agc
769153c5c4 Deprecate IS_INTERACTIVE, and introduce a finer-grained INTERACTIVE_STAGE
definition.

INTERACTIVE_STAGE can take any of the values: fetch, configure, build and
install

Multiple values are allowed: e.g. INTERACTIVE_STAGE= configure install

Explain INTERACTIVE_STAGE and its use in documentation.

Patches provided by Chris Pinnock (cjep@netbsd.org).
2002-07-02 11:26:05 +00:00
rh
377a66c493 Give an example on how to ensure the tree is clean for packages and
prerequisites to be updated.
2002-06-30 03:52:32 +00:00
rh
34c33b1c1d Sync the description of DEPENDS_TARGET w/ reality and explain why
UPDATE_TARGET is the recommended way of modifying the target to be used for
'make update'.
2002-06-30 03:43:43 +00:00
hubertf
8743b21d04 Tweak:
- cut and paste read instructions for setting (most of) chroot sandbox
 - add mk.conf frob for accepting all licenses (in bulk build code only! ;)
2002-06-27 09:50:42 +00:00
agc
144a9d019b It's OBJHOSTNAME, not OBJHOST. 2002-06-25 21:21:44 +00:00
jlam
f28a0a731b In order to solve the following problems:
(1) Admins want to create users/groups on their own (pkg/17183).
    (2) Admins don't want packages to setup an initial configuration.

The bsd.pkg.install.mk-generated INSTALL/DEINSTALL scripts have been
modified to check certain PKG_* environment variables to tune their
behaviour.  This works whether installing from "make install" or from a
binary package.

PKG_CREATE_USERGROUP indicates whether the INSTALL script should
	automatically add any needed users/groups to the system using
	useradd/groupadd.  It is either YES or NO, and defaults to YES.

PKG_CONFIG indicates whether the INSTALL/DEINSTALL scripts should do
	automatic config file and directory handling, or if it should
	merely inform the admin of the list of required files and
	directories needed to use the package.  It is either YES or NO,
	and defaults to YES.

The make(1) variable INSTALL_RCD_SCRIPTS is removed.  The package rc.d
script is now handled like other config files for the package, and is
copied into place if PKG_CONFIG=YES.

The default values above reflect the current behaviour.  Setting
PKG_CREATE_USERGROUP=NO solves problem (1), and setting PKG_CONFIG=NO
solves problem (2).

To simply matters for users installing directly from pkgsrc, these
variables may also be defined in /etc/mk.conf, but behaviour at deinstall
time may be surprising.  It is *HIGHLY* recommended that these values be
set in the shell environment instead.
2002-06-20 20:15:46 +00:00
agc
9aa6173c68 Document "PKG_DEBUG_LEVEL" definition, and also mention "make show-var
VARNAME=..."
2002-06-18 16:14:54 +00:00
skrll
5fe610a6dc Improve the wording around GNU autoconf. 2002-06-17 21:46:04 +00:00
wiz
7395aab7dd Add a paragraph: packages that are uploaded to ftp.netbsd.org should be
built against the default X version for that release and architecture,
which is currently 3.3.6 for all architectures. Addresses pkg/16492.
2002-06-17 09:51:27 +00:00
schmonz
b87397dab4 Explain why we prefer "cvs import" for new packages, paraphrased from agc. 2002-05-30 22:55:21 +00:00
hubertf
e12635045f Document config file handling.
Contributed by Julio Merino <jmmv@hispabsd.org> in PR 16971,
with minor editing by myself.
2002-05-22 23:30:21 +00:00
zuntum
895132ab51 Add missing verb.
Fixes PR#16892 by Julio Merino <jmmv@hispabsd.org>
2002-05-19 08:52:17 +00:00
enami
f6c1a22829 Shorter command to generate a TOC. 2002-04-27 02:42:22 +00:00
wiz
3057923e20 Fix reference to section 8 to point to section 9 instead.
By Julio Merino from pkg/16333.
2002-04-13 12:59:52 +00:00
seb
4df689701b If it is respectively' then I guess that 2.0-compatible' and
`1.2-compatible' should be inverted.
2002-04-02 21:04:31 +00:00
rh
922daf7b3c Make it explicit that the warning about mixing LOCALBASE with the rest of
the system applies both ways, i.e., don't set LOCALBASE to where you have
your system files, *and vice versa*, as this repeatetly has lead to
problems (see PRs 15999 and 16029 for the latest examples).
2002-03-27 20:50:33 +00:00
hubertf
ec2b85f729 remove some stuff accidentally committed in rev. 1.237 2002-03-23 22:52:32 +00:00
hubertf
96a481e27f * bulk build setup: document a few variables
* sort order of things to do to setup bulk build sandbox
2002-03-23 22:47:45 +00:00
hubertf
c14edbd4a5 Add:
10.26 Using pkgsrc on non-NetBSD (Linux, Solaris, Darwin, MacOS X)
2002-03-23 15:33:15 +00:00
hubertf
d91f40b832 Move documentation where it belongs.
Add paragraph "Setting up a sandbox for chroot'ed build" to
Packages.txt and xref it from do-sandbox-build script
2002-03-13 06:30:12 +00:00
fredb
b39b1f2a18 Give the new section a *unique* number, and be consistent about use of
blank lines.
2002-03-11 19:19:18 +00:00
fredb
dbbb576326 Move the DYNAMIC_MASTER_SITES explanation into it's own subsection of
Section 10, and also explain there about _FETCH_MESSAGE. There are a few
things in Section 10 which would probably be better in Section 2, but that
would entail some major churning, which I'm not prepared to do.
2002-03-11 19:12:07 +00:00
wiz
df8b8b4274 Grammar improvements. 2002-02-18 17:07:20 +00:00
seb
7c4de7339d Document handling of info files, makeinfo and install-info commands with
mk/texinfo.mk.
(Something went wrong, this should have been in my last commit about TeXinfo
and all.)
2002-02-18 16:40:34 +00:00
skrll
2d3b54203a s/NetBSD/Pkgsrc/ in the libtool section. The use of libtool is not limited
to NetBSD only.
2002-02-15 09:33:43 +00:00
hubertf
4eb35f5719 s/sysctl/uname/, pointed out by Klaus Klein 2002-02-13 23:29:37 +00:00
abs
342971e7f0 Implement DYNAMIC_MASTER_SITES
If you need to download from a dynamic URL you can set DYNAMIC_MASTER_SITES
and a 'make fetch' will call files/getsite.sh with the name of each file
to download as an argument, expecting it to output the URL of the directory
from which to download it. graphics/ns-cult3d is an example of this usage.
2002-02-13 20:05:02 +00:00
mjl
5c72aa660a Typo fix 2002-02-13 12:30:52 +00:00
skrll
0666834726 Update the AUTOMAKE_OVERRIDE part (its on by default now) with a word of
warning that it may cause problems.
2002-02-12 09:36:00 +00:00
skrll
260d572589 Clarify the automake/conf description slightly.
autoreconf will call aclocal if necessary and as this is part of automake
so its wrong to describe it as the autoconf only option. Change autoreconf
to autoconf.

Also explictly mark the automake example as "automake and autoconf".
2002-02-12 09:29:56 +00:00
agc
cf3780e1c2 Add and document a new OBJHOSTNAME definition.
If set, the first component of the hostname (up to the first '.', if any),
will be appended to "work." to form the WRKDIR_BASENAME.

OBJHOSTNAME takes precedence over OBJMACHINE.
2002-01-11 14:41:41 +00:00
fredb
9dcbdecef3 Document recent changes to the fetch targets, especially ${SITES_foo}. 2002-01-06 21:48:40 +00:00
lukem
ec9a03e2c1 no point in having two 10.22's 2001-12-31 14:58:46 +00:00
abs
0e280055c2 add 10.22 How to handle compiler bugs 2001-12-31 14:09:15 +00:00
mason
f87002db21 scripts/ no longer exists 2001-12-26 15:06:35 +00:00
agc
ccff9099bc Modify all references to PKGSRCDIR to _PKGSRCDIR, except in the external
references of the pkglint package.

_PKGSRCDIR is an internal definition in bsd.pkg.mk, and a few packages
which would like to refer to other packages in the build tree. It should
not be set by users, but neither should it stop a user from building a
package if it is defined, so make it obvious that this is the case.
2001-12-15 20:25:34 +00:00
wiz
9d774a36a3 Retire USE_CURSES, which was superseded by devel/ncurses/buildlink.mk, and
has now been purged from pkgsrc.
2001-12-12 16:30:04 +00:00
hubertf
a0a7a4896a Clarify things on PKGREVISION a bit, and mention that it should be removed
if the pkg is upgraded to a new release of the software. (Setting
PKGREVISION=0 should do ok too, but I don't think we want to document that)
2001-12-08 02:14:38 +00:00
wiz
1a9a466f05 Add support for distfile-specific master sites, as requested in pkg/7471.
Syntax:
MASTER_SITES_completefilename=	http://specific.master/site
and similarly for PATCH_SITES.
Convert print/ghostscript-nox11 and x11/kterm to take advantage of this.
2001-12-02 21:29:20 +00:00
wiz
d6b705489b Remove REPLACE_CURSES from bsd.pkg.mk (not needed anymore), and don't
document it and USE_CURSES in Packages.txt anymore (packages should
really use devel/ncurses/buildlink.mk instead).
2001-11-30 01:26:32 +00:00
hubertf
5542206cba Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.

Example #1:
        DISTNAME=       foo-X.Y
        PKGREVISION=    Z
     => PKGNAME=        foo-X.YnbZ

Example #2:
        DISTNAME=       barthing-X.Y
        PKGNAME=        bar-X.Y
        PKGREVISION=    Z
     => PKGNAME=        bar=X.YnbZ (!)

On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
2001-11-29 01:12:24 +00:00
hubertf
9c7a4c4c00 add a few quotes to make things a bit clearer in one place 2001-11-27 03:03:11 +00:00
jlam
68653b87d0 Update description of how to create a user/group account for a package
to use PKG_{USERS,GROUPS}.
2001-11-26 22:06:58 +00:00
jlam
8e650c8e90 Add description of PKG_SYSCONFDIR and related variables, and note that
pkgsrc policy now is to make packages look for their config files in
${PKG_SYSCONFDIR}.
2001-11-25 19:10:27 +00:00
jlam
3cb36985d3 Note that to handle creating new users/groups for a package, you should use
bsd.pkg.install.mk and set PKG_USER/PKG_GROUP appropriately.
2001-11-19 16:28:03 +00:00