freebsd-ports/net/ddup/Makefile
Patrick Li 5103e8d9a3 Fix master sites
PR:		36680
Submitted by:	Jason Harris <jharris@widomaker.com>
Approved by:	mail bounce
2002-05-18 08:35:35 +00:00

46 lines
1013 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= ${MASTER_SITES_LOCAL}
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>