mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
5e42773717
- Fix portlint warning PR: ports/168373 Submitted by: koobs <koobs.freebsd@gmail.com> Approved by: Maintainer timeout (2-Weeks+)
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# New ports collection makefile for: pydf
|
|
# Date created: 29 November 2007
|
|
# Whom: Baptiste Grenier <gwarf@gwarf.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pydf
|
|
PORTVERSION= 10
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://kassiopeia.juls.savba.sk/~garabik/software/pydf/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= baptiste@bapt.name
|
|
COMMENT= A python implementation of df
|
|
|
|
LICENSE= unknown
|
|
LICENSE_NAME= Public Domain
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PLIST_FILES= bin/pydf etc/pydfrc.sample
|
|
|
|
USE_PYTHON= yes
|
|
NO_BUILD= yes
|
|
|
|
MAN1= pydf.1
|
|
MANCOMPRESSED= no
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}| ; s|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/pydf
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pydf ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/pydfrc ${PREFIX}/etc/pydfrc.sample
|
|
${INSTALL_MAN} ${WRKSRC}/pydf.1 ${PREFIX}/man/man1
|
|
|
|
post-install:
|
|
@if [ ! -f ${PREFIX}/etc/pydfrc ]; then \
|
|
${ECHO_MSG} ; \
|
|
${CAT} ${PKGMESSAGE} ; \
|
|
${ECHO_MSG} ; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|