aboutsummaryrefslogtreecommitdiff
path: root/www/nostromo/Makefile
blob: 3c63cb7c3f30653743f8c2b3f96e1b4e5cba7603 (plain) (blame)
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
53
54
55
# New ports collection makefile for:	nostromo
# Date created:		20 Mar 2011
# Whom:			Adrian Steinmann <ast@marabu.ch>
#
# $FreeBSD$
#

PORTNAME=	nostromo
PORTVERSION=	1.9.4
CATEGORIES=	www ipv6
MASTER_SITES=	http://www.nazgul.ch/dev/

MAINTAINER=	ast@marabu.ch
COMMENT=	A fast, secure HTTP/1.1 CGI/1.1 SSL IPv4/IPv6 webserver

LICENSE=	BSD

NOSTROMO_DIR?=		${PREFIX}/nostromo
NOSTROMO_LOGDIR?=	${NOSTROMO_DIR}/logs
NOSTROMO_LOGDIR_PERMS?=	0775

USE_RC_SUBR=	nostromo.sh

MAN8=		nhttpd.8

MAKE_ENV?=	MAKEOBJDIR=. PREFIX=${PREFIX} NOSTROMO_DIR=${NOSTROMO_DIR}

post-extract:
	@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \
		${WRKSRC}/src/nhttpd/nhttpd.8
	@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \
		${WRKSRC}/src/nhttpd/main.c
	@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \
		${WRKSRC}/conf/nhttpd.conf-dist

do-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/src/nhttpd/nhttpd ${PREFIX}/sbin
	@${INSTALL_SCRIPT} ${WRKSRC}/src/tools/crypt ${PREFIX}/sbin
	@${INSTALL_MAN} ${WRKSRC}/src/nhttpd/nhttpd.8 ${PREFIX}/man/man8
	@${MKDIR} ${NOSTROMO_DIR}
	@${MKDIR} ${NOSTROMO_DIR}/conf
	@${MKDIR} -m ${NOSTROMO_LOGDIR_PERMS} -p ${NOSTROMO_LOGDIR}
	@${INSTALL_DATA} ${WRKSRC}/conf/mimes ${NOSTROMO_DIR}/conf
	@${INSTALL_DATA} ${WRKSRC}/conf/nhttpd.conf-dist ${NOSTROMO_DIR}/conf
	@${MKDIR} ${NOSTROMO_DIR}/htdocs
	@${INSTALL_DATA} ${WRKSRC}/htdocs/index.html ${NOSTROMO_DIR}/htdocs
	@${INSTALL_DATA} ${WRKSRC}/htdocs/nostromo.gif ${NOSTROMO_DIR}/htdocs
	@${MKDIR} ${NOSTROMO_DIR}/htdocs/cgi-bin
	@${INSTALL_SCRIPT} ${WRKSRC}/htdocs/cgi-bin/printenv \
		${NOSTROMO_DIR}/htdocs/cgi-bin
	@${MKDIR} ${NOSTROMO_DIR}/icons
	@${INSTALL_DATA} ${WRKSRC}/icons/dir.gif ${NOSTROMO_DIR}/icons
	@${INSTALL_DATA} ${WRKSRC}/icons/file.gif ${NOSTROMO_DIR}/icons

.include <bsd.port.mk>