summaryrefslogtreecommitdiff
path: root/net/publicfile-run/Makefile
blob: e474a044604254f020f4bc6d0ac655791d2b8e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.3 2018/07/04 13:40:30 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=	pre-configure
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"