1999-11-01 02:08:06 +00:00
|
|
|
# New ports collection makefile for: ddup
|
|
|
|
# Date created: 30 September 1999
|
|
|
|
# Whom: cjm2
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= ddup
|
2000-11-03 16:21:54 +00:00
|
|
|
PORTVERSION= 3.0.1
|
1999-11-01 02:08:06 +00:00
|
|
|
CATEGORIES= net
|
2000-11-03 16:21:54 +00:00
|
|
|
MASTER_SITES= http://www.ddup.org/download/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-unix
|
1999-11-01 02:08:06 +00:00
|
|
|
|
|
|
|
MAINTAINER= cjm2@altavista.net
|
|
|
|
|
|
|
|
MAN1= ddup.1
|
2000-11-03 16:21:54 +00:00
|
|
|
MANCOMPRESSED= maybe
|
1999-11-01 02:08:06 +00:00
|
|
|
|
2000-11-03 16:21:54 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2000-02-23 02:52:35 +00:00
|
|
|
|
|
|
|
# Uncomment this if you want to enable debugging.
|
|
|
|
#DEBUG= -g
|
|
|
|
|
2000-11-03 16:21:54 +00:00
|
|
|
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
|
|
|
|
|
2000-02-23 02:52:35 +00:00
|
|
|
pre-build:
|
2000-11-03 16:21:54 +00:00
|
|
|
${CP} ${FILESDIR}/Makefile ${WRKSRC}/
|
|
|
|
${ECHO} "#define file_name \"${PREFIX}/etc/ddup.conf\"" > ${WRKSRC}/options.h
|
2000-02-23 02:52:35 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-11-03 16:21:54 +00:00
|
|
|
${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}
|
1999-11-01 02:08:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|