Commit graph

5424 commits

Author SHA1 Message Date
jlam
5f0d92603f Add back "gsoelim" as a NetBSD tool since it supports "-I directory".
Mark this as merely "GNUish" in the comment so that we know it's not
really GNU soelim.
2006-05-21 17:25:27 +00:00
jlam
884ac81839 NetBSD actually doesn't have GNU soelim, but rather BSD soelim. 2006-05-21 16:57:07 +00:00
jlam
872507ebf5 Teach the tools framework about "groff" as a tool. 2006-05-21 16:55:21 +00:00
jlam
f89090ec85 Pass PKG_PHASE=install when recursively calling make from within the
real-su-install target so that the {pre,do,post}-install target command
lists will see the correct, fully-expanded definitions of certain
phase-specific variables.
2006-05-21 14:41:29 +00:00
rillig
df86d70987 Replaced ECHO_MSG with STEP_MSG. 2006-05-21 13:24:44 +00:00
jlam
408b9158bd Avoid a difference in shell implementation between IRIX 5.3 and newer
UNIX systems which caused recursive script invocations to not work.
Patch from Georg Schwarz in private email.
2006-05-21 00:14:51 +00:00
jlam
5b63911cc1 Modify msgfmt.sh to make the following changes when filtering *.po files:
msgid		-> msgid ""
	msgid"..."	-> msgid "..."
	msgstr		-> msgstr ""
	msgstr"..."	-> msgstr "..."

The filtered *.po files can then be processed by msgfmt<=0.10.35.

These changes workaround bugs in *.po files in software of the "all
the world runs Linux" variety where the software author either willfully
or stupidly can't follow the format for *.po files described in section
2.2 of the gettext info manual and, in addition, makes lame excuses
when confronted with the evidence.

This closes PR pkg/33506 by Ben Collver.
2006-05-20 23:29:42 +00:00
jlam
65ded3b2ac We can simplify MSGSTRN_RE because we already catch the msgstr[0] and
msgstr[1] cases earlier.
2006-05-20 22:13:23 +00:00
jlam
55b0077b28 Rename ORE to OBSOLETE_RE for more clarity in the variable name. 2006-05-20 22:10:18 +00:00
jlam
58a3fca292 Restore "unnecessary" variable... sometimes we use named constants for
documentation/readability purposes...
2006-05-20 22:06:34 +00:00
perry
a637ec3589 Now that ftp.netbsd.org has an http server, include it in the list for
MASTER_SITE_BACKUP for the benefit of people behind broken firewalls
that screw up ftp.
2006-05-19 02:21:24 +00:00
adrianp
e881d3d0d0 Rename spoof to syslogng-spoof. Suggested by wiz@. 2006-05-16 22:51:37 +00:00
rillig
78092c458c This file needs bsd.prefs.mk, since the variable WRKDIR is used in a
dependency line, which gets resolved during load time.
2006-05-16 21:25:38 +00:00
tv
db1ad83be6 Add scsl-jdk15 and scsl-jre15, SCSL licensed versions of sun-jdk15 and
sun-jre15, but running natively on NetBSD (so far).
2006-05-15 19:44:06 +00:00
wiz
d36ad06f95 Describe xscreensaver-webcollage option. 2006-05-14 18:56:43 +00:00
seb
ad25735eb4 Re-add ${PREFIX} to the list of directories print-PLIST target
should ignore or it is broken for packages that installing files right
under ${PREFIX}.  Example in lang/sun-jre15:
$ make print-PLIST
...
@dirrm java/sun-1.5
ls: /usr/pkg//usr/pkg/.: No such file or directory
@dirrm /usr/pkg/.
$

It looks to me that was removed by mistake in revision 1.5
of this file.
2006-05-14 14:27:41 +00:00
minskim
fa5157ed20 Remove references to teTeX1. 2006-05-13 03:44:23 +00:00
adrianp
324503bec9 Add a description for svn 2006-05-12 23:20:48 +00:00
jlam
bc093b5ba2 Fix a problem that occurs if compiler.mk is included in a package's
Makefile, which means it occurs before bsd.tools.mk is included and
thus misses the definition of TOOLS_DIR.  We now create a new subdirectory
of ${WRKDIR} to house the wrappers instead of re-using ${TOOLS_DIR}.
Problem noted by Roland Illig on tech-pkg:

	http://mail-index.netbsd.org/tech-pkg/2006/05/12/0011.html
2006-05-12 21:37:08 +00:00
jlam
48b11c8c11 Make build failures due to the previous commit less mysterious by using
a wrapper script that emits a hint of what went wrong.
2006-05-11 22:13:19 +00:00
rillig
dc1846b76d Don't let this program get confused just because there is no white-space
between msgstr and the following string. The bug showed off at
icewm-1.2.25, file po/tr.po, line 774. While at it, removed an
unnecessary variable.
2006-05-10 22:03:07 +00:00
rillig
8a223461b1 Fixed some pkglint warnings in the do-configure, do-build, do-test and
do-install targets. This fixes an endless loop occuring when running "make"
in regress/make-quoting.
2006-05-10 17:53:34 +00:00
rillig
37a9f202fd Made the "check-files" target work even when PREFIX is a symlink by
searching in "${PREFIX}/." instead of ${PREFIX} alone. To get the same
output as before, each "/./" is replaced with "/" in the output.
2006-05-10 16:09:08 +00:00
minskim
a1e71190d2 Allow to use sun-jdk15 on Darwin-8, and sun-jdk14 on Darwin-[678].
Also make sun-jdk15 the default java on Darwin-8.  This addresses PR pkg/32013.
2006-05-10 07:25:03 +00:00
jlam
74ffb73d57 Fix missing quotes that were causing the group and user existence checks
to break.
2006-05-10 05:41:40 +00:00
minskim
c43654731a Apply PRINT_PLIST_AWK and _PLIST_PLIST_AWK_SUBST in the same order
for both files and directories.
2006-05-09 21:37:33 +00:00
tron
846cfc32cc Make the "apache2" package the default. Apache 1.3.x is very outdated. 2006-05-09 10:05:04 +00:00
joerg
5f53c5b6ea CHECK_FILES is now active by default for PKG_DEVELOPER.
"Just commit it whenever you want" -- jlam
2006-05-08 21:29:07 +00:00
tv
cc385037b1 Force unrequested languages to be unavailable by setting them to ${FALSE}.
This way, missing language dependencies will be caught at build time.

(Tested without problems on several C++ packages by unsetting LANGUAGES in
them.  I don't have a machine fast enough to bulk build, but I shall be
watching the next round on pkgsrc-bulk to fix what I may not know about
right now.)
2006-05-06 15:20:05 +00:00
reed
a36ea4e941 If USE_ABI_DEPENDS=no, do not add the BUILDLINK_ABI_DEPENDS.$pkg
to BUILD_DEPENDS. (I posted about this to pkgsrc-users on April 14.)
2006-05-06 03:28:44 +00:00
jlam
1c8d9b58f1 Use brackets "[]" to quote characters instead of backslash "\". This
is more bulletproof across different versions of awk.  From PR pkg/33410
by Aleksey Cheusov.
2006-05-02 14:32:35 +00:00
jlam
2ab9b7d728 Use the meta-data directory as the location for all temporary files
used by the various scriptlets.  Also, consistently use the idiom of
creating a temporary directory with mode 700 and creating temporary
files underneath that directory to avoid race conditions.
2006-05-01 14:56:23 +00:00
cube
ce08d9057a Add 'oracle', to be used by upcoming RT update. 2006-05-01 09:07:15 +00:00
gdt
8a1c18c795 If DJB_RESTRICTED=YES, set LICENSE=djb-nonlicense. 2006-04-29 14:25:37 +00:00
jlam
ebe8e867eb Ensure that @VAR@ placeholders in usergroupfuncs are properly substituted
for by running it through a separate FILES_SUBST_SED filter.  This fixes
the case where the user wasn't being created if USERGROUP_PHASE was
defined.
2006-04-29 04:36:13 +00:00
jlam
1685213908 Always remove the intermediate files, even if the +USERGROUP script
determines the users and/or groups don't exist.  This makes "make clean"
work properly for non-root users.
2006-04-29 03:54:10 +00:00
jlam
ffdf92793e Remove the test file in all exit conditions. 2006-04-29 03:49:12 +00:00
jlam
0022419f9d Allow for just-in-time su when creating users and groups if
USERGROUP_PHASE is defined.
2006-04-29 03:09:40 +00:00
jlam
24ad3a7f29 Use a better default user comment if none is specified -- if the username
matches ${PKGBASE}, then use "${PKGBASE} user", otherwise we use
"${PKGBASE} $user user".
2006-04-27 22:44:09 +00:00
jlam
b01f35bb33 Allow a package to specify the ownership and permission on
${PKG_SYSCONFDIR} if PKG_SYSCONFSUBDIR is defined and non-empty.  A
package may now set PKG_SYSCONFDIR_PERMS to an "owner group mode"
triplet, which defaults to "${ROOT_USER} ${ROOT_GROUP} 755".
2006-04-26 05:58:44 +00:00
jlam
70c1c5f45f Rename the test directory to a more suggestive name. 2006-04-25 22:35:46 +00:00
jlam
98afa666a4 Modify the DIRS line format to match the FILES one, where the mode
precedes the user and group.
2006-04-25 22:32:44 +00:00
jlam
057ec88ef7 Use colons as separators instead of slashes on the off-chance that "/"
is used in either the user or group name due to some bizarro set of
circumstances.
2006-04-25 20:12:35 +00:00
jlam
ede4976eb9 First try at fixing a deficiency in the package +INSTALL scripts,
where they don't verify that any pre-existing config files and
directories have the correct permissions.  For example, if you are
upgrading a package to a newer version and the config files and
directories used by the package need to have different permissions
than in previous versions of the package, then the new package may
fail to work because it can't access pre-existing files and directories.

This commit improves on this by doing the following:

(1) Teach the +FILES and +DIRS scriptlets two new actions "PERMS" and
    "CHECK-PERMS".  "PERMS" fixes permissions on existing files and
    directories.  "CHECK-PERMS" will verify those same bits and warn
    the user when they are wrong.  The "CHECK-PERMS" actions for the
    two scriptlets are run immediately after the "ADD" actions.

(2) Add a new variable PKG_CONFIG_PERMS that controls whether the
    "PERMS" action will automatically fix permissions.  PKG_CONFIG_PERMS
    is only consulted if PKG_CONFIG is "yes".  PKG_CONFIG_PERMS can
    be set in the shell environment when running pkg_add, e.g.:

        export PKG_CONFIG=yes
        export PKG_CONFIG_PERMS=yes
        pkg_add /path/to/binary/package.tgz

    The default value of PKG_CONFIG_PERMS embedded into the +INSTALL
    script may also be set in /etc/mk.conf.  This value defaults to
    "no", so that by default, the +INSTALL script will not modify or
    destroy any existing configuration files or directories.

The +INSTALL script will now always warn you if there are files or
directories whose permissions differ from what the package is expecting
to use, and if PKG_CONFIG_PERMS is set to "yes", then it will go ahead
and fix those permissions for you automatically.
2006-04-25 19:54:39 +00:00
jlam
31e0ac81c5 Fix typos in comments, noted by Yoshito Komatsu in private email. 2006-04-24 23:44:18 +00:00
dillo
5a24717f5c Rename recently added BUILD_INFO variable DATE to BUILD_DATE, and
the make variable holding its value to _BUILD_DATE.

Discussed on tech-pkg.
2006-04-24 20:19:03 +00:00
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