summaryrefslogtreecommitdiff
path: root/www/squirm/Makefile
blob: e30968342f327816f845c0a325349705a407de7f (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
# $NetBSD: Makefile,v 1.1.1.1 2006/10/02 17:12:19 rillig 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}
BUILD_DEFS+=		SQUID_USER SQUID_GROUP 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"