aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/daedalus/Makefile
blob: 164bf9ba32791213fb41a327674f8e85c4d0b613 (plain) (blame)
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
# New ports collection makefile for:    daedalus
# Date created:             16 June 2004
# Whom:                 Kelley Reynolds <kelley@insidesystems.net>
#
# $FreeBSD$
#

PORTNAME=   daedalus
PORTVERSION=    1.1
CATEGORIES= sysutils
MASTER_SITES=   ftp://ftp.verbotenplanet.net/daedalus/

MAINTAINER= kelley@insidesystems.net
COMMENT=    Flexible process monitor/restart daemon written in ruby

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_RUBY=   yes
USE_RUBY_FEATURES=  1.8

NO_BUILD=   yes

USE_RC_SUBR=    yes
SED_SCRIPT= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
        -e 's,%%PREFIX%%,${PREFIX},g' \
        -e 's,%%RUBY_WITHOUT_SUFFIX%%,${RUBY_WITHOUT_SUFFIX},g'

pre-install:
    @${SED} ${SED_SCRIPT} ${FILESDIR}/${PORTNAME}.sh >${WRKDIR}/${PORTNAME}.sh

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/daedalus.rb ${PREFIX}/bin/daedalus.rb
    ${INSTALL_DATA} ${WRKSRC}/examples/daedalus.conf ${PREFIX}/etc/daedalus.conf.sample
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d/${PORTNAME}.sh

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>