1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/ftp/bftpd/Makefile
Jesse Smith c3c3d04764 ftp/bftpd: Remove unnecessary patchfile
While here, pet portlint and remove unneeded post-patch.

PR:		258395
2021-09-10 15:21:52 +02:00

40 lines
1019 B
Makefile

# Created by: will
PORTNAME= bftpd
PORTVERSION= 6.0
CATEGORIES= ftp
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= jsmith@resonatingmedia.com
COMMENT= Very configurable FTP server that can do chroot easily
LICENSE= GPLv2
USES= autoreconf gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-pam
# Fix build with clang 11
CFLAGS+= -fcommon
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf.sample \
man/man8/bftpd.8.gz
PORTDOCS= en pl sk
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,/etc/bftpd.conf,${PREFIX}/etc/bftpd.conf,' \
${WRKSRC}/mypaths.h
@${REINPLACE_CMD} -e 's, -ldl,,g' ${WRKSRC}/configure.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
${INSTALL_DATA} ${WRKSRC}/bftpd.conf ${STAGEDIR}${PREFIX}/etc/bftpd.conf.sample
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>