# lacgeo/cfg - "Build" settings for package # Revision: 100404 #--------------------------------------------------------------------- [technotes] # 1. This package installs four CLI commands: # sunrise -- Same as "suntime" # sunset -- Same as "suntime" # suntime -- Prints local sunrise and sunset times # zipmiles -- Prints distance between two ZIP codes # ziptoloc -- Maps U.S. ZIP codes to latitude and longitude # Additionally, it installs the following web-page components: # suntime.cgi -- CGI script that runs "suntime" # suntime.html -- Web-page interface for "suntime.cgi" # suntime125.png -- "suntime" icon # zipmiles.cgi -- CGI script that runs "zipmiles" # zipmiles.html -- Web-page interface for "zipmiles.cgi" # zipmiles125.png -- "zipmiles" icon # ziptoloc.cgi -- CGI script that runs "ziptoloc" # ziptoloc.html -- Web-page interface for "ziptoloc.cgi" # ziptoloc125.png -- "ziptoloc" icon #--------------------------------------------------------------------- # 2. This package was created from scratch locally. Therefore, it # doesn't have any external URLs, except for the Civic Space Labs # ZIP-file URL shown in the "urls" block. # Note: The Civic Space Labs data is distributed under a Creative Com- # mons license. For more information, see the README file provided by # the ZIP file in question. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.02 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.03 minutes) - HP EliteBook 8560w 32GB RAM 00.00 hours (or 000.07 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.00 hours (or 000.15 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] configure = none license = Creative Commons Attribution-NonCommercial-ShareAlike 2.5 revision = special tmpsize = 3M unpack = none #--------------------------------------------------------------------- [depends] cpan-db-file db perl #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin DATADIR=$PKGDIR_PROD/data WEBDIR=$PKGDIR_PROD/webdir mkdir -p $BINDIR $DATADIR $WEBDIR \ unzip -o $PKGDIR_SPECIAL/database/mhzipcode.zip perl $PKGDIR_SPECIAL/database/mhziptodb mv ziptoloc.db $DATADIR/ \ SPCSUNTIME=$PKGDIR_SPECIAL/suntime SPCZIPMILES=$PKGDIR_SPECIAL/zipmiles SPCZIPTOLOC=$PKGDIR_SPECIAL/ziptoloc \ cd $BINDIR cp -a $SPCSUNTIME/suntime . cp -a $SPCZIPMILES/zipmiles . chmod 755 suntime zipmiles ln -nsf suntime sunrise ln -nsf suntime sunset \ sed -e "s|__META_DATADIR__|$DATADIR|g" \ < $SPCZIPTOLOC/ziptoloc.in \ > ziptoloc chmod 755 ziptoloc \ cd $WEBDIR cp -a $SPCSUNTIME/suntime*.{cgi,html,png} . cp -a $SPCZIPMILES/zipmiles*.{cgi,html,png} . cp -a $SPCZIPTOLOC/ziptoloc*.{cgi,html,png} . chmod 755 *.cgi \ DISTROPAGEDIR=/usr/local/pages/distro/software/misc mkdir -p $DISTROPAGEDIR cd $DISTROPAGEDIR ln -nsf $WEBDIR/* . #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_data = http://mappinghacks.com/data/zipcode.zip url_debian = n/a url_home = n/a url_lfs = n/a url_tarball = n/a