43 lines
1,013 B
Makefile
43 lines
1,013 B
Makefile
# $NetBSD: Makefile,v 1.3 2004/01/20 12:23:57 agc Exp $
|
|
#
|
|
|
|
DISTNAME= dfdisk-1.0
|
|
CATEGORIES= pkgtools
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= jmmv@NetBSD.org
|
|
COMMENT= Fetch distfiles from multiple locations
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
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"
|