60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
43 lines
935 B
Makefile
43 lines
935 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tftp-hpa
|
|
PORTVERSION= 5.2
|
|
CATEGORIES= ftp
|
|
MASTER_SITES= KERNEL_ORG/software/network/tftp/tftp-hpa
|
|
|
|
MAINTAINER= brooks@FreeBSD.org
|
|
COMMENT= Advanced tftp server
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake tar:xz
|
|
USE_RC_SUBR= tftpd
|
|
|
|
DESTDIRNAME= INSTALLROOT
|
|
|
|
PLIST_FILES= bin/tftp \
|
|
libexec/in.tftpd \
|
|
man/man1/tftp.1.gz \
|
|
man/man8/in.tftpd.8.gz \
|
|
man/man8/tftpd.8.gz
|
|
PORTDOCS= CHANGES \
|
|
README \
|
|
README.security
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,SBINDIR,LIBEXECDIR,; s,sbindir,libexecdir,' \
|
|
${WRKSRC}/MCONFIG.in
|
|
@${REINPLACE_CMD} -e 's,SBINDIR,LIBEXECDIR,g' \
|
|
${WRKSRC}/tftpd/Makefile
|
|
@${REINPLACE_CMD} -e 's,LOG_DAEMON,LOG_FTP,g' \
|
|
-e 's,openlog(,tzset();openlog(,g' \
|
|
${WRKSRC}/tftpd/tftpd.c
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for docfile in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|