897d06aa97
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.
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# New ports collection makefile for: fspd
|
|
# Date created: 2001-04-10
|
|
# Whom: trevor
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fspd
|
|
PORTVERSION= 2.8.1.3
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.netsw.org/net/ip/filetrans/fsp/
|
|
DISTNAME= fsp.281-B3
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
ALL_TARGET= fspserver
|
|
DOCDIR= share/doc/${PORTNAME}
|
|
DOCFILES= BETA.README ChangeLog FILES INFO TODO INSTALL MACHINES
|
|
GNU_CONFIGURE= yes
|
|
MAN1= fspd.1
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WRKSRC= ${WRKDIR}/2.8.1
|
|
|
|
do-patch:
|
|
${PERL} -pi -e "s:/usr/fsp:${LOCALBASE}/etc:g" \
|
|
${WRKSRC}/include/server_conf.h
|
|
|
|
pre-install:
|
|
${ECHO_CMD} "sbin/fspd" > ${PLIST}
|
|
.if !defined(NOPORTDOCS)
|
|
.for i in ${DOCFILES}
|
|
${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} share/examples/fspd/example.conf >> ${PLIST}
|
|
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
|
${ECHO_CMD} @dirrm share/examples/fspd >> ${PLIST}
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/server/fspd ${LOCALBASE}/sbin
|
|
.if !defined(NO_INSTALL_MANPAGES)
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/fspd.1 ${LOCALBASE}/man/man1/
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/examples/fspd ${PREFIX}/${DOCDIR}
|
|
.for i in ${DOCFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/example.conf ${PREFIX}/share/examples/fspd
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|