openbsd-ports/databases/mysql-zrm/Makefile
sthen 4645949639 import mysql-zrm:
Zmanda recovery manager for MySQL (MySQL ZRM) is a backup and
recovery manager for MySQL database server. It also provides backup
scheduling and reporting features.

It supports backup of MySQL databases/tables using various methods
(both running on same machine as the MySQL server as well as on a
remote machine).

From maintainer Giovanni Bechis, thanks!
2008-10-17 23:05:41 +00:00

52 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/10/17 23:05:41 sthen Exp $
COMMENT = MySQL backup scripts
DISTNAME = MySQL-zrm-2.0
PKGNAME = ${DISTNAME:L}
CATEGORIES = databases perl5
HOMEPAGE = http://www.zmanda.com/
MAINTAINER = Giovanni Bechis <g.bechis@snb.it>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://www.zmanda.com/downloads/community/ZRM-MySQL/2.0/Source/
RUN_DEPENDS = ::archivers/gtar \
::databases/p5-DBD-mysql \
::security/gnupg \
::textproc/p5-XML-Parser
NO_BUILD = Yes
NO_REGRESS = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/usr/bin/mysql-zrm
${SUBST_CMD} ${WRKSRC}/etc/mysql-zrm/mysql-zrm.conf
@perl -pi -e 's,/usr/lib,${PREFIX}/lib,g;' \
-e 's,/usr/bin/mysql-,${PREFIX}/bin/mysql-,g;' \
-e 's,/usr/bin/zrm-,${PREFIX}/bin/zrm-,g;' \
${WRKSRC}/usr/bin/mysql-zrm-*
do-install:
@find ${WRKSRC} \( -name "*.bak" -o -name "*.orig" \) -exec rm -f {} \;
${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/* ${PREFIX}/bin/
cd ${WRKSRC}/usr/lib; \
tar cf - mysql-zrm | tar xf - -C ${PREFIX}/lib/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mysql-zrm/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mysql-zrm/plugins/
${INSTALL_SCRIPT} ${WRKSRC}/usr/share/mysql-zrm/plugins/*.pl ${PREFIX}/share/examples/mysql-zrm/plugins/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mysql-zrm/
${INSTALL_DATA} ${WRKSRC}/usr/share/doc/${DISTNAME}/README-* ${PREFIX}/share/doc/mysql-zrm/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mysql-zrm/
${INSTALL_DATA} ${WRKSRC}/etc/mysql-zrm/* ${PREFIX}/share/examples/mysql-zrm/
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/* ${PREFIX}/man/cat1/
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man5/* ${PREFIX}/man/cat5/
.include <bsd.port.mk>