summaryrefslogtreecommitdiff
path: root/www/cvsweb/Makefile
blob: bf16030fc76535f002663740e8378b57991f666b (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
#
# $NetBSD: Makefile,v 1.6 2001/11/25 18:59:49 jlam Exp $
#

DISTNAME=		cvsweb-1.112
CATEGORIES=		net
MASTER_SITES=		http://stud.fh-heilbronn.de/~zeller/download/

MAINTAINER=		kim@tac.nyc.ny.us
HOMEPAGE=		http://stud.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi/
COMMENT=		Web interface for browsing a CVS repository

DEPENDS+=		apache{,6}-[0-9]*:../../www/apache

USE_PERL5=		# defined

WRKSRC=			${WRKDIR}/cvsweb
NO_CONFIGURE=		# defined

DEINSTALL_FILE=		${WRKDIR}/DEINSTALL
INSTALL_FILE=		${WRKDIR}/INSTALL

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

PKG_SYSCONFSUBDIR?=	httpd
EGDIR=			${PREFIX}/share/examples/${PKGBASE}

CONF_FILES=	${EGDIR}/cvsweb.conf.default ${PKG_SYSCONFDIR}/cvsweb.conf

do-build:
	${MV} ${WRKSRC}/cvsweb.cgi ${WRKSRC}/cvsweb.cgi.bak
	${SED}	-e 's,/usr/bin/perl,${PERL5},'				\
		-e 's,/usr/local/web/apache/conf/,${PKG_SYSCONFDIR}/,'	\
	    ${WRKSRC}/cvsweb.cgi.bak > ${WRKSRC}/cvsweb.cgi

do-install:
	${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/cgi-bin
	${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/libexec/cgi-bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cvsweb
	${INSTALL_DATA} ${WRKSRC}/cvsweb.conf \
		${PREFIX}/share/examples/cvsweb/cvsweb.conf.default

post-install:
	PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL

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