1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/sysutils/linux-crashplan/Makefile
William Grzybowski 6d27e432e0 sysutils/linux-crashplan: update to 3.6.3
PR:		ports/186951
Submitted by:	Nuno Subtil <subtil at gmail com>
2014-05-24 14:00:47 +00:00

49 lines
1.8 KiB
Makefile

# Created by: William Grzybowski <wg@FreeBSD.org>
# $FreeBSD$
PORTNAME= linux-crashplan
DISTVERSION= 3.6.3
CATEGORIES= sysutils linux
MASTER_SITES= http://download.crashplan.com/installs/linux/install/CrashPlan/
DISTNAME= CrashPlan_3.6.3_Linux
EXTRACT_SUFX= .tgz
MAINTAINER= wg@FreeBSD.org
COMMENT= Backs up data to remote servers or hard drives
RUN_DEPENDS= linux-sun-jre>=0:${PORTSDIR}/java/linux-sun-jre17 \
bash>=0:${PORTSDIR}/shells/bash
WRKSRC= ${WRKDIR}/CrashPlan-install
USE_LINUX= yes
USE_LINUX_APPS= expat fontconfig xorglibs
USE_RC_SUBR= crashplan
USES= shebangfix
SHEBANG_FILES= scripts/CrashPlanEngine scripts/CrashPlanDesktop
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
CRASHDIR= ${PREFIX}/share/crashplan
post-patch:
@${REINPLACE_CMD} 's/SRV_JAVA_OPTS="/SRV_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider /' ${WRKSRC}/scripts/run.conf
@${REINPLACE_CMD} 's/GUI_JAVA_OPTS="/GUI_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider /' ${WRKSRC}/scripts/run.conf
do-install:
@${MKDIR} ${STAGEDIR}${CRASHDIR}
cd ${STAGEDIR}${CRASHDIR} && ${CAT} ${WRKSRC}/CrashPlan_${DISTVERSION}.cpi | ${GZIP_CMD} -d -c - | ${CPIO} -i --no-preserve-owner
${INSTALL_SCRIPT} ${WRKSRC}/scripts/CrashPlanDesktop ${STAGEDIR}${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/scripts/CrashPlanEngine ${STAGEDIR}${CRASHDIR}/bin/
${CP} ${WRKSRC}/scripts/run.conf ${STAGEDIR}${CRASHDIR}/bin/
${ECHO_CMD} > ${STAGEDIR}${CRASHDIR}/install.vars
${ECHO_CMD} "TARGETDIR=${CRASHDIR}" >> ${STAGEDIR}${CRASHDIR}/install.vars
${ECHO_CMD} "BINSDIR=${CRASHDIR}/bin" >> ${STAGEDIR}${CRASHDIR}/install.vars
${ECHO_CMD} "JAVACOMMON=${LOCALBASE}/linux-sun-jre1.6.0/bin/java" >> ${STAGEDIR}${CRASHDIR}/install.vars
${CAT} ${WRKSRC}/install.defaults >> ${STAGEDIR}${CRASHDIR}/install.vars
.include <bsd.port.mk>