This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
/
Makefile
74 lines (62 loc) · 2.19 KB
/
Makefile
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# New ports collection makefile for: webistrano
# Date created: 27 June 2009
# Whom: Till Klampaeckel <till@php.net>
#
# $FreeBSD: $
#
PORTNAME= webistrano
PORTVERSION= 1.4
CATEGORIES= www devel
MASTER_SITES= http://labs.peritor.com/webistrano/attachment/wiki/Download
EXTRACT_SUFX= .zip?format=raw
DISTFILES= ${PORTNAME}-${PORTVERSION}.zip
WRKSRC= ${WRKDIR}/${PORTVERSION}
MAINTAINER= till@php.net
COMMENT= A web frontend to capistrano.
RUN_DEPENDS= rubygem-capistrano>=2.4.3:${PORTSDIR}/sysutils/rubygem-capistrano \
rubygem-mocha>=0.9.5:${PORTSDIR}/devel/rubygem-mocha \
rubygem-net-scp>=1.0.1:${PORTSDIR}/security/rubygem-net-scp \
rubygem-net-sftp>=2.0.1:${PORTSDIR}/security/rubygem-net-sftp \
rubygem-net-ssh>=2.0.2:${PORTSDIR}/security/rubygem-net-ssh \
rubygem-net-ssh-gateway>=1.0.0:${PORTSDIR}/security/rubygem-net-ssh-gateway \
rubygem-open4>=0.9.6:${PORTSDIR}/devel/rubygem-open4 \
rubygem-syntax>=1.0.0:${PORTSDIR}/textproc/rubygem-syntax \
rubygem-thin>=1.2.2:${PORTSDIR}/www/rubygem-thin
OPTIONS= MYSQL "Use MySQL" on \
PGSQL "Use PostgreSQL" off \
SQLITE "Use SQLite" off
.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE)
IGNORE= needs a database backend
.endif
WEBISTRANO_VARDIR?= /var
WEBISTRANO_LOGDIR?= ${WEBISTRANO_VARDIR}/log/webistrano
WEBISTRANO_RUNDIR?= ${WEBISTRANO_VARDIR}/run/webistrano
WEBISTRANO_USER?= ${WWWOWN}
USE_RC_SUBR= webistrano
USE_ZIP= yes
RUBY_VERSION= 1.8.4
USE_RUBY= yes
USE_RAKE= yes
NO_BUILD= yes
PUBLIC_DIR= public
DELETE_PLUGINS= capistrano-2.4.3 capistrano-2.5.0 \
highline-1.4.0 mocha-0.4.0 \
net-scp-1.0.1 net-sftp-2.0.1 \
net-ssh-2.0.2 net-ssh-gateway-1.0.0 \
open4-0.9.3 syntax-1.0.0
do-fetch:
.if !exists(${DISTDIR}/${DISTNAME}.zip)
${FETCH_CMD} -o ${DISTDIR}/${DISTNAME}.zip ${MASTER_SITES}/${DISTNAME}${EXTRACT_SUFX}
.endif
do-install:
.for x in ${DELETE_PLUGINS}
-${RM} -rf ${WRKSRC}/vendor/plugins/${x}
.endfor
${MKDIR} ${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${CAT} ${PKGMESSAGE}
post-install:
${MKDIR} ${WEBISTRANO_LOGDIR} ${WEBISTRANO_RUNDIR}
@${CHOWN} ${WEBISTRANO_USER} ${WEBISTRANO_LOGDIR} ${WEBISTRANO_RUNDIR}
.include <bsd.port.mk>