summaryrefslogtreecommitdiff
path: root/www/lighttpd/Makefile
blob: 204d3a2bfc3b6085de3868d380ce36dc529bfcfc (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
53
54
# $NetBSD: Makefile,v 1.27 2011/07/14 19:59:45 adam Exp $

DISTNAME=	lighttpd-1.4.29
CATEGORIES=	www
MASTER_SITES=	http://download.lighttpd.net/lighttpd/releases-1.4.x/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	joerg@NetBSD.org
HOMEPAGE=	http://www.lighttpd.net/
COMMENT=	Fast, light-footprint HTTP server
LICENSE=	modified-bsd

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LIBTOOL=		yes
SHLIBTOOL_OVERRIDE=	# empty
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--libdir=${PREFIX}/lib/${PKGBASE}
CONFIGURE_ARGS+=	--with-pcre

DOCDIR=			${PREFIX}/share/doc/${PKGBASE}
EGDIR=			${PREFIX}/share/examples/${PKGBASE}
PKG_SYSCONFSUBDIR=	${PKGBASE}
RCD_SCRIPTS=		lighttpd

.include "options.mk"

CNFS_cmd=		${SED} -ne "s,^share/examples/lighttpd/,,p" PLIST
CNFS=			${CNFS_cmd:sh}
.for file in ${CNFS}
CONF_FILES+=		${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/${file:Q}
.endfor

INSTALLATION_DIRS=	${DOCDIR} ${EGDIR} ${EGDIR}/conf.d ${EGDIR}/vhosts.d
OWN_DIRS=		${PKG_SYSCONFDIR}/conf.d
OWN_DIRS+=		${PKG_SYSCONFDIR}/vhosts.d

post-install:
	set -e; cd ${WRKSRC}/doc;				\
	for f in *.css outdated/*.dot outdated/*.txt; do	\
		${INSTALL_DATA} $$f ${DESTDIR}${DOCDIR};	\
	done;							\
	for f in config/*.conf scripts/*.sh; do			\
		${INSTALL_DATA} $$f ${DESTDIR}${EGDIR};		\
	done;							\
	for f in config/conf.d/*.conf config/conf.d/mod.*; do	\
		${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}/conf.d;	\
	done;							\
	${INSTALL_DATA} config/vhosts.d/*.template ${DESTDIR}${EGDIR}/vhosts.d

.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"