1 PACKAGE
=libpve-http-server-perl
5 DEB
=${PACKAGE}_
${PKGVER}-${PKGREL}_all.deb
9 PERL5DIR
=${DESTDIR}/usr
/share
/perl5
10 DOCDIR
=${DESTDIR}/usr
/share
/doc
/${PACKAGE}
12 WWWBASEDIR
=${DESTDIR}/usr
/share
/${PACKAGE}
13 WWWCSSDIR
=${WWWBASEDIR}/css
14 WWWFONTSDIR
=${WWWBASEDIR}/fonts
15 WWWJSDIR
=${WWWBASEDIR}/js
19 BTDIR
=bootstrap-
${BTVER}-dist
23 ${BTDIR}/css
/bootstrap.min.css \
24 ${BTDIR}/css
/bootstrap-theme.min.css \
25 ${BTDIR}/js
/bootstrap.min.js \
26 ${BTDIR}/fonts
/glyphicons-halflings-regular.ttf
29 JQSRC
=jquery-
${JQVER}.min.js
37 cd build
; dpkg-buildpackage
-b
-us
-uc
41 rm -f
${BTSRC}$ ${BTSRC}.tmp
42 wget https
://github.com
/twbs
/bootstrap
/releases
/download
/v
${BTVER}/${BTSRC} -O
${BTSRC}.tmp
43 mv
${BTSRC}.tmp
${BTSRC}
46 rm -f
${JQSRC} ${JQSRC}.tmp
47 wget https
://code.jquery.com
/jquery-3.1
.1.min.js
-O
${JQSRC}.tmp
48 mv
${JQSRC}.tmp
${JQSRC}
56 install -d
-m
755 ${PERL5DIR}/PVE
/APIServer
57 install -m
0644 PVE
/APIServer
/AnyEvent.pm
${PERL5DIR}/PVE
/APIServer
58 install -m
0644 PVE
/APIServer
/Formatter.pm
${PERL5DIR}/PVE
/APIServer
59 install -d
-m
755 ${PERL5DIR}/PVE
/APIServer
/Formatter
60 install -m
0644 PVE
/APIServer
/Formatter
/Standard.pm
${PERL5DIR}/PVE
/APIServer
/Formatter
61 install -m
0644 PVE
/APIServer
/Formatter
/Bootstrap.pm
${PERL5DIR}/PVE
/APIServer
/Formatter
62 install -m
0644 PVE
/APIServer
/Formatter
/HTML.pm
${PERL5DIR}/PVE
/APIServer
/Formatter
63 # install bootstrap and jquery
64 install -d
-m
755 ${WWWBASEDIR}
65 install -d
-m
755 ${WWWCSSDIR}
66 install -m
0644 -o www-data
-g www-data
${BTDIR}/css
/bootstrap.min.css
${WWWCSSDIR}
67 install -m
0644 -o www-data
-g www-data
${BTDIR}/css
/bootstrap-theme.min.css
${WWWCSSDIR}
68 install -d
-m
755 ${WWWJSDIR}
69 install -m
0644 -o www-data
-g www-data
${BTDIR}/js
/bootstrap.min.js
${WWWJSDIR}
70 install -m
0644 -o www-data
-g www-data
${JQSRC} ${WWWJSDIR}
71 install -d
-m
755 ${WWWFONTSDIR}
72 install -m
0644 ${BTDIR}/fonts
/glyphicons-halflings-regular.ttf
${WWWFONTSDIR}
77 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com upload
82 rm -rf .
/build
*.deb
*.changes
${BTDIR}
83 find .
-name
'*~' -exec
rm {} ';'