Max,
   Actually this packaging is even better. I download the confid.doc
and the sources aren't even downloaded unless the user agrees to the
terms...

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
wget -c ftp://ftp.biochem.ucl.ac.uk/pub/procheck/confid.doc
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
        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
            sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
        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
            sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
         fi
      else
        echo "You must agree to the confidentiality terms to install this 
software";
    fi
  fi
fi
<<
CompileScript: <<
#!/bin/sh -ev
cd procheck
make all
<<
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.
    Users must agree to terms of the displayed confidentiality
and must not distribute the resulting binaries.
<<
PostInstScript: <<
    # Make the user read the license conditions
    more %p/share/procheck/confid.doc
    echo "You are prohibited from distributing these binaries!"
<<
License: Restrictive
Homepage: http://www.biochem.ucl.ac.uk/~roman/procheck/procheck.html

------------------------------------------------------------------------------
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

Reply via email to