Commit graph

5378 commits

Author SHA1 Message Date
jlam
ec33004d29 Fix {group,user}_exists functions when the numeric ID is not set. Fix
provided in PR pkg/33346 by Yoshito Komatsu.
2006-04-24 15:44:32 +00:00
rillig
4dcf0c7e97 Added the shebang line. 2006-04-24 01:31:04 +00:00
dmcmahill
0b88a6acba add pcb-motif 2006-04-23 03:03:23 +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
rillig
1ffbacec96 Adjusted the code to the pkglint warning that NO_PACKAGE should not be
quoted.
2006-04-22 08:36:07 +00:00
tonio
3fa128cd0c remove teTeX1 from the TEX_ACCEPTED list, since it was removed 2006-04-19 13:14:57 +00:00
reed
b2cb858b9e Update PREFER_PKGSRC for the two package renames (renderproto and randrproto). 2006-04-19 12:23:29 +00:00
jlam
2f39e321ba Rename the CHANGES file to CHANGES-2006. From now on, the changes for
each year will accumulate in CHANGES-YYYY.
2006-04-18 00:25:04 +00:00
jlam
138140738b Only do the locale transformation if USE_PKGLOCALEDIR is defined. This
avoids any problems with current packages that install locale files but
don't honor PKGLOCALEDIR yet.
2006-04-17 06:30:48 +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
jlam
d35c266b0a There are two things that we need to keep track of:
(1) whether or not the built-in msgfmt supports msgid_plural, and
       thus whether we need to use the msgfmt.sh script
       (_TOOLS_USE_MSGFMT_SH), and

   (2) whether or not we need to use the pkgsrc version of msgfmt
       (_TOOLS_USE_PKGSRC.msgfmt)

If we truly don't need to use msgfmt.sh, then never invoke it.  This is
the case on NetBSD>=3.x.  This should fix the problem with building the
*.po files in fonts/fontforge on NetBSD-current.
2006-04-15 16:48:12 +00:00
salo
27e4f856bf Back to pkg-vulnerabilities format 1.0.0. 2006-04-15 15:00:24 +00:00
jlam
4d60064932 Reorder the loop so that we can never get into an infinite loop. We
now pass every line we don't need to process directly through to
msgfmt.  This fixes building pt_BR.po in libgnomedb where all of the
lines end with "^M" and this script wasn't properly detecting a blank
line as a result.
2006-04-15 04:41:08 +00:00
jlam
c5dba803cb Modify the loop so that the statements and comment lines can be
interspersed.
2006-04-15 04:32:02 +00:00
minskim
45ddb3557a Apply jlam's awk fix done in plist-info.awk 1.12.
- Avoid () as a regular expression as the interpretation seems to be
    implementation-defined by various awks.
2006-04-15 04:25:17 +00:00
jlam
32cd3f09b7 Replace a re-used regular expression with a constant. 2006-04-15 01:36:40 +00:00
jlam
1c39903d14 Drop all msgstr[N] translations besides msgstr[0] and msgstr[1] because
those translations can have no corresponding msgid anchor in the old
PO file format.  This allows all of the *.po files in gnome-vfs2 to
build correctly into *.mo files.
2006-04-14 22:37:38 +00:00
jlam
b770e349e6 Whitespace changes for proper indentation. 2006-04-14 22:23:25 +00:00
jlam
fb96576317 Remove debugging code so that we actually invoke msgfmt. 2006-04-14 22:21:04 +00:00
jlam
65abd7dc11 Avoid using the awk input loop and use our own while loop in a BEGIN
statement.  While here fix processing of *.po files containing obsolete
statements by preserving them for msgfmt to handle.  Also use a few
more constants to make the code more maintainable and readable.
2006-04-14 22:16:33 +00:00
jlam
1e2d98e634 Make the display of show-options more readable when there are lots of
options, e.g. x11/xorg-server, by wordwrapping the output.
2006-04-14 17:15:03 +00:00
jlam
28856457ab If we can't find the package with pkg_info when computing BUILDLINK_PREFIX,
make the resulting error message more useful for debugging purposes
by including the name of the variable in a null statement that is part
of the command executed.
2006-04-14 16:59:04 +00:00
jlam
46ac1a79cc Support a --debug flag that dumps the output of the awk script to a
*.debug file.
2006-04-14 14:40:34 +00:00
jlam
0be006d1fe Now that I understand why we strip "#~" from the head of lines, strip
it consistently whenever we read a new line of input throughout the
script.  Note that this was actually broken in the original msgfmt.pl
script as well.
2006-04-14 14:06:54 +00:00
jlam
4fd6588dbf Use the correct cat command. 2006-04-14 13:49:17 +00:00
jlam
018313ec9e Document the puzzling line that strips "#~" from the start of lines.
Explanation provided by jmmv in private email.
2006-04-14 13:43:23 +00:00
jlam
0107cd1802 Add TNF copyright to file as suggested by jmmv in private email. 2006-04-14 13:40:07 +00:00
jlam
c3dcd17e53 Avoid () as a regular expression as the interpretation seems to be
implementation-defined by various awks.
2006-04-14 13:23:42 +00:00
wiz
0719006c41 Update path from cyrus-sasl2 to cyrus-sasl. 2006-04-13 21:45:12 +00:00
jlam
35c719b4c3 Do a bit more error-checking -- if no input file is specified, just run
the msgfmt command to get the right error message and return code.
2006-04-13 19:41:22 +00:00
jlam
d0f812f4cb Move the gettext tools handling to mk/tools/gettext.mk. We ensure
that we use the pkgsrc versions of xgettext and gettext if we're also
using the pkgsrc version of msgfmt.
2006-04-13 19:24:29 +00:00
jlam
fe289f4c72 Rename msgfmt.mk to gettext.mk. The rest of the gettext tool handling
will be moved here from replace.mk shortly.
2006-04-13 18:45:01 +00:00
jlam
1cf9796f3c BUILD_USE_MSGFMT and USE_MSGFMT_PLURALS are obsolete. Replace with
USE_TOOLS+=msgfmt.
2006-04-13 18:23:29 +00:00
jlam
0f4967eb59 Overhaul the way packages can ask for "msgfmt". If a package needs
msgfmt, then it should set the following in the package Makefile:

	USE_TOOLS+=	msgfmt

To deal with message files that use the "msgid_plural" statement,
which isn't supported in NetBSD<=3.x and also in gettext<=0.10.35, we
determine if the built-in "msgfmt" is sufficiently new enough to
understand "msgid_plural".  If it isn't, then we use the msgfmt.sh
script to transform the msgid_plural statements to an equivalent
construct that's understood by older msgfmt tools.

The msgfmt.sh script is a straightforward translation of the original
perl script msgfmt.pl script by Julio M. Merino Vidal into shell and
awk, which are more lightweight dependencies than perl.

We remove the USE_MSGFMT_PLURALS bits in gettext-lib/builtin.mk as they
are made obsolete by the new code in mk/tools/msgfmt.mk.

BUILD_USE_MSGFMT is still supported but will be removed in a separate
commit.
2006-04-13 16:35:57 +00:00
jlam
530fe2b25a Better error-checking in the +INFO_FILES scriptlet:
(1) Don't claim to be adding and removing the info file if it does
    exist at all.

(2) Always try to create and remove the directory containing the "dir"
    index file to avoid failures.
2006-04-12 21:13:56 +00:00
joerg
4476e7eb89 Add INSTALL_GAME_DIR to complement INSTALL_GAME_DATA. The directories
are group-writeable by the games user on those platforms, where
GAMEMODE includes setgid. It defaults to PKGDIRMODE otherwise.
2006-04-12 21:01:15 +00:00
jlam
694478afb8 If the info file doesn't exist on the disk, we should still output an
entry for it in the final PLIST.  This allows us to locate info files
in the PLIST that aren't on the system during the CHECK_FILES stage.
2006-04-12 20:49:12 +00:00
reed
af62eac2f9 Rename the _PKGTOOLS_VER variable in the +BUILD_INFO to
PKGTOOLS_VERSION (since that is what it is).

Also add to the +BUILD_INFO the:
HOMEPAGE (also is in DESC)
CATEGORIES
MAINTAINER
DATE (using "+%Y-%m-%d %H:%M:%S %z")

This information will be included in the upcoming
pkg_info -X "summary" output.

(In my own pkgsrc, I have been recording the date and maintainer
for over two years.)
2006-04-12 19:28:47 +00:00
markd
b4a8455f21 Move MASTER_SITE_KDE to mk/bsd.sites.mk 2006-04-12 11:37:18 +00:00
tron
8e9056b23c Teach Kerberos 5 to detect the MIT Kerberos 5 bundled with Mac OS X.
This stops the "gnome-vfs2" package from pulling in the "heimdal" package.
This fixes PR pkg/29946 by Juha-Matti Liukkonen.
2006-04-10 15:04:44 +00:00
schwarz
6a99fbad5b Modified xmkmf support for Darwin and IRIX:
- on Darwin, pkgsrc no longer tries to set user or group when installing
  as unprivileged user, i.e. with UNPRIVILEGED set to yes.
- on IRIX (5 and 6) the system's xmkmf config files are no longer modified.
  Instead copies (that take priority with pkgsrc's xmkmf) are used for that
  purpose.
2006-04-10 13:38:36 +00:00
tron
346770d72d Correct typo in example Makefile snippet. 2006-04-10 12:25:43 +00:00
jlam
58140d4125 Correct comment on run-depends-list target (PR pkg/29741). 2006-04-10 04:47:30 +00:00
wiz
98d5a4af89 Remove ua locale dir again, it was a typo. 2006-04-09 12:37:01 +00:00
wiz
aa979a138f Add ua (Ukraine) locale dir for xchm-1.6. 2006-04-08 22:34:03 +00:00
wiz
42d56e7606 Add dz locale, used by glib2-2.10.2. 2006-04-08 21:12:04 +00:00
jdolecek
7a249b223a fix URL of first CZ postgresql mirror (directory structure changed) 2006-04-08 18:48:58 +00:00
jdolecek
2e457b55aa add MASTER_SITE_PGSQL, copy of list from databases/postgresql80/Makefile.mirrors 2006-04-08 18:47:31 +00:00
jlam
75228d481d If the package doesn't ask makeinfo, create a broken makeinfo tool
that will return non-zero if invoked as "makeinfo --version", but will
touch the output file if invoked blindly.  This should workaround some
stupidity in the way that automake-generated Makefiles try to determine
when and how to rebuild info files.
2006-04-07 14:52:55 +00:00