Annotation of /smage/trunk/deprecated/novnc/novnc-1.0.0-r1.smage2
Parent Directory | Revision Log
Revision 12880 -
(hide annotations)
(download)
Wed Nov 14 12:53:03 2018 UTC (5 years, 10 months ago) by niro
Original Path: smage/trunk/extras/novnc/novnc-1.0.0-r1.smage2
File size: 1202 byte(s)
Wed Nov 14 12:53:03 2018 UTC (5 years, 10 months ago) by niro
Original Path: smage/trunk/extras/novnc/novnc-1.0.0-r1.smage2
File size: 1202 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 | minstalldir /usr/share/novnc || die | ||
39 | mcopy -R ${SRCDIR}/* /usr/share/novnc/ || die | ||
40 | |||
41 | # fix permissions | ||
42 | mchown -R root:root /usr/share/novnc || die | ||
43 | find ${BINDIR}/usr/share/novnc -type d -exec chmod 0755 '{}' ';' || die | ||
44 | find ${BINDIR}/usr/share/novnc -type f -exec chmod 0644 '{}' ';' || die | ||
45 | # use vnc.html as default index | ||
46 | mlink vnc.html /usr/share/novnc/index.html || die | ||
47 | |||
48 | # install apache config | ||
49 | local APACHE_SYSCONFDIR=$(apxs -q sysconfdir) | ||
50 | minstalldir $(APACHE_SYSCONFDIR) || die | ||
51 | minstalldir $(APACHE_SYSCONFDIR)/modules.d || die | ||
52 | minstallfile -s novnc-apache.conf $(APACHE_SYSCONFDIR)/modules.d/novnc.conf || die | ||
53 | } |