Date: Wednesday, April 17, 2013 @ 01:51:26
  Author: eric
Revision: 183036

Fix example script (close FS#34570), Add texinfo build fix, Add prepare function

Added:
  msmtp/trunk/msmtp-texinfo.patch
Modified:
  msmtp/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   16 +++-
 msmtp-texinfo.patch |  168 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 180 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-04-16 23:28:46 UTC (rev 183035)
+++ PKGBUILD    2013-04-16 23:51:26 UTC (rev 183036)
@@ -9,11 +9,19 @@
 license=('GPL3')
 url="http://msmtp.sourceforge.net";
 makedepends=('texlive-core' 'gsasl' 'libgnome-keyring')
-source=(http://download.sourceforge.net/sourceforge/msmtp/${pkgbase}-${pkgver}.tar.bz2)
-sha1sums=('fd469bae0c3394b30b771780e62bbd41c4d5d175')
+source=(http://download.sourceforge.net/sourceforge/msmtp/${pkgbase}-${pkgver}.tar.bz2
+        msmtp-texinfo.patch)
+sha1sums=('fd469bae0c3394b30b771780e62bbd41c4d5d175'
+          'd2ef0138ecc5eb55ae9e044f542aa52d64c31473')
 
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -p1 -i "$srcdir/msmtp-texinfo.patch"
+  sed -i 's|/usr/bin/python|/usr/bin/python2|' 
scripts/msmtp-gnome-tool/msmtp-gnome-tool.py
+}
+
 build() {
-  cd "${srcdir}/${pkgbase}-${pkgver}"
+  cd ${pkgbase}-${pkgver}
   ./configure --prefix=/usr --sysconfdir=/etc --with-ssl=gnutls
   make
   make -C doc html pdf
@@ -24,7 +32,7 @@
   depends=('gsasl' 'libgnome-keyring')
   install=msmtp.install
 
-  cd "${srcdir}/${pkgbase}-${pkgver}"
+  cd ${pkgbase}-${pkgver}
   make DESTDIR="${pkgdir}" install 
   make DESTDIR="${pkgdir}" -C doc install-html install-pdf
 

Added: msmtp-texinfo.patch
===================================================================
--- msmtp-texinfo.patch                         (rev 0)
+++ msmtp-texinfo.patch 2013-04-16 23:51:26 UTC (rev 183036)
@@ -0,0 +1,168 @@
+--- msmtp-1.4.30/doc/msmtp.texi.orig   2013-04-16 19:31:23.047719598 -0400
++++ msmtp-1.4.30/doc/msmtp.texi        2013-04-16 19:35:22.611522458 -0400
+@@ -495,7 +495,7 @@
+ and about the TLS certificate (if TLS is active).
+ @xref{Server information mode}.
+ @anchor{--rmqs}
+-@itemx --rmqs=(@var{host}|@var{@@domain}|@var{#queue})
++@item --rmqs=(@var{host}|@var{@@domain}|@var{#queue})
+ @opindex --rmqs
+ Send a Remote Message Queue Starting request for the given host, domain, or
+ queue to the SMTP server and exit.
+@@ -519,82 +519,82 @@
+ Use the given account instead of the account named @samp{default}. This option
+ cannot be used together with the @samp{--host} option.
+ @xref{Choosing an account}.
+-@itemx --host=@var{hostname}
++@item --host=@var{hostname}
+ @opindex --host
+ Use this SMTP server with settings from the command line; do not use any
+ configuration file data. This option cannot be used together with the
+ @samp{--account} option. It disables loading of configuration files.
+ @xref{Choosing an account}.
+-@itemx --port=@var{number}
++@item --port=@var{number}
+ @opindex --port
+ Set the port number to connect to. @xref{port}.
+-@itemx --timeout=(off|@var{seconds})
++@item --timeout=(off|@var{seconds})
+ @opindex --timeout
+ Set a network timeout. @xref{timeout}. For compatibility with older versions,
+ @samp{--connect-timeout} is accepted as an alias for this option.
+-@itemx --protocol=(smtp|lmtp)
++@item --protocol=(smtp|lmtp)
+ @opindex --protocol
+ Set the protocol. @xref{protocol}.
+-@itemx --domain=[@var{argument}]
++@item --domain=[@var{argument}]
+ @opindex --domain
+ Set the argument of the SMTP EHLO (or LMTP LHLO) command. @xref{domain}.
+ @anchor{--auth}
+-@itemx --auth[=(on|off|@var{method})]
++@item --auth[=(on|off|@var{method})]
+ @opindex --auth
+ Enable or disable authentication and optionally choose the method. 
@xref{auth}.
+ @anchor{--user}
+-@itemx --user=[@var{username}]
++@item --user=[@var{username}]
+ @opindex --user
+ Set or unset the user name for authentication. @xref{user}.
+ @anchor{--passwordeval}
+-@itemx --passwordeval=[@var{eval}]
++@item --passwordeval=[@var{eval}]
+ @opindex --passwordeval
+ Evaluate password for authentication. @xref{passwordeval}.
+-@itemx --tls[=(on|off)]
++@item --tls[=(on|off)]
+ @opindex --tls
+ Enable or disable TLS/SSL. @xref{tls}.
+ @anchor{--tls-starttls}
+-@itemx --tls-starttls[=(on|off)]
++@item --tls-starttls[=(on|off)]
+ @opindex --tls-starttls
+ Enable or disable STARTTLS for TLS encryption. @xref{tls_starttls}.
+ @anchor{--tls-trust-file}
+-@itemx --tls-trust-file=[@var{file}]
++@item --tls-trust-file=[@var{file}]
+ @opindex --tls-trust-file
+ Set or unset a trust file for TLS encryption. @xref{tls_trust_file}.
+ @anchor{--tls-crl-file}
+-@itemx --tls-crl-file=[@var{file}]
++@item --tls-crl-file=[@var{file}]
+ @opindex --tls-crl-file
+ Set or unset a certificate revocation list (CRL) file for TLS. 
+ @xref{tls_crl_file}.
+ @anchor{--tls-fingerprint}
+-@itemx --tls-fingerprint=[@var{fingerprint}]
++@item --tls-fingerprint=[@var{fingerprint}]
+ @opindex --tls-fingerprint
+ Set ot unset the fingerprint of a trusted TLS certificate.
+ @xref{tls_fingerprint}.
+ @anchor{--tls-key-file}
+-@itemx --tls-key-file=[@var{file}]
++@item --tls-key-file=[@var{file}]
+ @opindex --tls-key-file
+ Set or unset a key file for TLS encryption. @xref{tls_key_file}.
+ @anchor{--tls-cert-file}
+-@itemx --tls-cert-file=[@var{file}]
++@item --tls-cert-file=[@var{file}]
+ @opindex --tls-cert-file
+ Set or unset a cert file for TLS encryption. @xref{tls_cert_file}.
+ @anchor{--tls-certcheck}
+-@itemx --tls-certcheck[=(on|off)]
++@item --tls-certcheck[=(on|off)]
+ @opindex --tls-certcheck
+ Enable or disable server certificate checks for TLS encryption.  
+ @xref{tls_certcheck}.
+ @anchor{--tls-force-sslv3}
+-@itemx --tls-force-sslv3[=(on|off)]
++@item --tls-force-sslv3[=(on|off)]
+ @opindex --tls-force-sslv3
+ Force TLS/SSL version SSLv3. @xref{tls_force_sslv3}.
+ @anchor{--tls-min-dh-prime-bits}
+-@itemx --tls-min-dh-prime-bits=[@var{bits}]
++@item --tls-min-dh-prime-bits=[@var{bits}]
+ @opindex --tls-min-dh-prime-bits
+ Set or unset minimum bit size of the Diffie-Hellman (DH) prime.
+ @xref{tls_min_dh_prime_bits}.
+ @anchor{--tls-priorities}
+-@itemx --tls-priorities=[@var{priorities}]
++@item --tls-priorities=[@var{priorities}]
+ @opindex --tls-priorities
+ Set or unset TLS priorities. @xref{tls_priorities}.
+ @end table
+@@ -602,7 +602,7 @@
+ @subsection Options specific to sendmail mode
+ @table @samp
+ @anchor{--auto-from}
+-@itemx --auto-from[=(on|off)]
++@item --auto-from[=(on|off)]
+ @opindex --auto-from
+ Enable or disable automatic envelope-from addresses. The default is off. 
+ @xref{auto_from}.
+@@ -618,7 +618,7 @@
+ (set with the @samp{from} command). If no such account is found, "default" is 
+ used. @xref{Choosing an account}.
+ @anchor{--maildomain}
+-@itemx --maildomain=[@var{domain}]
++@item --maildomain=[@var{domain}]
+ @opindex --maildomain
+ Set the domain part for generated envelope-from addresses. It is only used 
when
+ @samp{auto_from} is on. @xref{maildomain}.
+@@ -637,7 +637,7 @@
+ Note that @samp{hdrs} is accepted as an alias for @samp{headers} to be 
+ compatible with sendmail.
+ @anchor{--keepbcc}
+-@itemx --keepbcc[=(on|off)]
++@item --keepbcc[=(on|off)]
+ @opindex --keepbcc
+ Enable or disable the preservation of the Bcc header. @xref{keepbcc}.
+ @anchor{--logfile}
+@@ -647,7 +647,7 @@
+ @opindex --logfile
+ Set or unset the log file. @xref{logfile}.
+ @anchor{--syslog}
+-@itemx --syslog[=(on|off|@var{facility})]
++@item --syslog[=(on|off|@var{facility})]
+ @opindex --syslog
+ Enable or disable syslog logging. @xref{syslog}.
+ @item -t
+@@ -659,15 +659,15 @@
+ If any Resent- headers are present, then the addresses from any Resent-To,
+ Resent-Cc, and Resent-Bcc headers in the first block of Resent- headers are
+ used instead.
+-@itemx --read-envelope-from
++@item --read-envelope-from
+ @opindex --read-envelope-from
+ Read the envelope from address from the From header of the mail.
+ Currently this header must be on a single line for this option to work
+ correctly.
+-@itemx --aliases=[@var{file}]
++@item --aliases=[@var{file}]
+ @opindex --aliases
+ Set or unset an aliases file. @xref{aliases}.
+-@itemx --
++@item --
+ This marks the end of options. All following arguments will be treated as
+ recipient addresses, even if they start with a '-'.
+ @end table

Reply via email to