mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
82a87de90c
Mk/Uses/linux.mk. - Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with USES+=linux:\1 in all ports. - Replace USE_LINUX_APPS with USE_LINUX in all ports. - Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some ports. - When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY are defined. - Remove BRANDELF_DIRS and BRANDELF_FILES handling. In the very rare cases that it is still necessary ports can run ${BRANDELF} from post-patch. - Remove AUTOMATIC_PLIST handling. Only one port used it. - Fix Linux MASTER_SITES. - Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with default versions framework. - bsd.port.mk: - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX. - Put USE_LINUX_PREFIX handling after USES processing. - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can give these variables a different default value. - When a package needs to run Linux ldconfig check before installation if Linux support is enabled. - emulators/linux_base-*: - Use USES=linux and remove duplication. - Remove files/lp. FreeBSD or CUPS lp(1) should work. - Remove files/yp.conf. No longer seems to be used. - Remove pkg-deinstall and move pkg-install into pkg-plist. - Update pkg-descr and pkg-message. - Fix handling of ldconfig cache in pkg-plist. - devel/fb-adb: Use a Linux shell to run a Linux script but patch the script to use FreeBSD mkdir so mkdir -p $path creates $path and not /compat/linux/$path. PR: 211645 Exp-run by: antoine Approved by: portmgr (antoine)
66 lines
2.1 KiB
Makefile
66 lines
2.1 KiB
Makefile
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spideroak
|
|
PORTVERSION= 6.0
|
|
PORTREVISION= 0
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://nivit.altervista.org/FreeBSD/ports/distfiles/${PORTNAME}/ \
|
|
https://spideroak.com/getbuild?platform=slackware&arch=i386&dummy=/
|
|
DISTNAME= SpiderOak-${PORTVERSION}-i686-1
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= SpiderOak Client (Linux version)
|
|
|
|
LICENSE= TOU
|
|
LICENSE_NAME= Terms Of Use
|
|
LICENSE_TEXT= http://spideroak.com/terms_of_use
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= binary distribution
|
|
OPTIONS_DEFINE= DOCS MANPAGES
|
|
OPTIONS_DEFAULT= MANPAGES
|
|
OPTIONS_SUB= yes
|
|
|
|
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,} \
|
|
BINMODE=${BINMODE}
|
|
|
|
SUB_LIST= LINUXBASE=${LINUXBASE}
|
|
SUB_FILES= pkg-message
|
|
|
|
USES= desktop-file-utils linux python:2 tar:tgz
|
|
USE_LINUX= xorglibs
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},1' \
|
|
-e 's,%%DATADIR%%,${DATADIR},1' \
|
|
${WRKSRC}/usr/share/applications/SpiderOakONE.desktop \
|
|
${WRKSRC}/usr/bin/SpiderOakONE
|
|
|
|
do-install:
|
|
@(cd ${WRKSRC}/etc && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/etc/)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@(cd ${WRKSRC}/opt/SpiderOakONE/lib && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "-not -name SpiderOak")
|
|
${INSTALL_PROGRAM} ${WRKSRC}/opt/SpiderOakONE/lib/SpiderOakONE ${STAGEDIR}${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/SpiderOakONE ${STAGEDIR}${PREFIX}/bin/SpiderOakONE
|
|
${LN} -sf SpiderOakONE ${STAGEDIR}${PREFIX}/bin/spideroak
|
|
${LOCALBASE}/bin/desktop-file-install \
|
|
--mode=${SHAREMODE} --dir=${STAGEDIR}${DESKTOPDIR} \
|
|
${WRKSRC}/usr/share/applications/SpiderOakONE.desktop
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/usr/share/doc/SpiderOakONE/Getting\ Started\ Guide.pdf ${STAGEDIR}${DOCSDIR}
|
|
.if ${PORT_OPTIONS:MMANPAGES}
|
|
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/SpiderOakONE.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/
|
|
.endif
|
|
${INSTALL_DATA} ${WRKSRC}/usr/share/pixmaps/*.png ${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
.include <bsd.port.mk>
|