summaryrefslogtreecommitdiff
path: root/pkgtools/dfdisk
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-04-17 11:15:14 +0000
committerjmmv <jmmv>2003-04-17 11:15:14 +0000
commit4103c3ea62c214e2628c6407255969e408af3928 (patch)
treede9b90becd43f3394ca0fa09a7d99211469ab0c8 /pkgtools/dfdisk
parentad26d14dae40588e7bf86836002d01dd52ea8822 (diff)
downloadpkgsrc-4103c3ea62c214e2628c6407255969e408af3928.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/dfdisk')
-rw-r--r--pkgtools/dfdisk/DESCR14
-rw-r--r--pkgtools/dfdisk/Makefile43
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"