diff options
author | feld <feld@FreeBSD.org> | 2016-06-12 00:06:41 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2016-06-12 00:06:41 +0800 |
commit | 6e2bc179ecc3ac5761c0241db98c8bffcf088e91 (patch) | |
tree | 933125d305794e10e60de942b4297cb16c577cc8 /multimedia | |
parent | d27b13fdc8d430b8f1d61e98d574f3d17f17eedb (diff) | |
download | freebsd-ports-gnome-6e2bc179ecc3ac5761c0241db98c8bffcf088e91.tar.gz freebsd-ports-gnome-6e2bc179ecc3ac5761c0241db98c8bffcf088e91.tar.zst freebsd-ports-gnome-6e2bc179ecc3ac5761c0241db98c8bffcf088e91.zip |
multimedia/plexmediaserver: Improve installation
The installation has been changed to be more amenable to the
master/slave setup between this port and the -plexpass version. The
newest plexpass release has some new files and removed others which was
conflicting with the shared do-install. Instead we will have a simpler
do-install and handle any additional needs in the pkg-plist.
This is not getting a PORTREVISION bump as it is a no-op. The same files
get installed and this version runs just fine. There are two binaries
that aren't getting stripped that were previously stripped in the last
version of this package, but this is of no concern. These files are
being removed in the next major Plex release anyway.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/plexmediaserver/Makefile | 19 | ||||
-rw-r--r-- | multimedia/plexmediaserver/pkg-plist | 8 |
2 files changed, 13 insertions, 14 deletions
diff --git a/multimedia/plexmediaserver/Makefile b/multimedia/plexmediaserver/Makefile index 3f13bb12bb9a..7c09b63b3cc9 100644 --- a/multimedia/plexmediaserver/Makefile +++ b/multimedia/plexmediaserver/Makefile @@ -42,22 +42,13 @@ RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libstdc++.so.6:misc/compat9x post-patch: # binaries don't come pre-stripped - ${FIND} ${WRKSRC}/Resources -name '*.so' -exec ${STRIP_CMD} {} \; - ${STRIP_CMD} ${WRKSRC}/Resources/rsync ${WRKSRC}/Resources/Python/bin/python + ${FIND} ${WRKSRC}/Resources -name '*.so' -exec ${STRIP_CMD} {} \+ + ${STRIP_CMD} ${WRKSRC}/lib* ${WRKSRC}/Resources/Plex* + ${RM} ${WRKSRC}/start.sh do-install: - @(cd ${WRKSRC} && ${COPYTREE_SHARE} Resources ${STAGEDIR}/${DATADIR}) - ${INSTALL_PROGRAM} ${WRKSRC}/Plex\ DLNA\ Server ${STAGEDIR}/${DATADIR} - ${INSTALL_PROGRAM} ${WRKSRC}/Plex\ Media\ Scanner ${STAGEDIR}/${DATADIR} - ${INSTALL_PROGRAM} ${WRKSRC}/Plex\ Media\ Server ${STAGEDIR}/${DATADIR} - ${INSTALL_LIB} ${WRKSRC}/lib* ${STAGEDIR}/${DATADIR} - # Fix permissions to programs and db - @${CHMOD} a+x ${STAGEDIR}/${DATADIR}/Resources/rsync - @${CHMOD} a+x ${STAGEDIR}/${DATADIR}/Resources/Plex\ New\ Transcoder - @${CHMOD} a+x ${STAGEDIR}/${DATADIR}/Resources/Plex\ Transcoder - @${CHMOD} a+x ${STAGEDIR}/${DATADIR}/Resources/Python/bin/python - @${CHMOD} u+w ${STAGEDIR}/${DATADIR}/Resources/com.plexapp.plugins.library.db - # Python fix + (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}) + # Python fix for older releases of Plex @${LN} -s ${DATADIR}/libpython2.7.so.1 ${STAGEDIR}/${DATADIR}/libpython2.7.so # Workaround for space in binary name @${LN} -s ${DATADIR}/Plex\ Media\ Server ${STAGEDIR}${DATADIR}/Plex_Media_Server diff --git a/multimedia/plexmediaserver/pkg-plist b/multimedia/plexmediaserver/pkg-plist index 453ed33f4f2c..ec11705366fc 100644 --- a/multimedia/plexmediaserver/pkg-plist +++ b/multimedia/plexmediaserver/pkg-plist @@ -1,6 +1,8 @@ +@mode 555 %%DATADIR%%/Plex DLNA Server %%DATADIR%%/Plex Media Scanner %%DATADIR%%/Plex Media Server +@mode %%DATADIR%%/Plex_Media_Server %%DATADIR%%/Resources/Fonts/DejaVuSans-Bold.ttf %%DATADIR%%/Resources/Fonts/DejaVuSans-Regular.ttf @@ -60,9 +62,11 @@ %%DATADIR%%/Resources/Graphics/show.png %%DATADIR%%/Resources/Graphics/video.png %%DATADIR%%/Resources/LICENSE +@mode 555 %%DATADIR%%/Resources/Plex New Transcoder %%DATADIR%%/Resources/Plex Relay %%DATADIR%%/Resources/Plex Transcoder +@mode %%DATADIR%%/Resources/Plug-ins-%%PLEX_BUILD%%/Fanart-TV.bundle/Contents/Code/__init__.py %%DATADIR%%/Resources/Plug-ins-%%PLEX_BUILD%%/Fanart-TV.bundle/Contents/DefaultPrefs.json %%DATADIR%%/Resources/Plug-ins-%%PLEX_BUILD%%/Fanart-TV.bundle/Contents/Info.plist @@ -1916,7 +1920,9 @@ %%DATADIR%%/Resources/Profiles/iOS-iPod-4,1.xml %%DATADIR%%/Resources/Profiles/iOS.xml %%DATADIR%%/Resources/Profiles/tvOS.xml +@mode 555 %%DATADIR%%/Resources/Python/bin/python +@mode %%DATADIR%%/Resources/Python/include/python2.7/pyconfig.h %%DATADIR%%/Resources/Python/lib/python2.7/BaseHTTPServer.py %%DATADIR%%/Resources/Python/lib/python2.7/Bastion.py @@ -2772,7 +2778,9 @@ %%DATADIR%%/Resources/plexmusic-combiner-albums.xml %%DATADIR%%/Resources/plexmusic-combiner-artists.xml %%DATADIR%%/Resources/rootCA.pem +@mode 555 %%DATADIR%%/Resources/rsync +@mode %%DATADIR%%/Resources/server.crt %%DATADIR%%/Resources/server.key %%DATADIR%%/Resources/themoviedb-combiner-movies.xml |