Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 2010 22:08:58 +0000 (UTC)
From:      Doug Barton <dougb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r211042 - user/dougb/portmaster/files
Message-ID:  <201008072208.o77M8wSE069741@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougb
Date: Sat Aug  7 22:08:58 2010
New Revision: 211042
URL: http://svn.freebsd.org/changeset/base/211042

Log:
  Document the PM_LOG and PM_IGNORE_FAILED_BACKUP_PACKAGE options

Modified:
  user/dougb/portmaster/files/portmaster.8
  user/dougb/portmaster/files/portmaster.rc.sample.in

Modified: user/dougb/portmaster/files/portmaster.8
==============================================================================
--- user/dougb/portmaster/files/portmaster.8	Sat Aug  7 21:49:05 2010	(r211041)
+++ user/dougb/portmaster/files/portmaster.8	Sat Aug  7 22:08:58 2010	(r211042)
@@ -592,6 +592,34 @@ file so that the dependencies match.
 If you wish to customize your build environment on a per-port
 basis you might want to take a look at
 .Pa ports/ports-mgmt/portconf
+.Pp
+To log actions taken by
+.Nm
+along with a date/time stamp you can define
+.Ev PM_LOG
+in your rc file with the full path of the file you would
+like to log to.
+If running
+.Nm
+with
+.Xr sudo 8
+(see below) then you should make sure that the file is
+writable by the unprivileged user.
+.Pp
+By default
+.Nm
+creates backup packages of installed ports before it runs
+.Xr pkg_delete 1
+during an update.
+If that package creation fails it is treated as a serious
+error and the user is prompted.
+However for scripted use of
+.Nm
+this can be a problem.
+In situations where the user is ABSOLUTELY SURE
+that lack of a backup package should not be a fatal error
+.Ev PM_IGNORE_FAILED_BACKUP_PACKAGE
+can be defined to any value in the rc file.
 .Sh FILES
 .Bl -tag -width "1234" -compact
 .It Pa /usr/local/etc/portmaster.rc

Modified: user/dougb/portmaster/files/portmaster.rc.sample.in
==============================================================================
--- user/dougb/portmaster/files/portmaster.rc.sample.in	Sat Aug  7 21:49:05 2010	(r211041)
+++ user/dougb/portmaster/files/portmaster.rc.sample.in	Sat Aug  7 22:08:58 2010	(r211042)
@@ -98,3 +98,12 @@
 # Use the INDEX file instead of /usr/ports (--index-only)
 # PM_INDEX=pm_index
 # PM_INDEX_ONLY=pm_index_only
+#
+#
+# The following options are available for the rc file only:
+#
+# Log actions taken by portmaster with a date/time stamp
+# PM_LOG=/full/path/to/file
+#
+# Do not prompt the user for failed backup package creation
+# PM_IGNORE_FAILED_BACKUP_PACKAGE=pm_ignore_failed_backup_package



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008072208.o77M8wSE069741>