On Sun, Apr 19, 2009 at 07:22:30PM +0200, Max Horn wrote: > Looking at the procheck homepage, I am not sure that you can legally > package this software *at all*. Specifically, this clause: > > "Users must sign a Confidentiality Agreement (included with the source > code in file confid.txt)" > > I.e., it is not just restricted software, it is not at all free or open > source. > > > Bye, > Max
The attached implements the same approach used in ccp4. Package: procheck Version: 3.5.4 Revision: 1 Maintainer: Jack Howarth <howa...@bromo.med.uc.edu> Source: none #Source: ftp://ftp.biochem.ucl.ac.uk/pub/procheck/tar3_5/procheck.tar.Z #Source-MD5: 3d12962079e42b0fa275424fabb74197 BuildDepends: gcc44, wget, fink (>= 0.24.12) Depends: gcc44-shlibs PatchFile: %n.patch PatchFile-MD5: 7d4497a7b339ed47c21be3b419cb2fdd PatchScript: << #!/bin/bash -ev if [ `/usr/bin/whoami` = "nobody" ] ; then wget -c ftp://ftp.biochem.ucl.ac.uk/pub/procheck/tar3_5/procheck.tar.Z tar -zxvf procheck.tar.Z cd procheck else cd %p/src if ! [ -f %p/src/procheck.tar.Z ] ; then wget -c ftp://ftp.biochem.ucl.ac.uk/pub/procheck/tar3_5/procheck.tar.Z fi cd %b tar -zxvf %p/src/procheck.tar.Z cd procheck fi sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1 << CompileScript: << #!/bin/sh -ev cd procheck agreed=no ans=n if test $agreed = "no"; then echo ; echo ; if test -r confid.doc ; then echo ; echo ; echo "Please read the following"; echo ; more confid.doc; echo ; echo -n "Do you agree to these terms y/n [n] ?:"; read ans ; if test x$ans = x; then ans="n" fi if test $ans = "y" || test $ans = "Y"; then make all else echo "You must agree to the confidentiality terms to install this software"; fi fi fi << InstallScript: << #!/bin/sh -ev cd procheck mkdir -p %i/share/procheck mkdir -p %i/etc/profile.d rm *.f *.c *.inc *.o Makefile cp * %i/share/procheck cp setup.scr %i/etc/profile.d/procheck.csh cp setup.sh %i/etc/profile.d/procheck.sh chmod 755 %i/share/procheck/setup.sh chmod 755 %i/etc/profile.d/procheck.csh chmod 755 %i/etc/profile.d/procheck.sh << Description: Protein Structure Validation Suite DescPackaging: << Since source code is restricted so that it can't be mirrored and the ftp server timeouts on curl even at 300 seconds, use wget to manually download the source tarball. Treat the general case and --build-as-nobody differently. << PostInstScript: << # Make the user read the license conditions more %p/share/procheck/confid.doc << License: Restrictive Homepage: http://www.biochem.ucl.ac.uk/~roman/procheck/procheck.html I don't think we have anyway of making a PreInstScript that can abort an installation, do we? One has to make the assumption that since the source isn't mirrored and that the original builder agreeded to the license that they will honor the agreement and not distribute the debs. Jack ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel