[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / dfdisk

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / dfdisk / Makefile (download)

Revision 1.15, Mon Mar 3 03:30:53 2014 UTC (10 years ago) by obache
Branch: MAIN
Changes since 1.14: +2 -4 lines

Just define PKGNAME and use it.

# $NetBSD: Makefile,v 1.15 2014/03/03 03:30:53 obache Exp $
#

PKGNAME=	dfdisk-1.0
CATEGORIES=	pkgtools

MAINTAINER=	jmmv@NetBSD.org
COMMENT=	Fetch distfiles from multiple locations

WRKSRC=		${WRKDIR}
NO_CONFIGURE=	yes
NO_BUILD=	yes

EGDIR=		${PREFIX}/share/examples/dfdisk
CONF_FILES=	${EGDIR}/dfdisk.conf ${PKG_SYSCONFDIR}/dfdisk.conf

.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

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${EGDIR}

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	dfdisk.sh dfdisk.1 dfdisk.conf
SUBST_SED.paths+=	-e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.paths+=	-e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_SED.paths+=	-e 's,@PKGVERSION@,${PKGVERSION},g'
SUBST_SED.paths+=	-e 's,@PKGBASE@,${PKGBASE},g'
SUBST_SED.paths+=	-e 's,@FTP@,${FTP},g'
SUBST_SED.paths+=	-e 's,@SH@,${SH},g'
SUBST_STAGE.paths=	post-patch

post-extract:
.for f in dfdisk.sh dfdisk.1 dfdisk.conf
	${CP} ${FILESDIR}/${f} ${WRKDIR}/${f}
.endfor

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/dfdisk.sh ${DESTDIR}${PREFIX}/bin/dfdisk
	${INSTALL_DATA} ${WRKDIR}/dfdisk.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/dfdisk.1
	${INSTALL_DATA} ${WRKDIR}/dfdisk.conf ${DESTDIR}${EGDIR}

.include "../../mk/bsd.pkg.mk"