Automatic conversion of the NetBSD pkgsrc CVS module, use with care
Find a file
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
archivers Updated makeself to 2.1.4. 2006-04-23 10:04:41 +00:00
audio Update daapd to 0.2.4b 2006-04-23 18:25:27 +00:00
benchmarks Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
biology Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
bootstrap corrected a few typos 2006-04-18 18:11:21 +00:00
cad Use an options group for the gui selection (gtk vs motif). Suggested 2006-04-25 00:51:11 +00:00
chat Update "xchat" and "xchat-python" packages to version 2.6.2. 2006-04-23 17:19:41 +00:00
comms Modify packages that set PKG_USERS and PKG_GROUPS to follow the new 2006-04-23 00:12:35 +00:00
converters Bump BUILDLINK_ABI_DEPENDS.png and PKGREVISION for png-1.2.9nb2 update. 2006-04-17 13:45:57 +00:00
cross Strip ${PKGLOCALEDIR} from PLISTs of packages that already obey 2006-04-17 07:07:11 +00:00
crosspkgtools Fixed pkglint warnings. 2006-04-22 11:34:07 +00:00
databases Explicitly disable all features not enabled via option. 2006-04-25 13:51:24 +00:00
devel Update to version 20060424 of devel/netbsd-iscsi. 2006-04-24 22:03:06 +00:00
distfiles
doc + kbarcode-2.0.2. 2006-04-25 17:46:14 +00:00
editors Remove the reLyX manpage entry. 2006-04-19 00:54:29 +00:00
emulators Rework Imakefile so manual pages are actually installed. 2006-04-24 22:22:55 +00:00
finance Bump BUILDLINK_ABI_DEPENDS.png and PKGREVISION for png-1.2.9nb2 update. 2006-04-17 13:45:57 +00:00
fonts Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
games Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
geography Fix pthread detection. Fix compilation on DragonFly. 2006-04-20 15:28:00 +00:00
graphics Fix build with png-1.2.9nb2. Bump PKGREVISION. 2006-04-23 18:29:39 +00:00
ham Implemented changes for this package to use the REQD_DIR and CONF_FILES 2006-04-21 02:07:53 +00:00
inputmethod Modify packages that set PKG_USERS and PKG_GROUPS to follow the new 2006-04-23 00:12:35 +00:00
lang Update lang/ocaml to 3.09.2. 2006-04-25 04:58:32 +00:00
licenses Add flash license. 2006-04-12 18:35:05 +00:00
mail Update to Thunderbird 1.5.0.2 (1.5.0.1 was skipped to stay in sync with 2006-04-23 14:14:07 +00:00
math Fix PLIST. Bump revision. 2006-04-22 16:29:47 +00:00
mbone Remove patch-aa. Moving the include of the configuration header 2006-04-22 16:32:44 +00:00
meta-pkgs Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
misc Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
mk First try at fixing a deficiency in the package +INSTALL scripts, 2006-04-25 19:54:39 +00:00
multimedia Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
net Remove as maintainer of this package. I'm no longer using it on any 2006-04-25 16:19:40 +00:00
news Modify packages that set PKG_USERS and PKG_GROUPS to follow the new 2006-04-23 00:12:35 +00:00
packages
parallel Modify packages that set PKG_USERS and PKG_GROUPS to follow the new 2006-04-23 00:12:35 +00:00
pkgtools Sync with src: HOMEPAGE is optinal, noted by wiz. 2006-04-25 13:33:18 +00:00
print ghostscript also needs C++ to build 2006-04-23 14:39:33 +00:00
regress Change my MAINTAINER email address to the one I've been using for 2005-12-17 05:20:21 +00:00
security Update to version 2.2.7 2006-04-25 12:45:57 +00:00
shells use GNU bison instead of the native yacc on IRIX 5 since the code has 2006-04-18 18:17:47 +00:00
sysutils Modify packages that set PKG_USERS and PKG_GROUPS to follow the new 2006-04-23 00:12:35 +00:00
templates Drop some whitespace. 2005-06-01 19:07:20 +00:00
textproc add USE_TOOLS of gs:run, pointed out by wiz. 2006-04-23 00:45:07 +00:00
time Update p5-DateTime to 0.30. 2006-04-25 14:03:58 +00:00
wm Removed the superfluous "quotes" and 'quotes' from variables that don't 2006-04-22 09:22:05 +00:00
www Update to version 3.2.10 2006-04-25 14:16:24 +00:00
x11 Undo previous as it is not needed (pointed out by wiz@) 2006-04-25 07:58:26 +00:00
Makefile Added a comment to the "regress" category. 2005-09-28 07:49:22 +00:00
pkglocate
README Refer doc/pkgsrc.txt instead of Packages.txt. 2005-05-07 22:16:38 +00:00

$NetBSD: README,v 1.18 2005/05/07 22:18:28 wiz Exp $

Please see doc/pkgsrc.txt for information.