initial commit

This commit is contained in:
Dietmar Maurer 2017-01-26 17:35:17 +01:00
commit 8b0b6db434
7 changed files with 127 additions and 0 deletions

44
Makefile Normal file
View File

@ -0,0 +1,44 @@
PACKAGE=proxmox-mailgateway-gui
PKGVER=1.0
PKGREL=1
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DESTDIR=
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
WWWCSSDIR=${WWWBASEDIR}/css
WWWIMAGESDIR=${WWWBASEDIR}/images
WWWJSDIR=${WWWBASEDIR}/js
all:
.PHONY: deb
deb ${DEB}:
rm -rf build
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
install: index.html
install -d -m 755 ${WWWCSSDIR}
install -d -m 755 ${WWWIMAGESDIR}
install -d -m 755 ${WWWJSDIR}
install -m 0644 index.html ${WWWBASEDIR}
.PHONY: upload
upload: ${DEB}
# fixme tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
distclean: clean
rm -f examples/simple-demo.pem
clean:
rm -rf ./build *.deb *.changes
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}

6
debian/changelog vendored Normal file
View File

@ -0,0 +1,6 @@
proxmox-mailgateway-gui (1.0-1) unstable; urgency=medium
* first try
-- Proxmox Support Team <support@proxmox.com> Thu, 26 Jan 2017 17:25:38 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

13
debian/control vendored Normal file
View File

@ -0,0 +1,13 @@
Source: proxmox-mailgateway-gui
Section: perl
Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: debhelper (>= 9), perl (>= 5.10.0-19), libtemplate-perl
Standards-Version: 3.9.5
Homepage: http://www.proxmox.com
Package: proxmox-mailgateway-gui
Architecture: all
Depends: ${perl:Depends}, libtemplate-perl, libjs-extjs (>= 6.0.1)
Description: Proxmox Mail Gateway GUI
graphical user interface for Proxmox Mail Gateway.

16
debian/copyright vendored Normal file
View File

@ -0,0 +1,16 @@
Copyright (C) 2010-2017 Proxmox Server Solutions GmbH
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

9
debian/rules vendored Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
%:
dh $@

38
index.html Normal file
View File

@ -0,0 +1,38 @@
[% DEFAULT lang = "en" %]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>[% nodename %] - Proxmox Mail Gateway</title>
<link rel="icon" sizes="128x128" href="/pve2/images/logo-128.png" />
<link rel="apple-touch-icon" sizes="128x128" href="/pve2/images/logo-128.png" />
<link rel="stylesheet" type="text/css" href="/pve2/ext6/theme-crisp/resources/theme-crisp-all.css" />
<link rel="stylesheet" type="text/css" href="/pve2/ext6/crisp/resources/charts-all.css" />
<link rel="stylesheet" type="text/css" href="/pve2/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pve.css" />
[% IF debug %]
<script type="text/javascript" src="/pve2/ext6/ext-all-debug.js"></script>
<script type="text/javascript" src="/pve2/ext6/charts-debug.js"></script>
[% ELSE %]
<script type="text/javascript" src="/pve2/ext6/ext-all.js"></script>
<script type="text/javascript" src="/pve2/ext6/charts.js"></script>
[% END %]
<script type="text/javascript" src="/pve2/js/pmgmanagerlib.js"></script>
<script type="text/javascript" src="/pve2/ext6/locale/locale-[% lang %].js"></script>
<script type="text/javascript">
if (typeof(PMG) === 'undefined') PMG = {};
PMG.UserName = '[% username %]'
PMG.CSRFPreventionToken = '[% csrftoken %]';
Ext.History.fieldid = 'x-history-field';
Ext.onReady(function() { Ext.create('PMG.StdWorkspace');});
</script>
</head>
<body>
<!-- Fields required for history management -->
<form id="history-form" class="x-hidden">
<input type="hidden" id="x-history-field"/>
</form>
</body>
</html>