Explorar o código

add missing procmailrc

Ralf S. Engelschall %!s(int64=24) %!d(string=hai) anos
pai
achega
294f9a0463
Modificáronse 2 ficheiros con 44 adicións e 1 borrados
  1. 6 1
      procmail/procmail.spec
  2. 38 0
      procmail/procmailrc

+ 6 - 1
procmail/procmail.spec

@@ -32,10 +32,11 @@ Packager:     rse@openpkg.org
 Distribution: OpenPKG
 License:      GPL
 Version:      3.22
-Release:      2
+Release:      3
 
 #   list of sources
 Source0:      ftp://ftp.procmail.org/pub/procmail/procmail-%{version}.tar.gz
+Source1:      procmailrc
 
 #   build information
 Prefix:       %{l_prefix}
@@ -88,6 +89,7 @@ AutoReqProv:  no
 
     %{l_shtool} mkdir -f -p -m 755 \
         $RPM_BUILD_ROOT%{l_prefix}/bin \
+        $RPM_BUILD_ROOT%{l_prefix}/etc/procmail \
         $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
         $RPM_BUILD_ROOT%{l_prefix}/man/man5
     %{l_shtool} install -c -s \
@@ -97,6 +99,9 @@ AutoReqProv:  no
         new/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
     %{l_shtool} install -c -m 644 \
         new/*.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/
+    %{l_shtool} install -c -m 644 \
+        -e 's;@l_prefix@;%{l_prefix};g' \
+        %{SOURCE procmailrc} $RPM_BUILD_ROOT%{l_prefix}/etc/procmail/
 
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
         %{l_files_std} \

+ 38 - 0
procmail/procmailrc

@@ -0,0 +1,38 @@
+##
+##  procmailrc -- Global Procmail Configuration
+##
+
+#   make sure we can find programs
+PATH=@l_prefix@/bin:@l_prefix@/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+
+#   the Sendmail program
+SENDMAIL=@l_prefix@/sbin/sendmail
+
+#   location of the folder directory
+MAILDIR=$HOME/.mail
+
+#   location of the incoming mail folders
+ORGMAIL=/var/mail/$LOGNAME
+DEFAULT=$HOME/.mail/inbox
+
+#   logging configuration
+LOGABSTRACT=no
+
+#   lockfile configuration
+LOCKFILE=$HOME/.mail.lock
+LOCKEXT=.lock
+
+#   filesystem permissions
+UMASK=077
+
+#   no comsat/biff notification
+COMSAT=no
+
+#   the "ourname+ident@" support of Sendmail
+IDENT=$1
+
+#   make sure the MAILDIR exists before delivering
+:0 Wic
+* ? test ! -d $MAILDIR
+| umask 077 && mkdir $MAILDIR && chown $LOGNAME $MAILDIR
+