pkgsrc/net/publicfile-run/Makefile
jperkin b5a3ccfbce Remove mk/find-prefix.mk usage from the net category.
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.
2015-11-25 12:52:11 +00:00

52 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2015/11/25 12:52:12 jperkin Exp $
DISTNAME= publicfile-run-20150109
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= jlmuir@imca-cat.org
COMMENT= Configures publicfile to serve public files
LICENSE= 2-clause-bsd
DEPENDS+= publicfile>=0.52:../../net/publicfile
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
DEPENDS+= ucspi-tcp-[0-9]*:../../net/ucspi-tcp
WRKSRC= ${WRKDIR}
NO_BUILD= yes
NO_CHECKSUM= yes
REPLACE_SH= libexec-pubftpd
PKG_GROUPS= pubfile
PKG_USERS+= pubftp:pubfile
PKG_USERS+= pubhttp:pubfile
PKG_USERS+= publog:pubfile
RCD_SCRIPTS= pubfile pubftpd pubhttpd
MESSAGE_SUBST+= VARBASE=${VARBASE:Q}
FILES_SUBST+= PKGNAME=${PKGNAME:Q}
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Substituting paths.
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= libexec-pubftpd
SUBST_VARS.paths= PREFIX
BUILD_DEFS+= VARBASE
INSTALLATION_DIRS= libexec share/doc/publicfile-run
.include "../../mk/bsd.prefs.mk"
post-extract:
${CP} ${FILESDIR}/libexec-pubftpd.sh ${WRKSRC}/libexec-pubftpd
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/libexec-pubftpd \
${DESTDIR}${PREFIX}/libexec/pubftpd
${INSTALL_DATA} ${FILESDIR}/README.pkgsrc \
${DESTDIR}${PREFIX}/share/doc/publicfile-run
.include "../../mk/bsd.pkg.mk"