summaryrefslogtreecommitdiff
path: root/www/squirm/Makefile
blob: e5a6aee3b7453f97a2c730e0a5cf97db1ed8a715 (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
# $NetBSD: Makefile,v 1.2 2007/07/04 20:55:06 jlam Exp $
#

DISTNAME=		squirm-1.0betaB
CATEGORIES=		www
MASTER_SITES=		http://squirm.foote.com.au/

MAINTAINER=		rillig@NetBSD.org
HOMEPAGE=		http://squirm.foote.com.au/
COMMENT=		Redirector for the Squid Internet Object Cache

USE_TOOLS+=		gmake
GNU_CONFIGURE=		yes
CONFIGURE_DIRS=		regex-0.12
BUILD_DIRS=		regex-0.12 .

.include "../../mk/bsd.prefs.mk"

SQUID_USER?=		squid
SQUID_GROUP?=		squid
PKG_USERS+=		${SQUID_USER}:${SQUID_GROUP}
PKG_GROUPS+=		${SQUID_GROUP}
PKG_USERS_VARS+=	SQUID_USER
PKG_GROUPS_VARS+=	SQUID_GROUP
BUILD_DEFS+=		VARBASE

PKG_SYSCONFSUBDIR=	squirm
EGDIR=			${PREFIX}/share/examples/squirm
INSTALLATION_DIRS=	bin ${EGDIR}
OWN_DIRS_PERMS=		${VARBASE}/log/squirm ${SQUID_USER} ${SQUID_GROUP} ${PKGDIRMODE}
CONF_FILES=		${EGDIR}/squirm.local.dist ${PKG_SYSCONFDIR}/squirm.local.dist
CONF_FILES+=		${EGDIR}/squirm.patterns.dist ${PKG_SYSCONFDIR}/squirm.patterns.dist

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/squirm ${PREFIX}/bin/
	cd ${WRKSRC} && ${INSTALL_DATA} squirm.local.dist squirm.patterns.dist ${EGDIR}/

.include "../../mk/bsd.pkg.mk"