diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-04-17 11:15:14 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-04-17 11:15:14 +0000 |
commit | 6624fedab92232b122b005637895465b81a29187 (patch) | |
tree | de9b90becd43f3394ca0fa09a7d99211469ab0c8 /pkgtools | |
parent | e306cf3e059fed638447921531f55149dc38cdb6 (diff) | |
download | pkgsrc-6624fedab92232b122b005637895465b81a29187.tar.gz |
Initial import of dfdisk, version 1.0:
dfdisk is an utility that adds extra functionality to pkgsrc, allowing it
to fetch distfiles from multiple locations. It currently supports the
following methods: CD-ROM and Network. Others may be added in the future.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/dfdisk/DESCR | 14 | ||||
-rw-r--r-- | pkgtools/dfdisk/Makefile | 43 |
2 files changed, 57 insertions, 0 deletions
diff --git a/pkgtools/dfdisk/DESCR b/pkgtools/dfdisk/DESCR new file mode 100644 index 00000000000..4ba58be389d --- /dev/null +++ b/pkgtools/dfdisk/DESCR @@ -0,0 +1,14 @@ +dfdisk is an utility that adds extra functionality to pkgsrc, allowing it +to fetch distfiles from multiple locations. It currently supports the +following methods: + +CD-ROM The program manages a CD database where every disk is matched to + a series of distfiles. Whenever a distfile is requested, the + program will check if it is known by the database and ask the + user to place the needed disk in the drive. + +Network If a file is not found in the described database, the program + fallbacks to the network, fetching the file from there (the usual + method in pkgsrc). + +Support for more methods may be added in the future, like for DVD-ROM. diff --git a/pkgtools/dfdisk/Makefile b/pkgtools/dfdisk/Makefile new file mode 100644 index 00000000000..29f1e5b146e --- /dev/null +++ b/pkgtools/dfdisk/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/04/17 11:15:40 jmmv Exp $ +# + +DISTNAME= dfdisk-1.0 +WRKSRC= ${WRKDIR} +CATEGORIES= pkgtools +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= jmmv@netbsd.org +COMMENT= Fetch distfiles from multiple locations + +NO_CHECKSUM= yes +NO_CONFIGURE= yes +USE_PKGINSTALL= yes + +EGDIR= ${PREFIX}/share/examples/dfdisk +CONF_FILES= ${EGDIR}/dfdisk.conf ${PKG_SYSCONFDIR}/dfdisk.conf + +FILES_SUBST+= PKGVERSION="${PKGVERSION}" + +.include "../../mk/bsd.prefs.mk" + +.if exists(${ZOULARISBASE}/bin/ftp) +FILES_SUBST+= FTP="${ZOULARISBASE}/bin/ftp -p" +.else +FILES_SUBST+= FTP="/usr/bin/ftp -p" +.endif + +do-build: +.for f in dfdisk.sh dfdisk.1 dfdisk.conf + @${ECHO} "Generating $f..." + @${SED} ${FILES_SUBST_SED} < ${FILESDIR}/$f > ${WRKDIR}/$f +.endfor +.undef f + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/dfdisk.sh ${PREFIX}/bin/dfdisk + ${INSTALL_DATA} ${WRKDIR}/dfdisk.1 ${PREFIX}/man/man1/dfdisk.1 + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKDIR}/dfdisk.conf ${EGDIR} + +.include "../../mk/bsd.pkg.mk" |