2013-01-22 23:38:25 +01:00
|
|
|
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= spideroak
|
2013-07-08 17:36:39 +02:00
|
|
|
PORTVERSION= 5.0.2
|
2013-01-22 23:38:25 +01:00
|
|
|
#PORTREVISION= 0
|
|
|
|
CATEGORIES= net
|
2013-07-08 17:36:39 +02:00
|
|
|
MASTER_SITES= http://nivit.altervista.org/FreeBSD/ports/distfiles/ \
|
|
|
|
https://spideroak.com/getbuild?platform=slackware&arch=${ARCH:S,amd,x86_,}&dummy=/
|
2013-01-22 23:38:25 +01:00
|
|
|
PKGNAMESUFFIX= -${ARCH}
|
2013-04-29 21:28:58 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-${LINARCH}-1
|
2013-01-22 23:38:25 +01:00
|
|
|
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
|
|
COMMENT= SpiderOak Client (Linux version)
|
|
|
|
|
|
|
|
LICENSE_NAME= ToU
|
|
|
|
LICENSE_TEXT= http://spideroak.com/terms_of_use
|
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
|
|
|
FETCH_ARGS= -Fpr
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
ONLY_FOR_ARCHS_REASON= binary distribution
|
2013-07-08 17:36:39 +02:00
|
|
|
OPTIONS_DEFINE= DOCS MANPAGES
|
2013-01-22 23:38:25 +01:00
|
|
|
OPTIONS_DEFAULT= MANPAGES
|
|
|
|
|
2013-04-29 21:28:58 +02:00
|
|
|
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,} \
|
2013-01-22 23:38:25 +01:00
|
|
|
LINARCH=${LINARCH} \
|
|
|
|
ONLYI386=${ONLYI386}
|
|
|
|
|
|
|
|
REINPLACE_ARGS= -e 's,%%PREFIX%%,${PREFIX},1' \
|
|
|
|
-e 's,%%DATADIR%%,${DATADIR},1' \
|
|
|
|
-i.bak
|
|
|
|
|
2013-09-21 00:10:23 +02:00
|
|
|
NO_STAGE= yes
|
2013-01-22 23:38:25 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMANPAGES}
|
|
|
|
MAN1= SpiderOak.1
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_LINUX= yes
|
|
|
|
USE_LINUX_APPS= xorglibs
|
|
|
|
USE_PYTHON= 2.7
|
2013-04-29 21:28:58 +02:00
|
|
|
USES= desktop-file-utils
|
2013-01-22 23:38:25 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} ${WRKDIR}/usr/share/applications/SpiderOak.desktop \
|
|
|
|
${WRKDIR}/usr/bin/SpiderOak
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKDIR}/etc && \
|
|
|
|
${COPYTREE_SHARE} . ${PREFIX}/etc/
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
cd ${WRKDIR}/opt/SpiderOak/lib && \
|
|
|
|
${COPYTREE_SHARE} . ${DATADIR}
|
|
|
|
${CHMOD} ${BINMODE} ${DATADIR}/SpiderOak ${DATADIR}/inotify_dir_watcher
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/usr/bin/SpiderOak ${PREFIX}/bin/SpiderOak
|
|
|
|
${LN} -s ${PREFIX}/bin/SpiderOak ${PREFIX}/bin/spideroak
|
|
|
|
${LOCALBASE}/bin/desktop-file-install \
|
|
|
|
--mode=${SHAREMODE} --dir=${DESKTOPDIR} \
|
|
|
|
--rebuild-mime-info-cache \
|
|
|
|
${WRKDIR}/usr/share/applications/SpiderOak.desktop
|
2013-07-08 17:36:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/usr/share/doc/SpiderOak/globalsync-linux.pdf ${DOCSDIR}
|
|
|
|
.endif
|
2013-01-22 23:38:25 +01:00
|
|
|
.if ${PORT_OPTIONS:MMANPAGES}
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/usr/share/man/man1/SpiderOak.1.gz ${MANPREFIX}/man/man1/
|
|
|
|
.endif
|
2013-07-08 17:36:39 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/usr/share/pixmaps/*.png ${PREFIX}/share/pixmaps/
|
2013-01-22 23:38:25 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386"
|
2013-04-29 21:28:58 +02:00
|
|
|
LINARCH= i686
|
2013-01-22 23:38:25 +01:00
|
|
|
ONLYI386= ""
|
|
|
|
.else
|
2013-04-29 21:28:58 +02:00
|
|
|
LINARCH= x86_64
|
2013-01-22 23:38:25 +01:00
|
|
|
ONLYI386= "@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|