summaryrefslogtreecommitdiff
path: root/net/smb2www/Makefile
blob: 38c64b8333f4e723db80aa4ee7c1b5f4a65fa69e (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
55
# $NetBSD: Makefile,v 1.4 2001/11/21 17:25:13 jlam Exp $
#

DISTNAME=	smb2www-980804
CATEGORIES=	net
MASTER_SITES=	http://us1.samba.org/samba/smb2www/ \
		http://www.samba.org/samba/smb2www/

MAINTAINER=	hubertf@netbsd.org
HOMEPAGE=	http://www.samba.org/samba/smb2www/
COMMENT=	Gateway to Windows networking

DEPENDS+=	p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64
DEPENDS+=	samba<2.2.0:../../net/samba
DEPENDS+=	apache{,6}-[0-9]*:../../www/apache

WRKSRC=		${WRKDIR}

SMB2WWW_MASTER_BROWSER_SERVER?=		# set for non-empty
APACHE_USER?=	nobody
DESCR_SRC=	${WRKSRC}/.DESCRX
NO_BUILD=	yes

pre-install:
		if [ -d ${PREFIX}/libexec/smb2www ]; then \
			${ECHO} "" ; \
			${ECHO} "----------------------------------------------" ; \
			${ECHO} "Please remove ${PREFIX}/libexec/smb2www first!" ; \
			${ECHO} "----------------------------------------------" ; \
			${ECHO} "" ; \
			exit 1 ; \
		fi

do-install:
		cd ${WRKSRC} ; \
		( \
		${ECHO} "" ; \
		${ECHO} "${APACHE_USER}" ; \
		${ECHO} "nobody" ; \
		${ECHO} "${PREFIX}/libexec/smb2www" ; \
		${ECHO} "${LOCALBASE}/bin" ; \
		${ECHO} "${LOCALBASE}/bin/perl" ; \
		${ECHO} "${SMB2WWW_MASTER_BROWSER_SERVER}" ; \
		${ECHO} "english" ; \
		${ECHO} "/smb2www/images" ; \
		${ECHO} "/smb2www" ; \
		${ECHO} "${LOCALBASE}/etc/httpd" ; \
		) | perl Install.pl

post-install:
		${SED} \
			's,@PREFIX@,${PREFIX},' \
			<${PKGDIR}/DESCR >${DESCR_SRC}

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