]> git.pld-linux.org Git - packages/mbank-cli.git/commitdiff
- rel.2 - defconf patch added: don't look for config in /usr/bin... auto/th/mbank-cli-20090816-2
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 15 Nov 2009 14:49:53 +0000 (14:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mbank-cli-defconf.patch -> 1.1
    mbank-cli.spec -> 1.5

mbank-cli-defconf.patch [new file with mode: 0644]
mbank-cli.spec

diff --git a/mbank-cli-defconf.patch b/mbank-cli-defconf.patch
new file mode 100644 (file)
index 0000000..0ddb84a
--- /dev/null
@@ -0,0 +1,45 @@
+--- ./doc/mbank-cli.1.org      2009-08-18 18:57:10.000000000 +0200
++++ ./doc/mbank-cli.1  2009-11-15 15:45:10.753638992 +0100
+@@ -321,11 +321,9 @@ $ \fB\&./mbank\-cli\fR logout
+ .RE
+ .SH "FILES"
+ .PP
+-(Due to experimental nature of
+-mbank\-cli
+-these files are expected to be in the current working directory\&.)
++These files are expected to be in the users home directory\&.
+ .PP
+-\fImbank\-cli\&.conf\fR
++\fI\&.mbank\-cli\&.conf\fR
+ .RS 4
+ The default configuration file\&.
+ .sp
+@@ -337,7 +335,7 @@ To create the configuration file, use th
+ .sp
+ .RS 4
+ .nf
+-$ \fBcat\fR <<EOF | \fBgpg\fR \-\-armor \-\-encrypt \-\-default\-recipient\-self > \fI\fImbank\-cli\&.conf\fR\fR
++$ \fBcat\fR <<EOF | \fBgpg\fR \-\-armor \-\-encrypt \-\-default\-recipient\-self > \fI\fI\&.mbank\-cli\&.conf\fR\fR
+ \fBLogin \fR\fB\fI123456\fR\fR\fB
+ Password "\fR\fB\fIyour\-password\fR\fR\fB"
+ EOF\fR
+--- ./mbank-cli.org    2009-08-18 18:57:08.000000000 +0200
++++ ./mbank-cli        2009-11-15 15:42:18.496989544 +0100
+@@ -68,7 +68,7 @@ chdir dirname($0) or die "Can't change w
+ my $mbank = 'https://www.mbank.com.pl';
+ my $cookie_jar_file = './cookie-jar.txt';
+-my $config_file = './mbank-cli.conf';
++my $config_file = "$ENV{ HOME }/.mbank-cli.conf";
+ $::locale_codeset = langinfo(CODESET);
+ %::fallback_map = (
+@@ -227,7 +227,7 @@ sub preread_config()
+     eval { $digest_module = Digest->new('SHA-1'); } if $@;
+     $digest_module = Digest->new('MD5') if $@;
+   }
+-  user_error "Can't open the config file: $!" unless open CONFIG, '<', $config_file;
++  user_error "Can't open the config file ($config_file): $!" unless open CONFIG, '<', $config_file;
+   my $prev_digest = '';
+   $main::digest_module->new();
+   my $header = '';
index ec795edc3ad9319d7269ac5cef3a771e3c90c393..1b4d915a69009b47b74f235018091e999e12f00e 100644 (file)
@@ -3,11 +3,12 @@ Summary:      A command line interface to mBank
 Summary(pl.UTF-8):     Interfejs CLI do mBanku
 Name:          mbank-cli
 Version:       20090816
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Applications/Console
 Source0:       http://mbank-cli.googlecode.com/files/%{name}-%{version}.tar.gz
 # Source0-md5: 0921a864673e9178ecaaeb242965d76d
+Patch0:                %{name}-defconf.patch
 URL:           http://code.google.com/p/mbank-cli/
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,6 +23,7 @@ internetowej mBank.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.111606 seconds and 4 git commands to generate.