Magellan Linux

Annotation of /smage/trunk/extras/novnc/novnc-1.0.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12884 - (hide annotations) (download)
Wed Nov 14 13:41:45 2018 UTC (5 years, 5 months ago) by niro
File size: 1601 byte(s)
auto added: ver bump to 1.0.0-r2
1 niro 12884 # $Id$
2    
3     PNAME="novnc"
4     PVER="1.0.0"
5     PBUILD="r2"
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     SRCDIR="${BUILDDIR}/noVNC-${PVER}"
17    
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/app || die
39     minstalldir /usr/share/novnc/core || die
40     minstalldir /usr/share/novnc/vendor || die
41    
42     # copy only minimal required files
43     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     minstallfile ${SRCDIR}/vnc.html /usr/share/novnc/ || die
47     minstallfile ${SRCDIR}/vnc_lite.html /usr/share/novnc/ || die
48     # use vnc.html as default index
49     mlink vnc.html /usr/share/novnc/index.html || die
50    
51     # fix permissions
52     mchown -R root:root /usr/share/novnc || die
53     find ${BINDIR}/usr/share/novnc -type d -exec chmod 0755 '{}' ';' || die
54     find ${BINDIR}/usr/share/novnc -type f -exec chmod 0644 '{}' ';' || die
55    
56     # 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    
62     minstalldocs README.md LICENSE.txt
63     }