Author: blues Date: Sun Nov 15 14:49:58 2009 GMT Module: packages Tag: HEAD ---- Log message: - rel.2 - defconf patch added: don't look for config in /usr/bin...
---- Files affected: packages/mbank-cli: mbank-cli.spec (1.4 -> 1.5) , mbank-cli-defconf.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/mbank-cli/mbank-cli.spec diff -u packages/mbank-cli/mbank-cli.spec:1.4 packages/mbank-cli/mbank-cli.spec:1.5 --- packages/mbank-cli/mbank-cli.spec:1.4 Sun Nov 15 14:52:28 2009 +++ packages/mbank-cli/mbank-cli.spec Sun Nov 15 15:49:53 2009 @@ -4,11 +4,12 @@ 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) @@ -23,6 +24,7 @@ %prep %setup -q +%patch0 -p1 %install rm -rf $RPM_BUILD_ROOT @@ -45,6 +47,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.5 2009/11/15 14:49:53 blues +- rel.2 - defconf patch added: don't look for config in /usr/bin... + Revision 1.4 2009/11/15 13:52:28 blues - 20090816 ================================================================ Index: packages/mbank-cli/mbank-cli-defconf.patch diff -u /dev/null packages/mbank-cli/mbank-cli-defconf.patch:1.1 --- /dev/null Sun Nov 15 15:49:58 2009 +++ packages/mbank-cli/mbank-cli-defconf.patch Sun Nov 15 15:49:53 2009 @@ -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 = ''; ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mbank-cli/mbank-cli.spec?r1=1.4&r2=1.5&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
