]> git.proxmox.com Git - proxmox-mailgateway.git/commitdiff
initial commit
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Nov 2017 09:24:00 +0000 (10:24 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Nov 2017 09:24:00 +0000 (10:24 +0100)
Makefile [new file with mode: 0644]
changelog.Debian [new file with mode: 0644]
control.in [new file with mode: 0644]
copyright [new file with mode: 0644]
postinst.in [new file with mode: 0755]
postrm.in [new file with mode: 0755]
proxmox-release-5.x.pubkey [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..77f60a6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,38 @@
+RELEASE=5.0
+PKGREL=1
+
+PACKAGE=proxmox-pmg
+
+DEB=${PACKAGE}_${RELEASE}-${PKGREL}_all.deb
+
+KERNEL_VER=4.13.4
+KREL=1
+
+EXTRAVERSION=-${KREL}-pve
+KVNAME=${KERNEL_VER}${EXTRAVERSION}
+
+all: ${DEB}
+
+${DEB}: control copyright changelog.Debian postinst postrm proxmox-release-5.x.pubkey
+       rm -rf build
+       mkdir -p build/DEBIAN
+       mkdir -p build/usr/share/doc/${PACKAGE}
+       mkdir -p build/etc/apt/trusted.gpg.d
+       install -m 0644 proxmox-release-5.x.pubkey build/etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
+       echo "/etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg" > build/DEBIAN/conffiles
+       install -m 0644 control build/DEBIAN/control
+       install -m 0755 postinst build/DEBIAN/postinst
+       install -m 0755 postrm build/DEBIAN/postrm
+       install -m 0644 copyright build/usr/share/doc/${PACKAGE}
+       install -m 0644 changelog.Debian build/usr/share/doc/${PACKAGE}
+       gzip -n --best build/usr/share/doc/${PACKAGE}/changelog.Debian
+       dpkg-deb --build build ${DEB}
+       lintian ${DEB}
+
+%: %.in
+       sed -e 's/@KVNAME@/${KVNAME}/' -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@RELEASE@/${RELEASE}/' -e 's/@PKGREL@/${PKGREL}/' <$< >$@
+
+
+clean:
+       rm -rf build control postinst postrm *.deb
+       find . -name '*~' -exec rm {} ';'
diff --git a/changelog.Debian b/changelog.Debian
new file mode 100644 (file)
index 0000000..c672aa0
--- /dev/null
@@ -0,0 +1,5 @@
+proxmox-pmg (5.0-1) unstable; urgency=medium
+
+  * first public release
+
+ -- Proxmox Support Team <support@proxmox.com>  Tue, 14 Nov 2017 09:11:38 +0100
diff --git a/control.in b/control.in
new file mode 100644 (file)
index 0000000..1afbd03
--- /dev/null
@@ -0,0 +1,12 @@
+Package: proxmox-pmg
+Version: @RELEASE@-@PKGREL@
+Architecture: all
+Section: admin
+Priority: optional
+Depends: libc6 (>= 2.7-18), pve-kernel-@KVNAME@, pve-firmware, proxmox-mailgateway, openssh-client, openssh-server, apt, vncterm
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Description: The Proxmox Mail Gateway
+ The Proxmox Mail Gateway is an easy to use Open Source SMTP proxy,
+ including efficient Spam and virus filters. This is a meta package
+ which will install everything needed. This package also depends on
+ the latest available Proxmox kernel from the @KERNEL_VER@ series.
diff --git a/copyright b/copyright
new file mode 100644 (file)
index 0000000..ceb2633
--- /dev/null
+++ b/copyright
@@ -0,0 +1,21 @@
+Copyright (C) 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 General Public License as published by
+   the Free Software Foundation; version 2 dated June, 1991.
+
+   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 General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+   MA 02110-1301 USA
+
+The complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
diff --git a/postinst.in b/postinst.in
new file mode 100755 (executable)
index 0000000..2e260bb
--- /dev/null
@@ -0,0 +1,75 @@
+#! /bin/sh
+
+# Abort if any command returns an error value 
+set -e 
+
+# This script is called as the last step of the installation of the 
+# package.  All the package's files are in place, dpkg has already
+# done its automatic conffile handling, and all the packages we depend
+# of are already fully installed and configured.
+
+# The following idempotent stuff doesn't generally need protecting 
+# against being run in the abort-* cases.
+
+case "$1" in
+  configure)
+    # Configure this package.  If the package must prompt the user for
+    # information, do it here.
+
+    # setup kernel links for installation CD (rescue boot)
+    mkdir -p /boot/pve
+    ln -sf /boot/vmlinuz-@KVNAME@ /boot/pve/vmlinuz
+    ln -sf /boot/initrd.img-@KVNAME@ /boot/pve/initrd.img
+    
+    # There are three sub-cases:
+    if test "${2+set}" != set; then
+      # We're being installed by an ancient dpkg which doesn't remember
+      # which version was most recently configured, or even whether
+      # there is a most recently configured version.
+      :
+
+    elif test -z "$2" -o "$2" = "<unknown>"; then
+      # The package has not ever been configured on this system, or was
+      # purged since it was last configured.
+      :
+
+    else
+      # Version $2 is the most recently configured version of this
+      # package.
+      :
+
+    fi ;;
+  abort-upgrade)
+    # Back out of an attempt to upgrade this package FROM THIS VERSION
+    # to version $2.  Undo the effects of "prerm upgrade $2".
+    :
+
+    ;;
+  abort-remove)
+    if test "$2" != in-favour; then
+      echo "$0: undocumented call to \`postinst $*'" 1>&2
+      exit 0
+    fi
+    # Back out of an attempt to remove this package, which was due to
+    # a conflict with package $3 (version $4).  Undo the effects of
+    # "prerm remove in-favour $3 $4".
+    :
+
+    ;;
+  abort-deconfigure)
+    if test "$2" != in-favour -o "$5" != removing; then
+      echo "$0: undocumented call to \`postinst $*'" 1>&2
+      exit 0
+    fi
+    # Back out of an attempt to deconfigure this package, which was
+    # due to package $6 (version $7) which we depend on being removed
+    # to make way for package $3 (version $4).  Undo the effects of
+    # "prerm deconfigure in-favour $3 $4 removing $6 $7".
+    :
+
+    ;;
+  *) echo "$0: didn't understand being called with \`$1'" 1>&2
+     exit 0;;
+esac
+
+exit 0
diff --git a/postrm.in b/postrm.in
new file mode 100755 (executable)
index 0000000..2ee5c14
--- /dev/null
+++ b/postrm.in
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+# Abort if any command returns an error value
+set -e
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+       # remove kernel symlinks
+       rm -f /boot/pve/vmlinuz
+       rm -f /boot/pve/initrd.img
+       rmdir --ignore-fail-on-non-empty /boot/pve/ || true
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
diff --git a/proxmox-release-5.x.pubkey b/proxmox-release-5.x.pubkey
new file mode 100644 (file)
index 0000000..8488f45
Binary files /dev/null and b/proxmox-release-5.x.pubkey differ