Re: [Fink-devel] curl download flags

2017-05-30 Thread Hanspeter Niederstrasser

On 5/30/17 12:11 PM, Scott Hannahs wrote:

Dear Fink Devs,

I have another problem with this which I thought was going to be simple…  Never 
is.

So I have this simple package:
Package: lrzsz
Version: 0.12.20
Revision: 2
License: GPL2
Homepage: https://ohse.de/uwe/software/lrzsz.html
Maintainer: Scott Hannahs 

Source: --no-check-certificate https://ohse.de/uwe/releases/%n-%v.tar.gz
Source-MD5: b5ce6a74abc9b9eb2af94dffdfd372a4

ConfigureParams: --mandir=%p/share/man

InstallScript:  make install DESTDIR=%d

DocFiles: ABOUT-NLS AUTHORS COMPATABILITY COPYING ChangeLog NEWS README THANKS 
TODO
Description: XMODEM YMODEM ZMODEM File Transfer Protocols

DescDetail: <<
lrzsz is a unix communication package providing the XMODEM, YMODEM ZMODEM file
transfer protocols.
lrzsz is a heavily rehacked version of the last public domain release of Omen
Technologies rzsz package, and is now free software and released under the GNU
General Public Licence.

Features of lrzsz
very portable, automagically configured with GNU autoconf.
crash recovery.
up to 8KB block sizes (ZMODEM8K).
internationalized (using GNU gettext).
far more secure than the original sources.
high performance. say `make vcheck-z' and have a look at the BPS rate.
good blocksize calculation (tries to compute an optimal blocksize based
on the number of errors occured).
It's free software.
<<

However it installs the first time, but fails if you try to re-install.  For 
some reason the install command tries to remove the old symbolic links in  the 
actual /sw/bin folder instead of the temporary build folder.  This of course 
fails when not run as root.  All the build files are in root-lrzsz-0.12.20-1/ 
but it fails on
   /usr/bin/install -c lsz /sw/src/fink.build/root-lrzsz-0.12.20-1/sw/bin/lsz
rm -f /sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsb | sed -e 
's,x,x,'`
ln /sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsz |sed -e 's,x,x,'` \
/sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsb |sed 
-e 's,x,x,'`
rm -f /sw/bin/`echo lsx | sed -e 's,x,x,'`
rm: /sw/bin/lsx: Permission denied
make[1]: *** [install-exec-local] Error 1


for some files.  Not sure actually which script file is generating the error 
and how do I force it to the the root-xxx dir for this build rather than the 
actual /sw/bin??


Look in src/Makefile.in at the "install-exec-local" target. That's where 
the "rm -f " commands are coming from. Some have $(DESTDIR) and 
those should be OK. Others do not, and those fail because they try to rm 
straight from /sw.  You can either fix the 'rm -f' commands to all have 
a leading $(DESTDIR), or frankly, you can probably delete or comment 
them out since $(DESTDIR) is guaranteed to be empty for Fink since it is 
created from scratch every build and so rm is unneeded.


Hanspeter

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Re: [Fink-devel] curl download flags

2017-05-30 Thread Scott Hannahs
Dear Fink Devs,

I have another problem with this which I thought was going to be simple…  Never 
is.

So I have this simple package:
Package: lrzsz
Version: 0.12.20
Revision: 2
License: GPL2
Homepage: https://ohse.de/uwe/software/lrzsz.html
Maintainer: Scott Hannahs 

Source: --no-check-certificate https://ohse.de/uwe/releases/%n-%v.tar.gz
Source-MD5: b5ce6a74abc9b9eb2af94dffdfd372a4

ConfigureParams: --mandir=%p/share/man

InstallScript:  make install DESTDIR=%d

DocFiles: ABOUT-NLS AUTHORS COMPATABILITY COPYING ChangeLog NEWS README THANKS 
TODO
Description: XMODEM YMODEM ZMODEM File Transfer Protocols

DescDetail: <<
lrzsz is a unix communication package providing the XMODEM, YMODEM ZMODEM file
transfer protocols.
lrzsz is a heavily rehacked version of the last public domain release of Omen
Technologies rzsz package, and is now free software and released under the GNU
General Public Licence.

Features of lrzsz
very portable, automagically configured with GNU autoconf.
crash recovery.
up to 8KB block sizes (ZMODEM8K).
internationalized (using GNU gettext).
far more secure than the original sources.
high performance. say `make vcheck-z' and have a look at the BPS rate.
good blocksize calculation (tries to compute an optimal blocksize based
on the number of errors occured).
It's free software.
<<

However it installs the first time, but fails if you try to re-install.  For 
some reason the install command tries to remove the old symbolic links in  the 
actual /sw/bin folder instead of the temporary build folder.  This of course 
fails when not run as root.  All the build files are in root-lrzsz-0.12.20-1/ 
but it fails on 
  /usr/bin/install -c lsz /sw/src/fink.build/root-lrzsz-0.12.20-1/sw/bin/lsz
rm -f /sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsb | sed -e 
's,x,x,'`
ln /sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsz |sed -e 's,x,x,'` \
/sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsb |sed 
-e 's,x,x,'` 
rm -f /sw/bin/`echo lsx | sed -e 's,x,x,'`
rm: /sw/bin/lsx: Permission denied
make[1]: *** [install-exec-local] Error 1


for some files.  Not sure actually which script file is generating the error 
and how do I force it to the the root-xxx dir for this build rather than the 
actual /sw/bin??

-Scott







> On Apr 5, 2017, at 6:07 PM, Scott Hannahs  
> wrote:
> 
> Alexander,
> 
> Thanks.  Even the regular http:// URL fails with curl and still defaults to 
> an SSL certificate verification  for some reason.  It seems to find the old 
> source under Mac OS 10.11 but fails under Mac OS 10.12. I will temporarily 
> host it for awhile.  The source has not been touched for many many years but 
> still compiles and functions under 10.12 Xcode 8.3.
> 
> I suppose I should have looked in old packages for this.  It is a very simple 
> package and mine is not much different from the 10.4 version.
> 
> -Scott
> 
>> On Apr 5, 2017, at 5:22 PM, Alexander Hansen > > wrote:
>> 
>> 
>>> On Apr 5, 2017, at 11:31, >> > >> > wrote:
>>> 
>>> Fink Folks,
>>> 
>>> I am trying to create a package for a very old bit of software.  It seems 
>>> that the hosting original URL for download has an expired certificate.  
>>> This causes the fink download to fail when asked to download from the 
>>> original URL.
>>> 
>>> So, in pushing the envelope I tried:
>>> Source: --insecure https://ohse.de/uwe/releases/%n-%v.tar.gz 
>>> 
>>> 
>>> to put a source curl flag in the command.  However fink is careful to 
>>> escape the embedded space and it doesn’t work.
>>> curl --connect-timeout 30 -f -L -A 'fink/0.41.1' -O --insecure\ 
>>> https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz 
>>> 
>>> 
>>> Is there a flag for source curl commands for downloading?  
>> 
>> No.
>> 
>>> How should I deal with the need for an insecure download.
>>> 
>> 
>> The easiest option is to host the package source somewhere yourself.  This 
>> can be temporary until the mirror system picks it up, at which time you can 
>> specify mirror:master:/lrzsz-0.12.20.tar.gz as the Source.
>> 
>> If you don’t happen to have temporary host space, Fink has an area where we 
>> host sources that can’t be downloaded from their original URL for whatever 
>> reason.
>> 
>>> For reference the software does X/Y/ZMODEM protocol for data transmission.  
>>> Some old instruments need this for communication.
>>> 
>>> program lrzsz
>>> Web site: https://ohse.de/uwe/software/lrzsz.html 
>>> 
>>> 
>>> Any advice on how to develop and test this?
>>> 
>>> 

Re: [Fink-devel] curl download flags

2017-04-05 Thread Scott Hannahs
Alexander,

Thanks.  Even the regular http:// URL fails with curl and still defaults to an 
SSL certificate verification  for some reason.  It seems to find the old source 
under Mac OS 10.11 but fails under Mac OS 10.12. I will temporarily host it for 
awhile.  The source has not been touched for many many years but still compiles 
and functions under 10.12 Xcode 8.3.

I suppose I should have looked in old packages for this.  It is a very simple 
package and mine is not much different from the 10.4 version.

-Scott

> On Apr 5, 2017, at 5:22 PM, Alexander Hansen  
> wrote:
> 
> 
>> On Apr 5, 2017, at 11:31, > > > > wrote:
>> 
>> Fink Folks,
>> 
>> I am trying to create a package for a very old bit of software.  It seems 
>> that the hosting original URL for download has an expired certificate.  This 
>> causes the fink download to fail when asked to download from the original 
>> URL.
>> 
>> So, in pushing the envelope I tried:
>> Source: --insecure https://ohse.de/uwe/releases/%n-%v.tar.gz 
>> 
>> 
>> to put a source curl flag in the command.  However fink is careful to escape 
>> the embedded space and it doesn’t work.
>> curl --connect-timeout 30 -f -L -A 'fink/0.41.1' -O --insecure\ 
>> https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz 
>> 
>> 
>> Is there a flag for source curl commands for downloading?  
> 
> No.
> 
>> How should I deal with the need for an insecure download.
>> 
> 
> The easiest option is to host the package source somewhere yourself.  This 
> can be temporary until the mirror system picks it up, at which time you can 
> specify mirror:master:/lrzsz-0.12.20.tar.gz as the Source.
> 
> If you don’t happen to have temporary host space, Fink has an area where we 
> host sources that can’t be downloaded from their original URL for whatever 
> reason.
> 
>> For reference the software does X/Y/ZMODEM protocol for data transmission.  
>> Some old instruments need this for communication.
>> 
>> program lrzsz
>> Web site: https://ohse.de/uwe/software/lrzsz.html 
>> 
>> 
>> Any advice on how to develop and test this?
>> 
>> -Scott
>> 
> 
> There’s actually a Fink package description for this already:
> 
> http://pdb.finkproject.org/pdb/package.php/lrzsz 
>  , downloadable via 
> http://fink.cvs.sourceforge.net/viewvc/fink/dists/10.4/stable/main/finkinfo/net/lrzsz.info?revision=1.1
>  
> 
>  if you don’t have a 10.4 tree checkout handy.
> 
> The existing packaging uses Source: 
> http://www.ohse.de/uwe/releases/%n-%v.tar.gz 
>  .  Does that no longer 
> work?  If not, then I’d recommend copying the source elsewhere.  Unless the 
> developer changed the license since the Fink package was made, it’s 
> distributed under the GPL so that’s permitted.
> -- 
> Alexander Hansen, Ph.D.
> Fink User Liaison
> 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Re: [Fink-devel] curl download flags

2017-04-05 Thread Alexander Hansen

> On Apr 5, 2017, at 11:31,  
>  wrote:
> 
> Fink Folks,
> 
> I am trying to create a package for a very old bit of software.  It seems 
> that the hosting original URL for download has an expired certificate.  This 
> causes the fink download to fail when asked to download from the original URL.
> 
> So, in pushing the envelope I tried:
> Source: --insecure https://ohse.de/uwe/releases/%n-%v.tar.gz
> 
> to put a source curl flag in the command.  However fink is careful to escape 
> the embedded space and it doesn’t work.
> curl --connect-timeout 30 -f -L -A 'fink/0.41.1' -O --insecure\ 
> https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
> 
> Is there a flag for source curl commands for downloading?  

No.

> How should I deal with the need for an insecure download.
> 

The easiest option is to host the package source somewhere yourself.  This can 
be temporary until the mirror system picks it up, at which time you can specify 
mirror:master:/lrzsz-0.12.20.tar.gz as the Source.

If you don’t happen to have temporary host space, Fink has an area where we 
host sources that can’t be downloaded from their original URL for whatever 
reason.

> For reference the software does X/Y/ZMODEM protocol for data transmission.  
> Some old instruments need this for communication.
> 
> program lrzsz
> Web site: https://ohse.de/uwe/software/lrzsz.html
> 
> Any advice on how to develop and test this?
> 
> -Scott
> 

There’s actually a Fink package description for this already:

http://pdb.finkproject.org/pdb/package.php/lrzsz 
 , downloadable via 
http://fink.cvs.sourceforge.net/viewvc/fink/dists/10.4/stable/main/finkinfo/net/lrzsz.info?revision=1.1
 

 if you don’t have a 10.4 tree checkout handy.

The existing packaging uses Source: 
http://www.ohse.de/uwe/releases/%n-%v.tar.gz 
 .  Does that no longer work? 
 If not, then I’d recommend copying the source elsewhere.  Unless the developer 
changed the license since the Fink package was made, it’s distributed under the 
GPL so that’s permitted.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

[Fink-devel] curl download flags

2017-04-05 Thread shannahs
Fink Folks,

I am trying to create a package for a very old bit of software.  It seems that 
the hosting original URL for download has an expired certificate.  This causes 
the fink download to fail when asked to download from the original URL.

So, in pushing the envelope I tried:
Source: --insecure https://ohse.de/uwe/releases/%n-%v.tar.gz

to put a source curl flag in the command.  However fink is careful to escape 
the embedded space and it doesn’t work.
curl --connect-timeout 30 -f -L -A 'fink/0.41.1' -O --insecure\ 
https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz

Is there a flag for source curl commands for downloading?  How should I deal 
with the need for an insecure download.

For reference the software does X/Y/ZMODEM protocol for data transmission.  
Some old instruments need this for communication.

program lrzsz
Web site: https://ohse.de/uwe/software/lrzsz.html

Any advice on how to develop and test this?

-Scott


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel