# lactime/cfg - "Build" settings for package # Revision: 100404 #--------------------------------------------------------------------- [technotes] # 1. This package installs three CLI commands: # cyclemoon -- Maintains some Moon-related files # moonphasepic -- Creates a Moon picture with a phase shadow # added # moonphase2avi -- Creates a Moon-phase AVI or animated GIF # rpthol -- Outputs descriptive text if today is a # special occasion (or nothing, otherwise) # Additionally, it installs the following web-page components: # holidays.cgi -- CGI script that lists upcoming occasions # holidays125.png -- Related to "holidays.cgi" # add-occasions.html -- Ditto # moonphase.cgi -- CGI script that displays lunar information # (symbolic link to "holidays.cgi") # moonphase.avi -- Moon-phase AVI video clip # moonphase.gif -- Moon-phase animated GIF # moonphase.png -- Sample moon-phase PNG file # moonphaserun.html -- HTML file that runs "moonphase.avi" # moonphasepic.txt -- Text-file version of "moonphasepic" # (symbolic link to the latter file) # moonphase2avi.txt -- Text-file version of "moonphase2avi" # (symbolic link to the latter file) # settime.cgi -- CGI script that sets the date and/or time # settime128.png -- Related to "settime.cgi" # settime.html -- Ditto # For more information: # a. For more information about "moonphasepic" or "moonphase2avi", # execute these programs without any parameters. # b. For more information about "cyclemoon" and the CGI script[s], # see the comments at the start of each file. #--------------------------------------------------------------------- # 2. This package sets things up so that "cyclemoon" is executed auto- # matically at startup time. (This is handled by the "setup.boot" # block.) However, it doesn't modify the system's "cron"-table config- # uration. You may wish to do this manually. For more information, see # the comments in "cyclemoon". #--------------------------------------------------------------------- # 3. This package was created from scratch locally. Therefore, it # doesn't have any standard URLs, except for the lunar data-file URL # shown in the "urls" block. # Note: The data file in question is a JPEG image that's suitable for # use as a POV-Ray image map. #--------------------------------------------------------------------- # 4. This package has several runtime dependencies, including (but not # necessarily limited to): # gifsicle intergif mencoder povray # Presently, this package doesn't list the runtime dependencies in its # "depends" block. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.02 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.00 hours (or 000.02 minutes) - HP EliteBook 8560w 32GB RAM 00.00 hours (or 000.02 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.05 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] configure = none license = Creative Commons Attribution-NonCommercial-ShareAlike 2.5 revision = special tmpsize = 1M unpack = none #--------------------------------------------------------------------- [depends] perl #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin DATADIR=$PKGDIR_PROD/data SBINDIR=$PKGDIR_PROD/sbin WEBDIR=$PKGDIR_PROD/website mkdir -p $BINDIR $DATADIR $SBINDIR $WEBDIR \ cp -a $PKGDIR_SPECIAL/albedo_simp750.jpg $DATADIR/ \ cd $BINDIR cp -a $PKGDIR_SPECIAL/moonphase2avi . chmod 755 moonphase2avi \ cd $BINDIR sed -e "s|__META_DATADIR__|$DATADIR|g" \ < $PKGDIR_SPECIAL/moonphasepic.in \ > moonphasepic chmod 755 moonphasepic \ cd $SBINDIR sed -e "s|__META_PREFIX__|$PKGDIR_PROD|g" \ < $PKGDIR_SPECIAL/cyclemoon.in \ > cyclemoon chmod 755 cyclemoon \ cd $WEBDIR ln -s ../bin/moonphasepic moonphasepic.txt ln -s ../bin/moonphase2avi moonphase2avi.txt \ cd $WEBDIR cp -a $PKGDIR_SPECIAL/*.cgi . cp -a $PKGDIR_SPECIAL/add-occasions.html . cp -a $PKGDIR_SPECIAL/holidays*.png . cp -a $PKGDIR_SPECIAL/settime*.{html,png} . cp -a $PKGDIR_SPECIAL/moonphase.{avi,gif,png} . cp -a $PKGDIR_SPECIAL/moonphaserun.html . \ sed \ -e "s|__META_BINDIR__|$SYSDIR_BIN|g" \ < $PKGDIR_SPECIAL/settime.cgi.in \ > settime.cgi chmod 755 *.cgi \ cd $BINDIR ln -nsf $WEBDIR/holidays.cgi rpthol \ SOFTTREE=/usr/local/pages/software DISTROPAGEDIR=$SOFTTREE/lactime \ mkdir -p $DISTROPAGEDIR cd $DISTROPAGEDIR ln -nsf $WEBDIR/* . ln -nsf holidays.cgi moonphase.cgi #--------------------------------------------------------------------- [setup.boot] $PKGDIR_PROD/sbin/cyclemoon >& /dev/null #--------------------------------------------------------------------- # 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://gallery.seds.org/d/16493-1/\ albedo_simp750.jpeg url_debian = n/a url_home = n/a url_lfs = n/a url_tarball = n/a