# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # jigdo # jigdo/Makefile # jigdo/distinfo # jigdo/pkg-comment # jigdo/pkg-descr # jigdo/pkg-plist # jigdo/scripts # jigdo/scripts/configure.jigdo # echo c - jigdo mkdir -p jigdo > /dev/null 2>&1 echo x - jigdo/Makefile sed 's/^X//' >jigdo/Makefile << 'END-of-jigdo/Makefile' X# ports collection makefile for: jigdo X# Date created: 23 July 2002 X# Whom: Attila Nagy X# X# $FreeBSD$ X# X XPORTNAME= jigdo XPORTVERSION= 0.6.8 XCATEGORIES= ftp XMASTER_SITES= http://home.in.tum.de/~atterer/jigdo/ X XMAINTAINER= bra@fsn.hu X XBUILD_DEPENDS= libwww-config:${PORTSDIR}/www/libwww XRUN_DEPENDS= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget X XMAN1= jigdo-file.1 jigdo-lite.1 jigdo-mirror.1 X XUSE_BZIP2= yes XUSE_GMAKE= yes XUSE_SUBMAKE= yes XHAS_CONFIGURE= yes XCONFIGURE_ARGS= --prefix=${PREFIX} --without-libdb --disable-nls --without-gui X XSCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ X TOUCH="${TOUCH}" \ X MKDIR="${MKDIR}" \ X X.include X X.if ${OSVERSION} >= 500035 XUSE_GCC= 2.95 X.endif X Xpre-fetch: X @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.jigdo X X.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) X.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" X.endif X Xpre-configure: X @cd ${WRKSRC}; ${MV} configure configure.orig && \ X ${SED} s/gtk-config/gtk12-config/g < configure.orig > configure && \ X ${RM} configure.orig && ${CHMOD} 755 configure X Xpost-install: X strip ${PREFIX}/bin/jigdo-file X Xpost-clean: X @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc X X.include END-of-jigdo/Makefile echo x - jigdo/distinfo sed 's/^X//' >jigdo/distinfo << 'END-of-jigdo/distinfo' XMD5 (jigdo-0.6.8.tar.bz2) = 9f9614fa7e01be98e79445f07179c675 END-of-jigdo/distinfo echo x - jigdo/pkg-comment sed 's/^X//' >jigdo/pkg-comment << 'END-of-jigdo/pkg-comment' XAn utility used to retrieve very large files over the Internet END-of-jigdo/pkg-comment echo x - jigdo/pkg-descr sed 's/^X//' >jigdo/pkg-descr << 'END-of-jigdo/pkg-descr' XThis is a port of Jigsaw Download (AKA jigdo) which is a tool designed to Xease the distribution of very large files over the Internet, for example XCD or DVD images. X XMain features: X - The large images does not need to be stored on the server, instead only X the small files contained in the images (works with CD, DVD images, X uncompressed zip files, tar archives...) X - In spite of the above, jigdo creates a bit-exact copy of the image on the X user's machine (to achieve this, the directory data, boot block, etc. of X the image is stored in a special .template file which is distributes X alongside the .jigdo file) X - There is full control over where jigdo-lite will download the individual X parts. It is possible to define mirrors, so users can choose the nearest X one. X - jigdo relies on standard HTTP/FTP, no special protocols needed. X - jigdo-lite supports resuming aborted downloads, or continuing the X download with another mirror if the current one is slow. X - It is possible to "upgrade" the CD image, only the changed data will be X downloaded. X XWWW: http://www.atterer.net/jigdo/ X XAttila Nagy END-of-jigdo/pkg-descr echo x - jigdo/pkg-plist sed 's/^X//' >jigdo/pkg-plist << 'END-of-jigdo/pkg-plist' Xbin/jigdo-file Xbin/jigdo-lite Xbin/jigdo-mirror X%%SUB_GUI%%bin/jigdo Xshare/jigdo/debian-mirrors.jigdo X%%SUB_GUI%%share/jigdo/pixmaps/button-cross.xpm X%%SUB_GUI%%share/jigdo/pixmaps/button-pause.xpm X%%SUB_GUI%%share/jigdo/pixmaps/button-play.xpm X%%SUB_GUI%%share/jigdo/pixmaps/jigdo-logo.xpm X%%SUB_GUI%%share/jigdo/pixmaps/new.xpm X%%SUB_GUI%%share/jigdo/pixmaps/preferences.xpm X%%SUB_GUI%%share/jigdo/pixmaps/progress051.xpm X%%SUB_GUI%%share/jigdo/pixmaps/quit.xpm X%%SUB_GUI%%share/jigdo/COPYING X%%SUB_GUI%%@dirrm share/jigdo/pixmaps X@dirrm share/jigdo END-of-jigdo/pkg-plist echo c - jigdo/scripts mkdir -p jigdo/scripts > /dev/null 2>&1 echo x - jigdo/scripts/configure.jigdo sed 's/^X//' >jigdo/scripts/configure.jigdo << 'END-of-jigdo/scripts/configure.jigdo' X#!/bin/sh X# $FreeBSD$ X Xif [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then X exit Xfi X Xtempfile=`mktemp -t checklist` X Xif [ "${BATCH}" = "yes" ]; then X set \"DB3\" Xelse X /usr/bin/dialog --title "Jigsaw Download configuration options" \ X --clear --checklist "\n\ XPlease select desired options:" -1 -1 16 \ XGUI "Graphical User Interface (experimental)" OFF \ XDB3 "Berkeley DB3 (used for jigdo-file's cache)" ON \ XNLS "Native Language Support (no language files yet)" OFF \ X2> $tempfile X X retval=$? X X if [ -s $tempfile ]; then X set `cat $tempfile` X fi X rm -f $tempfile X X case $retval in X 0) if [ -z "$*" ]; then X echo "Nothing selected" X fi X ;; X 1) echo "Cancel pressed." X exit 1 X ;; X esac Xfi X X${MKDIR} ${WRKDIRPREFIX}${CURDIR} Xexec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc X Xecho "PREFIX= ${PREFIX}" X XSUB_GUI="@comment " X Xwhile [ "$1" ]; do X case $1 in X \"GUI\") X echo "CONFIGURE_ARGS+= --with-gui" X echo "BUILD_DEPENDS+= gtk12-config:\${PORTSDIR}/x11-toolkits/gtk12" X SUB_GUI="" X ;; X \"DB3\") X echo "CONFIGURE_ARGS+= --with-libdb=-ldb3" X echo "CONFIGURE_ENV+= \ X CPPFLAGS=\"-I\${LOCALBASE}/include/db3\" \ X LIBS=\"-L\${LOCALBASE}/lib\" LDFLAGS=\"-ldb3\"" X echo "LIB_DEPENDS= db3:\${PORTSDIR}/databases/db3" X ;; X \"NLS\") X echo "CONFIGURE_ARGS+= --enable-nls=/usr/local/include" X ;; X *) X echo "Invalid option(s): $*" > /dev/stderr X rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc X exit 1 X ;; X esac X shift Xdone X Xecho "PLIST_SUB+= SUB_GUI=\"${SUB_GUI}\"" END-of-jigdo/scripts/configure.jigdo exit