2001-04-13 05:08:12 -04:00
|
|
|
# New ports collection makefile for: lukemftpd
|
|
|
|
# Date created: 12 April 2001
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lukemftpd
|
2001-05-13 20:23:22 -04:00
|
|
|
PORTVERSION= 1.1
|
2001-05-29 21:04:24 -04:00
|
|
|
PORTREVISION= 1
|
2001-04-13 05:08:12 -04:00
|
|
|
CATEGORIES= ftp ipv6
|
|
|
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/lukemftp/ \
|
|
|
|
ftp://ftp.nuug.no/pub/anders/distfiles/
|
|
|
|
|
2001-10-06 22:03:45 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2001-04-13 05:08:12 -04:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
DOCS= ChangeLog README THANKS
|
|
|
|
|
|
|
|
MAN5= ftpd.conf.5 ftpusers.5
|
|
|
|
MAN8= ftpd.8
|
|
|
|
|
|
|
|
FIXPREFIX= ftpd.8 ftpd.conf.5 ftpusers.5
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
.for f in ${FIXPREFIX}
|
|
|
|
${PERL} -pi -e "s@^\.Dq Pa /etc@.Dq Pa ${PREFIX}/etc@g; \
|
|
|
|
s@^\.Pa /etc@.Pa ${PREFIX}/etc@g; \
|
|
|
|
s@^\.It Pa /etc/@.It Pa ${PREFIX}/etc/@g; \
|
|
|
|
s@^\.Ss /etc/@.Ss ${PREFIX}/etc/@g; \
|
|
|
|
s@^\.Sx /etc/@.Sx ${PREFIX}/etc/@g; \
|
|
|
|
s@^\.Bl -tag -width /etc/@.Bl -tag -width ${PREFIX}/etc/@g; \
|
|
|
|
s@${PREFIX}/etc/shells@/etc/shells@g; \
|
|
|
|
s@${PREFIX}/etc/pwd.db@/etc/pwd.db@g" \
|
|
|
|
${WRKSRC}/src/${f}
|
|
|
|
.endfor
|
|
|
|
${PERL} -pi -e \
|
|
|
|
"s@^#define\t_DEFAULT_CONFDIR\t\"/etc\"@#define\t_DEFAULT_CONFDIR\t\"${PREFIX}/etc\"@" \
|
|
|
|
${WRKSRC}/src/pathnames.h
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/ftpd ${PREFIX}/libexec/ftpd
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ftpd.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.5 ${PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ftpusers.5 ${PREFIX}/man/man5
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/lukemftpd
|
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/lukemftpd/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO} "================================================================================"
|
|
|
|
@${ECHO} "This port relies on a number of configuration files in ${PREFIX}/etc."
|
|
|
|
@${ECHO} "At the very least, create a ftpusers file with the usernams of users you don't"
|
|
|
|
@${ECHO} "want to connect (root, toor, etc.). This will allow non-listed users to log in."
|
|
|
|
@${ECHO} "Copying /etc/ftpusers to ${PREFIX}/etc/ftpusers should be sufficient."
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "See the man files for more information. The man- and configuration files for"
|
|
|
|
@${ECHO} "FreeBSD's built-in ftpd can also be of use as examples/additional info."
|
|
|
|
@${ECHO} "================================================================================"
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|