View | Details | Raw Unified | Return to bug 120107
Collapse All | Expand All

(-)Makefile (-18 / +34 lines)
Lines 6-53 Link Here
6
#
6
#
7
7
8
PORTNAME=	hiawatha
8
PORTNAME=	hiawatha
9
PORTVERSION=	6.0
9
PORTVERSION=	6.3
10
CATEGORIES=	www
10
CATEGORIES=	www
11
MASTER_SITES=	http://hiawatha.leisink.org/files/
11
MASTER_SITES=	http://hiawatha.leisink.org/files/
12
12
13
MAINTAINER=	hugo@leisink.net
13
MAINTAINER=	hugo@leisink.net
14
COMMENT=	An advanced and secure webserver for Unix
14
COMMENT=	An advanced and secure webserver for Unix
15
15
16
MAN1=		hiawatha.1 cgi-wrapper.1 php-fcgi.1 wigwam.1 newroot.1
16
DOCS=		AUTHORS COPYING ChangeLog INSTALL
17
EXAMPLES=	hiawatha mkcert newroot php-fcgi
18
CONFIG_FILES=	httpd.conf mimetype.conf cgi-wrapper.conf php-fcgi.conf
19
MAN1=		cgi-wrapper.1 hiawatha.1 newroot.1 php-fcgi.1 wigwam.1
17
MANCOMPRESSED=	no
20
MANCOMPRESSED=	no
18
21
19
USE_RC_SUBR=	hiawatha
22
USE_RC_SUBR=	hiawatha.sh
20
SUB_FILES=	pkg-message
23
SUB_FILES=	pkg-message
21
24
22
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
23
CONFIGURE_ARGS=	--localstatedir=/var webrootdir=${PREFIX}/www/hiawatha
26
CONFIGURE_ARGS=	--localstatedir=/var webrootdir=${WWWDIR}
24
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
27
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
25
28
26
OPTIONS=	SSL "Support for Secure Sockets Layer (SSL)?" On
29
OPTIONS=	SSL "Support for Secure Sockets Layer (SSL)" On \
27
OPTIONS+=	CACHE "Internal file caching support?" On
30
		CACHE "Internal file caching support" On \
28
OPTIONS+=	COMMAND "Enable the Hiawatha CommandChannel?" Off
31
		REWRITE "Enable URL rewriting" On \
29
32
		COMMAND "Enable the Hiawatha CommandChannel" Off \
30
CONFIG_FILES=	httpd.conf mimetype.conf cgi-wrapper.conf php-fcgi.conf
33
		IPV6 "Enable IPv6 Support" Off
31
34
32
.include <bsd.port.pre.mk>
35
.include <bsd.port.pre.mk>
33
36
34
.if defined(WITHOUT_SSL)
37
.if !defined(WITH_SSL)
35
CONFIGURE_ARGS+=--disable-ssl
38
CONFIGURE_ARGS+=	--disable-ssl
39
.endif
40
41
.if !defined(WITH_CACHE)
42
CONFIGURE_ARGS+=	--disable-cache
36
.endif
43
.endif
37
44
38
.if defined(WITHOUT_CACHE)
45
.if !defined(WITH_REWRITE)
39
CONFIGURE_ARGS+=--disable-cache
46
CONFIGURE_ARGS+=	--disable-rewrite
40
.endif
47
.endif
41
48
42
.if defined(WITH_COMMAND)
49
.if defined(WITH_COMMAND)
43
CONFIGURE_ARGS+=--enable-command
50
CONFIGURE_ARGS+=	--enable-command
51
.endif
52
53
.if !defined(WITH_IPV6)
54
CONFIGURE_ARGS+=	--disable-ipv6
44
.endif
55
.endif
45
56
46
post-install:
57
post-install:
47
	@for file in ${CONFIG_FILES} ; do \
58
.if !defined(NOPORTDOCS)
48
	    ${CP} -f ${WRKSRC}/etc/hiawatha/$${file} ${PREFIX}/etc/hiawatha/$${file}.sample ; \
59
	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} ${ETCDIR}
49
	done
60
	@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
50
	${CP} -f ${WRKSRC}/doc/index.html ${PREFIX}/www/hiawatha/index.html.sample
61
	@${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/extra/,} ${EXAMPLESDIR}/
62
.endif
63
	@${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/doc/,} ${MAN1PREFIX}/man/man1
64
	@${INSTALL_DATA} ${CONFIG_FILES:S,^,${WRKSRC}/etc/${PORTNAME}/,} ${ETCDIR}
65
	@${MKDIR} ${WWWDIR}
66
	@${CP} -f ${WRKSRC}/doc/index.html ${WWWDIR}
51
	@${CAT} ${PKGMESSAGE}
67
	@${CAT} ${PKGMESSAGE}
52
68
53
.include <bsd.port.post.mk>
69
.include <bsd.port.post.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (hiawatha-6.0.tar.gz) = db22a3c6737e8ad2047c1fd874b06650
1
MD5 (hiawatha-6.3.tar.gz) = 0547687b3618067864abc628407cf94e
2
SHA256 (hiawatha-6.0.tar.gz) = e5387393f614a39f3eb6269474a1b2fac8d2414d892c3ca3932efb5a9f1097ff
2
SHA256 (hiawatha-6.3.tar.gz) = c5e713fa01e3ee92dee917f4d54306d71ebb9bdee7991e0113cfe79abbf14fcd
3
SIZE (hiawatha-6.0.tar.gz) = 229687
3
SIZE (hiawatha-6.3.tar.gz) = 231771
(-)pkg-plist (-15 / +20 lines)
Lines 1-17 Link Here
1
sbin/hiawatha
2
sbin/cgi-wrapper
1
sbin/cgi-wrapper
3
sbin/wigwam
2
sbin/hiawatha
4
sbin/php-fcgi
5
sbin/newroot
3
sbin/newroot
6
@unexec if cmp -s %D/etc/hiawatha/httpd.conf %D/etc/hiawatha/httpd.conf.sample; then rm -f %D/etc/hiawatha/httpd.conf; fi
4
sbin/php-fcgi
7
@unexec if cmp -s %D/etc/hiawatha/mimetype.conf %D/etc/hiawatha/mimetype.conf.sample; then rm -f %D/etc/hiawatha/mimetype.conf; fi
5
sbin/wigwam
8
@unexec if cmp -s %D/etc/hiawatha/cgi-wrapper.conf %D/etc/hiawatha/cgi-wrapper.conf.sample; then rm -f %D/etc/hiawatha/cgi-wrapper.conf; fi
6
%%ETCDIR%%/cgi-wrapper.conf
9
@unexec if cmp -s %D/etc/hiawatha/php-fcgi.conf %D/etc/hiawatha/php-fcgi.conf.sample; then rm -f %D/etc/hiawatha/php-fcgi.conf; fi
7
%%ETCDIR%%/httpd.conf
10
etc/hiawatha/httpd.conf.sample
8
%%ETCDIR%%/mimetype.conf
11
etc/hiawatha/mimetype.conf.sample
9
%%ETCDIR%%/php-fcgi.conf
12
etc/hiawatha/cgi-wrapper.conf.sample
10
%%WWWDIR%%/index.html
13
etc/hiawatha/php-fcgi.conf.sample
11
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
14
@dirrm etc/hiawatha
12
%%PORTDOCS%%%%DOCSDIR%%/COPYING
15
@unexec if cmp -s %D/www/hiawatha/index.html %D/www/hiawatha/index.html.sample; then rm -f %D/www/hiawatha/index.html; fi
13
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
16
www/hiawatha/index.html.sample
14
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
17
@dirrm www/hiawatha
15
%%PORTDOCS%%%%EXAMPLESDIR%%/hiawatha
16
%%PORTDOCS%%%%EXAMPLESDIR%%/mkcert
17
%%PORTDOCS%%%%EXAMPLESDIR%%/newroot
18
%%PORTDOCS%%%%EXAMPLESDIR%%/php-fcgi
19
@dirrm %%ETCDIR%%
20
@dirrm %%WWWDIR%%
21
%%PORTDOCS%%@dirrm %%DOCSDIR%%
22
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
(-)files/hiawatha.in (-22 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/www/hiawatha/files/hiawatha.in,v 1.1 2006/12/03 20:56:24 itetcu Exp $
4
#
5
6
# PROVIDE: httpd
7
# REQUIRE: NETWORKING SERVERS
8
# BEFORE: DAEMON
9
10
# Add the following line(s) to /etc/rc.conf:
11
# hiawatha_enable (bool): Set to "NO" by default, set it to "YES" to enable hiawatha
12
13
. %%RC_SUBR%%
14
15
name="hiawatha"
16
rcvar=`set_rcvar`
17
command="%%PREFIX%%/sbin/${name}"
18
pidfile="/var/run/${name}.pid"
19
20
load_rc_config $name
21
: ${hiawatha_enable="NO"}
22
run_rc_command "$1"
(-)files/hiawatha.sh.in (+23 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: httpd
7
# REQUIRE: NETWORKING SERVERS
8
# BEFORE: DAEMON
9
10
# Add the following line(s) to /etc/rc.conf:
11
# hiawatha_enable (bool): Set to "NO" by default.
12
#			  Set it to "YES" to enable hiawatha.
13
14
. %%RC_SUBR%%
15
16
name="hiawatha"
17
rcvar=`set_rcvar`
18
command="%%PREFIX%%/sbin/${name}"
19
pidfile="/var/run/${name}.pid"
20
21
load_rc_config $name
22
: ${hiawatha_enable="NO"}
23
run_rc_command "$1"
(-)files/pkg-message.in (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
The Hiawatha webserver is now installed.
3
The Hiawatha webserver is now installed.
4
4
5
Edit the configuration files in %%PREFIX%%/etc/hiawatha to suit your needs.
5
Edit the configuration files in %%ETCDIRX%% to suit your needs.
6
6
7
Add hiawatha_enable="YES" to rc.conf and start Hiawatha by running:
7
Add hiawatha_enable="YES" to rc.conf and start Hiawatha by running:
8
%%PREFIX%%/etc/rc.d/hiawatha.sh start
8
%%PREFIX%%/etc/rc.d/hiawatha.sh start

Return to bug 120107