The find-prefix infrastructure was required in a pkgviews world where packages installed from pkgsrc could have different installation prefixes, and this was a way for a dependency prefix to be determined. Now that pkgviews has been removed there is no longer any need for the overhead of this infrastructure. Instead we use BUILDLINK_PREFIX.pkg for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the dependency is coming from pkgsrc. Provides a reasonable performance win due to the reduction of `pkg_info -qp` calls, some of which were redundant anyway as they were duplicating the same information provided by BUILDLINK_PREFIX.pkg.
16 lines
569 B
Bash
16 lines
569 B
Bash
#!/bin/sh
|
|
|
|
#
|
|
# Executes tcpserver with "pubftpd" as the 0th argument and with a fixed banner
|
|
# appropriate for DJB's publicfile FTP server.
|
|
#
|
|
# The reason for this script, as opposed to invoking tcpserver directly, is
|
|
# that the banner (specified with the -B option) needs to include a trailing
|
|
# carriage-return and newline (\015\012) which is difficult, if not impossible,
|
|
# to specify in a NetBSD rc(8) script because rc(8) uses "eval" to evaluate the
|
|
# constructed command.
|
|
#
|
|
|
|
exec @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver pubftpd \
|
|
-B'220 Features: a p .
|
|
' "$@"
|