aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysqldumper/Makefile
blob: a814c1184bacac77f758e261da4b054b0d75b334 (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
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:    mysqldumper
# Date created:             8 January 2011
# Whom:     Marek Holienka  <marekholienka@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   mysqldumper
PORTVERSION=    1.24.2
PORTREVISION=   1
CATEGORIES= databases
MASTER_SITES=   SF/${PORTNAME}/MySQLDumper/
DISTNAME=   MySQLDumper${PORTVERSION}

MAINTAINER= marekholienka@gmail.com
COMMENT=    MySQLDumper is tool for backing up MySQL databases

RUN_DEPENDS=    p5-DBI>=1.48:${PORTSDIR}/databases/p5-DBI \

OPTIONS=    APACHE "Enable Apache Support" on \
        LIGHTTPD "Enable Lighttpd Support" off

USE_ZIP=    yes
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/msd${PORTVERSION}
USE_PHP=    session mysql zlib ftp
USE_MYSQL=  yes
USE_PERL5=  yes
WWWOWN=     www
WWWGRP=     ${WWWOWN}

.include <bsd.port.options.mk>

.if defined(WITH_APACHE)
USE_APACHE= 20+
.endif
.if defined(WITH_LIGHTTPD)
RUN_DEPENDS+=   lighttpd:${PORTSDIR}/www/lighttpd
.endif

do-install:
    @${MKDIR} ${WWWDIR}
    @${CP} -r ${WRKDIR}/msd${PORTVERSION}/ ${WWWDIR}
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}

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

.include <bsd.port.mk>