freebsd-ports/net/ddup/Makefile
Akinori MUSHA 897d06aa97 Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.
2002-01-29 11:48:57 +00:00

46 lines
1021 B
Makefile

# New ports collection makefile for: ddup
# Date created: 30 September 1999
# Whom: cjm2
#
# $FreeBSD$
#
PORTNAME= ddup
PORTVERSION= 3.0.1
CATEGORIES= net
MASTER_SITES= http://www.ddup.org/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}-unix
MAINTAINER= cjm2@altavista.net
MAN1= ddup.1
MANCOMPRESSED= maybe
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
# Uncomment this if you want to enable debugging.
#DEBUG= -g
MAKE_ARGS= DEBUG="${DEBUG}"
post-extract:
cd ${WRKSRC}; ${GUNZIP_CMD} ddup.1.gz
post-patch:
${PERL} -i -pe 's,!!PREFIX!!,${PREFIX},' ${WRKSRC}/ddupcron.sh
${PERL} -i -pe 's,/etc\b,${PREFIX}$$&,' ${WRKSRC}/ddup.1
pre-build:
${CP} ${FILESDIR}/Makefile ${WRKSRC}/
${ECHO_CMD} "#define file_name \"${PREFIX}/etc/ddup.conf\"" > ${WRKSRC}/options.h
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/ddupcron.sh ${PREFIX}/sbin/
.if !defined(NOPORTSDOC)
${MKDIR} ${PREFIX}/share/doc/ddup
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ddup/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>