summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2006-05-09Make the "apache2" package the default. Apache 1.3.x is very outdated.tron1-2/+2
2006-05-08CHECK_FILES is now active by default for PKG_DEVELOPER.joerg1-1/+2
"Just commit it whenever you want" -- jlam
2006-05-06Force unrequested languages to be unavailable by setting them to ${FALSE}.tv1-1/+12
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-06If USE_ABI_DEPENDS=no, do not add the BUILDLINK_ABI_DEPENDS.$pkgreed2-5/+7
to BUILD_DEPENDS. (I posted about this to pkgsrc-users on April 14.)
2006-05-02Use brackets "[]" to quote characters instead of backslash "\". Thisjlam1-2/+2
is more bulletproof across different versions of awk. From PR pkg/33410 by Aleksey Cheusov.
2006-05-01Use the meta-data directory as the location for all temporary filesjlam6-90/+111
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-01Add 'oracle', to be used by upcoming RT update.cube1-0/+1
2006-04-29If DJB_RESTRICTED=YES, set LICENSE=djb-nonlicense.gdt1-2/+3
2006-04-29Ensure that @VAR@ placeholders in usergroupfuncs are properly substitutedjlam1-3/+3
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-29Always remove the intermediate files, even if the +USERGROUP scriptjlam1-6/+10
determines the users and/or groups don't exist. This makes "make clean" work properly for non-root users.
2006-04-29Remove the test file in all exit conditions.jlam3-9/+9
2006-04-29Allow for just-in-time su when creating users and groups ifjlam1-5/+13
USERGROUP_PHASE is defined.
2006-04-27Use a better default user comment if none is specified -- if the usernamejlam3-6/+18
matches ${PKGBASE}, then use "${PKGBASE} user", otherwise we use "${PKGBASE} $user user".
2006-04-26Allow a package to specify the ownership and permission onjlam2-4/+17
${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-25Rename the test directory to a more suggestive name.jlam2-4/+4
2006-04-25Modify the DIRS line format to match the FILES one, where the modejlam2-29/+42
precedes the user and group.
2006-04-25Use colons as separators instead of slashes on the off-chance that "/"jlam2-27/+27
is used in either the user or group name due to some bizarro set of circumstances.
2006-04-25First try at fixing a deficiency in the package +INSTALL scripts,jlam5-24/+263
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-24Fix typos in comments, noted by Yoshito Komatsu in private email.jlam3-6/+6
2006-04-24Rename recently added BUILD_INFO variable DATE to BUILD_DATE, anddillo1-4/+4
the make variable holding its value to _BUILD_DATE. Discussed on tech-pkg.
2006-04-24Fix {group,user}_exists functions when the numeric ID is not set. Fixjlam3-9/+27
provided in PR pkg/33346 by Yoshito Komatsu.
2006-04-24Added the shebang line.rillig1-2/+2
2006-04-23add pcb-motifdmcmahill1-0/+1
2006-04-23Add two new capabilities to the pkginstall framework:jlam6-70/+470
(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-22Adjusted the code to the pkglint warning that NO_PACKAGE should not berillig1-2/+2
quoted.
2006-04-19remove teTeX1 from the TEX_ACCEPTED list, since it was removedtonio1-10/+5
2006-04-19Update PREFER_PKGSRC for the two package renames (renderproto and randrproto).reed1-2/+2
2006-04-18Rename the CHANGES file to CHANGES-2006. From now on, the changes forjlam1-2/+3
each year will accumulate in CHANGES-YYYY.
2006-04-17Only do the locale transformation if USE_PKGLOCALEDIR is defined. Thisjlam2-2/+9
avoids any problems with current packages that install locale files but don't honor PKGLOCALEDIR yet.
2006-04-17Modify the plist module to automatically transform "^share/locale" injlam3-3/+62
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-16Now that all info file entries have been pushed from INFO_FILES intojlam2-31/+5
the PLISTs, drop support for listing info files in INFO_FILES. The INFO_FILES variable is now strictly defined/undefined.
2006-04-15There are two things that we need to keep track of:jlam1-8/+13
(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-15Back to pkg-vulnerabilities format 1.0.0.salo1-4/+2
2006-04-15Reorder the loop so that we can never get into an infinite loop. Wejlam1-10/+6
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-15Modify the loop so that the statements and comment lines can bejlam1-13/+27
interspersed.
2006-04-15Apply jlam's awk fix done in plist-info.awk 1.12.minskim1-3/+5
- Avoid () as a regular expression as the interpretation seems to be implementation-defined by various awks.
2006-04-15Replace a re-used regular expression with a constant.jlam1-8/+10
2006-04-14Drop all msgstr[N] translations besides msgstr[0] and msgstr[1] becausejlam1-1/+14
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-14Whitespace changes for proper indentation.jlam1-99/+103
2006-04-14Remove debugging code so that we actually invoke msgfmt.jlam1-4/+1
2006-04-14Avoid using the awk input loop and use our own while loop in a BEGINjlam1-64/+70
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-14Make the display of show-options more readable when there are lots ofjlam1-4/+8
options, e.g. x11/xorg-server, by wordwrapping the output.
2006-04-14If we can't find the package with pkg_info when computing BUILDLINK_PREFIX,jlam1-3/+5
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-14Support a --debug flag that dumps the output of the awk script to ajlam1-2/+16
*.debug file.
2006-04-14Now that I understand why we strip "#~" from the head of lines, stripjlam1-3/+10
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-14Use the correct cat command.jlam2-4/+5
2006-04-14Document the puzzling line that strips "#~" from the start of lines.jlam1-2/+6
Explanation provided by jmmv in private email.
2006-04-14Add TNF copyright to file as suggested by jmmv in private email.jlam1-1/+36
2006-04-14Avoid () as a regular expression as the interpretation seems to bejlam1-3/+5
implementation-defined by various awks.
2006-04-13Update path from cyrus-sasl2 to cyrus-sasl.wiz2-5/+5