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/dfdisk/Makefile | |
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/dfdisk/Makefile')
-rw-r--r-- | pkgtools/dfdisk/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
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" |