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
|
|
|
|
PORTVERSION= 2.2
|
1999-11-01 02:08:06 +00:00
|
|
|
CATEGORIES= net
|
2000-02-23 02:52:35 +00:00
|
|
|
MASTER_SITES= ftp://ddup.sourceforge.net/pub/ddup/
|
2000-04-09 18:14:07 +00:00
|
|
|
DISTNAME= ddup-2.2Dm
|
1999-11-01 02:08:06 +00:00
|
|
|
|
|
|
|
MAINTAINER= cjm2@altavista.net
|
|
|
|
|
|
|
|
MAN1= ddup.1
|
2000-02-10 23:15:56 +00:00
|
|
|
MANCOMPRESSED= yes
|
1999-11-01 02:08:06 +00:00
|
|
|
|
2000-02-23 02:52:35 +00:00
|
|
|
WRKSRC= ${WRKDIR}/ddup-2.2Dm
|
|
|
|
|
|
|
|
# Uncomment this if you want to enable debugging.
|
|
|
|
#DEBUG= -g
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
${ECHO} "char *file_name = \"${PREFIX}/etc/ddup.conf\";" > ${WRKSRC}/options.h
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c ddup.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c ddup_functions.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c getopt.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c getopt1.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c parse_config.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c parse_option.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c update.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -o ddup ddup.o ddup_functions.o getopt.o getopt1.o parse_config.o parse_option.o update.o ${LIBS}
|
|
|
|
|
2000-02-10 23:15:56 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ddup ${PREFIX}/sbin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/testip ${PREFIX}/sbin
|
2000-02-23 02:52:35 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/ddup.1.gz ${PREFIX}/man/man1
|
2000-02-10 23:15:56 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/ddup
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/INSTALL-C ${PREFIX}/share/doc/ddup
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/ddup
|
2000-02-23 02:52:35 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/COPYING ${PREFIX}/share/doc/ddup
|
|
|
|
|
|
|
|
post-install:
|
1999-11-01 02:08:06 +00:00
|
|
|
strip ${PREFIX}/sbin/ddup
|
2000-02-23 02:52:35 +00:00
|
|
|
${CAT} ${PKGDIR}/MESSAGE
|
1999-11-01 02:08:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|