Annotation of /smage/trunk/deprecated/novnc/novnc-1.0.0-r1.smage2
Parent Directory | Revision Log
Revision 12882 -
(hide annotations)
(download)
Wed Nov 14 13:27:14 2018 UTC (5 years, 10 months ago) by niro
Original Path: smage/trunk/extras/novnc/novnc-1.0.0-r1.smage2
File size: 1480 byte(s)
Wed Nov 14 13:27:14 2018 UTC (5 years, 10 months ago) by niro
Original Path: smage/trunk/extras/novnc/novnc-1.0.0-r1.smage2
File size: 1480 byte(s)
auto added: ver bump to 1.0.0-r1
1 | niro | 12878 | # $Id$ |
2 | |||
3 | PNAME="novnc" | ||
4 | PVER="1.0.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="net-misc" | ||
8 | |||
9 | DESCRIPTION="." | ||
10 | HOMEPAGE="https://github.com/novnc/noVNC/" | ||
11 | |||
12 | DEPEND=">= net-www/apache2-2.4 | ||
13 | >= net-misc/websockify-0.8" | ||
14 | |||
15 | SRCFILE="v${PVER}.tar.gz" | ||
16 | niro | 12880 | SRCDIR="${BUILDDIR}/noVNC-${PVER}" |
17 | niro | 12878 | |
18 | sminclude mtools | ||
19 | |||
20 | SRC_URI=( | ||
21 | https://github.com/novnc/noVNC/archive/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/novnc-apache.conf | ||
24 | ) | ||
25 | |||
26 | UP2SEPERATOR="v" | ||
27 | UP2DATE="updatecmd https://github.com/novnc/noVNC/releases | highesttarball gz" | ||
28 | |||
29 | src_prepare() | ||
30 | { | ||
31 | munpack ${SRCFILE} || die | ||
32 | } | ||
33 | |||
34 | src_install() | ||
35 | { | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | niro | 12881 | minstalldir /usr/share/novnc/app || die |
39 | minstalldir /usr/share/novnc/core || die | ||
40 | minstalldir /usr/share/novnc/vendor || die | ||
41 | niro | 12878 | |
42 | niro | 12881 | # copy only minimal required files |
43 | niro | 12882 | cp -R app/* ${BINDIR}/usr/share/novnc/app/ || die |
44 | cp -R core/* ${BINDIR}/usr/share/novnc/core/ || die | ||
45 | cp -R vendor/* ${BINDIR}/usr/share/novnc/vendor/ || die | ||
46 | niro | 12881 | |
47 | niro | 12878 | # fix permissions |
48 | mchown -R root:root /usr/share/novnc || die | ||
49 | find ${BINDIR}/usr/share/novnc -type d -exec chmod 0755 '{}' ';' || die | ||
50 | find ${BINDIR}/usr/share/novnc -type f -exec chmod 0644 '{}' ';' || die | ||
51 | # use vnc.html as default index | ||
52 | mlink vnc.html /usr/share/novnc/index.html || die | ||
53 | |||
54 | niro | 12882 | minstalldocs README.md LICENSE.txt |
55 | |||
56 | niro | 12878 | # install apache config |
57 | local APACHE_SYSCONFDIR=$(apxs -q sysconfdir) | ||
58 | minstalldir $(APACHE_SYSCONFDIR) || die | ||
59 | minstalldir $(APACHE_SYSCONFDIR)/modules.d || die | ||
60 | minstallfile -s novnc-apache.conf $(APACHE_SYSCONFDIR)/modules.d/novnc.conf || die | ||
61 | } |