aboutsummaryrefslogtreecommitdiff
path: root/databases/autobackupmysql/Makefile
blob: 2bf4ae0b8b70f4c7b0553efe593f34f78ada022b (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
PORTNAME=	autobackupmysql
PORTVERSION=	1.4
CATEGORIES=	databases
MASTER_SITES=	SF/${PORTNAME}
DISTNAME=	${PORTNAME}
EXTRACT_SUFX=	.sh

MAINTAINER=	fw@moov.de
COMMENT=	Make daily, weekly, and monthly backups of your MySQL databases
WWW=		https://sourceforge.net/projects/autobackupmysql/

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

NO_BUILD=	yes
PLIST_FILES=	sbin/autobackupmysql.sh

do-extract:
	@${MKDIR} ${WRKSRC}
	@${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
		${WRKSRC}/autobackupmysql.sh
	@${REINPLACE_CMD} -e 's|${LOCALBASE}/etc|${PREFIX}/etc|g' \
		${WRKSRC}/autobackupmysql.sh

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/sbin

.include <bsd.port.mk>