ADDED Makefile Index: Makefile ================================================================== --- /dev/null +++ Makefile @@ -0,0 +1,20 @@ +PREFIX = /usr/local +prefix = $(PREFIX) +bindir = $(prefix)/bin +libdir = $(prefix)/lib + +all: hunter2 + +install: hunter2 lib + mkdir -p '$(DESTDIR)$(bindir)' '$(DESTDIR)$(libdir)/hunter2' + cp -rp lib/* '$(DESTDIR)$(libdir)/hunter2/' + sed 's@\[file dirname \[info script\]\] lib@"$(libdir)/hunter2"@' hunter2 > '$(DESTDIR)$(bindir)/hunter2' + chmod 755 '$(DESTDIR)$(bindir)/hunter2' + +clean: + @echo 'All clean!' + +distclean: + @echo 'All clean!' + +.PHONY: all install clean distclean ADDED build/makearch.info Index: build/makearch.info ================================================================== --- /dev/null +++ build/makearch.info @@ -0,0 +1,46 @@ +# This is the name of the utility, it will be prefixed to the tarball name +UTIL="hunter2" + +# This is the name of output files that should exist after configure +# procedures. +BINS="hunter2" + +# This lists the name of files that are required to exist +REQS="Makefile lib/linux-x86_64" + +# Version of utility, if empty it will be guessed. +# If set to "auto" it will be maintained in a file called .version +# in the source directory and the revision will be incremented +# each time a "makearch" is done. +# +# If @@SVNLCR@@ is used anywhere in this version number, it will be +# replaced with the highest last-changed-rev from the output of +# svn info -R (or 0) +VERS="0.1" + +# Space sperated list of documents, if they exist, they will be +# prefixed with the contents of the DOC_HDR file and substitution +# will occur: +# @@UTIL@@ becomes the utility name ${UTIL} +# @@VERS@@ becomes the utility version +# @@DATE@@ becomes the current date +DOCS="README" +DOC_HDR="HEADER" + +# These files follow the same convention as DOCS, but don't have the header +# tacked onto them. +UPDATE_VARS="" + +# This script is executed immediately after copying the files +# to a temp directory to attempt to compile +BEFORE="./build/pre.sh" + +# This script is executed after updating variables +UPDATED="" + +# This script is executed immediately prior to creation of the +# tarball +AFTER="" + +# Files matching these (space-seperated) patterns are deleted +TMPS="*.out HEADER build" Index: build/pre.sh ================================================================== --- build/pre.sh +++ build/pre.sh @@ -13,10 +13,15 @@ set -e cd "${ourdir}/.." rm -rf lib + +if [ "$1" = 'clean' -o "$1" = 'distclean' ]; then + exit 0 +fi + "${TCLKIT:-tclkit}" "${ourdir}/teapot-client.kit" get . tcl tcl pki aes for platform in linux-ix86 linux-x86_64 macosx-ix86 macosx-x86_64 win32-ix86 win32-x86_64; do dl_platform="${platform}" vers='0.9.9'