1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Rip post-install echo block into standalone pkg-message

- Quiet portlint on RUN_DEPENDS
This commit is contained in:
Pav Lucistnik 2004-01-23 22:56:46 +00:00
parent 6fac5f5979
commit 2056d34e2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=98929
2 changed files with 15 additions and 10 deletions

View File

@ -17,9 +17,10 @@ COMMENT= Enhanced ftp server from NetBSD
USE_REINPLACE= yes
GNU_CONFIGURE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
.if defined(WITH_SOCKS5)
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
CONFIGURE_ARGS+= --with-socks5
.endif
@ -49,6 +50,9 @@ pre-patch:
"s@^#define _DEFAULT_CONFDIR \"/etc\"@#define _DEFAULT_CONFDIR \"${PREFIX}/etc\"@" \
${WRKSRC}/src/pathnames.h
post-build:
@${CAT} pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/src/ftpd.8 ${PREFIX}/man/man8/tnftpd.8
@ -62,14 +66,6 @@ do-install:
.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} "================================================================================"
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

9
ftp/tnftpd/pkg-message Normal file
View File

@ -0,0 +1,9 @@
================================================================================
This port relies on a number of configuration files in %%PREFIX%%/etc.
At the very least, create a ftpusers file with the usernams of users you don't
want to connect (root, toor, etc.). This will allow non-listed users to log in.
Copying /etc/ftpusers to %%PREFIX%%/etc/ftpusers should be sufficient.
See the man files for more information. The man- and configuration files for
FreeBSD's built-in ftpd can also be of use as examples/additional info.
================================================================================