svn commit: r463639 - head/japanese/mailman/files

TAKATSU Tomonari tota at FreeBSD.org
Mon Mar 5 10:22:21 UTC 2018


Author: tota
Date: Mon Mar  5 10:22:20 2018
New Revision: 463639
URL: https://svnweb.freebsd.org/changeset/ports/463639

Log:
  - Remove unnecessary line from files/pkg-deinstall.in
  - Fix files/pkg-install.in
  
  Pointed out by:	riggs@
  MFH:		2018Q1

Modified:
  head/japanese/mailman/files/pkg-deinstall.in   (contents, props changed)
  head/japanese/mailman/files/pkg-install.in   (contents, props changed)

Modified: head/japanese/mailman/files/pkg-deinstall.in
==============================================================================
--- head/japanese/mailman/files/pkg-deinstall.in	Mon Mar  5 09:58:55 2018	(r463638)
+++ head/japanese/mailman/files/pkg-deinstall.in	Mon Mar  5 10:22:20 2018	(r463639)
@@ -40,7 +40,6 @@ POST-DEINSTALL)
   echo "---> Starting post-deinstall script"
 
   # try to kill all empty directories - necessary on pkg_add-based systems
-  find "%%MAILMANDIR%%" -depth -type d -exec rmdir '{}' + >/dev/null 2>&1 || :
   if [ -d "%%MAILMANDIR%%" ]; then
     echo '---> %%MAILMANDIR%% is not empty - this installation may have active lists!'
     ls -lRB "%%MAILMANDIR%%" | head -n200 || :

Modified: head/japanese/mailman/files/pkg-install.in
==============================================================================
--- head/japanese/mailman/files/pkg-install.in	Mon Mar  5 09:58:55 2018	(r463638)
+++ head/japanese/mailman/files/pkg-install.in	Mon Mar  5 10:22:20 2018	(r463639)
@@ -16,6 +16,14 @@ POST-INSTALL)
 
   echo "---> Running update"
 
+  for DIR in logs archives lists locks data spam qfiles \
+             archives/private archives/public
+  do
+      if [ ! -e "%%MAILMANDIR%%/$DIR" ]; then
+          /bin/mkdir -p "%%MAILMANDIR%%/$DIR"
+      fi
+  done
+
   LC_ALL=C "%%MAILMANDIR%%/bin/update" || exit 1
 
   echo "---> Checking crontab(5) file for user \"%%USER%%\""


More information about the svn-ports-all mailing list