summaryrefslogtreecommitdiff
path: root/databases/automysqlbackup/Makefile
blob: 77e6489f7395592ebb412b88080ad2880224238f (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
PORTNAME=	automysqlbackup
DISTVERSIONPREFIX=	v
DISTVERSION=	3.0_rc6
CATEGORIES=	databases
MASTER_SITES=	SF/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0

MAINTAINER=	me@cschwarz.com
COMMENT=	Automatic MySQL Backup Tool

LICENSE=	GPLv2

RUN_DEPENDS=	${LOCALBASE}/bin/bash:shells/bash

NO_BUILD=	yes

NO_WRKSUBDIR=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|' \
		${WRKSRC}/automysqlbackup

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/automysqlbackup	${STAGEDIR}${PREFIX}/bin
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README		${STAGEDIR}${DOCSDIR}/
	${MKDIR} ${STAGEDIR}${ETCDIR}
	${INSTALL_DATA} ${WRKSRC}/automysqlbackup.conf	${STAGEDIR}${ETCDIR}/automysqlbackup.conf.sample

post-install:
	${MKDIR} ${STAGEDIR}/var/backups/automysqlbackup

.include <bsd.port.mk>