[Lunar-commits] r26815 - moonbase/trunk/mail/amavisd-new

Moritz Heiber moe at lunar-linux.org
Sun Nov 18 15:58:35 CET 2007


Author: moe
Date: 2007-11-18 15:58:34 +0100 (Sun, 18 Nov 2007)
New Revision: 26815

Modified:
   moonbase/trunk/mail/amavisd-new/BUILD
Log:
I wonder how this ever worked before ..



Modified: moonbase/trunk/mail/amavisd-new/BUILD
===================================================================
--- moonbase/trunk/mail/amavisd-new/BUILD	2007-11-18 14:41:40 UTC (rev 26814)
+++ moonbase/trunk/mail/amavisd-new/BUILD	2007-11-18 14:58:34 UTC (rev 26815)
@@ -1,18 +1,17 @@
 (
 
+  add_priv_user amavis:amavis -d /var/amavis -s /bin/true &&
+
   prepare_install &&
 
-  cp amavisd /usr/sbin/amavisd  &&
-  chown 755 /usr/sbin/amavisd   &&
+  install -m0755 amavisd /usr/sbin/ &&
 
-  add_priv_user amavis:amavis -d /var/amavis -s /bin/true
+  if ! [ -d /var/amavis ] ; then
+      mkdir -m750 -p /var/amavis
+      chown amavis:amavis /var/amavis
+  fi &&
 
-  if [ ! -e /var/amavis ]; then
-      mkdir /var/amavis  &&
-      chown amavis:amavis /var/amavis  &&
-      chmod 750 /var/amavis
-  fi
-  if [ ! -e /etc/amavisd.conf ] ; then
+  if ! [ -e /etc/amavisd.conf ] ; then
     install -m0644 amavisd.conf /etc/
   fi
    



More information about the Lunar-commits mailing list