From de416bd67f4913ef7db220cebd5a153062073edc Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 14 Nov 2017 10:24:00 +0100 Subject: [PATCH] initial commit --- Makefile | 38 +++++++++++++++++++ changelog.Debian | 5 +++ control.in | 12 ++++++ copyright | 21 +++++++++++ postinst.in | 75 +++++++++++++++++++++++++++++++++++++ postrm.in | 19 ++++++++++ proxmox-release-5.x.pubkey | Bin 0 -> 1181 bytes 7 files changed, 170 insertions(+) create mode 100644 Makefile create mode 100644 changelog.Debian create mode 100644 control.in create mode 100644 copyright create mode 100755 postinst.in create mode 100755 postrm.in create mode 100644 proxmox-release-5.x.pubkey diff --git a/Makefile b/Makefile new file mode 100644 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 index 0000000..c672aa0 --- /dev/null +++ b/changelog.Debian @@ -0,0 +1,5 @@ +proxmox-pmg (5.0-1) unstable; urgency=medium + + * first public release + + -- Proxmox Support Team Tue, 14 Nov 2017 09:11:38 +0100 diff --git a/control.in b/control.in new file mode 100644 index 0000000..1afbd03 --- /dev/null +++ b/control.in @@ -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 +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 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 + + + 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 index 0000000..2e260bb --- /dev/null +++ b/postinst.in @@ -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" = ""; 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 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 index 0000000000000000000000000000000000000000..8488f4597a19764cefa9f505198cf9cade46a7a7 GIT binary patch literal 1181 zcmV;O1Y-M{0u2OL!^(#N5CFlbWz^cmS$iU3j`tWHxifM%&-CJff@AGol zsH@ILM|Nb@iXiJR!?bucn(rCU?!EmI{EML$~s&c;(5!^@tb|ry{`aO#N9+z^lU6`^U=!f7Tc$! zoJu!T$l!B7y`0~@JAD*={9he%hY3_Mf^*m_n{^#=7AZ`V;vucOl(~YCCW7VZe`h<2?yaA!=_po7;jXswMD!B8Z8z zv~|Y_Wr@@QYUi%aIdM4CyU;e1HqVb+HdJ^)i{)PH%+mr(Dvyg5H|>w4qss@3b=}2B zJVsD78XMLlq!+f)>p@F#6Hg?f4tz~`wNZO%${Xjm>06*^Ldp3*24+}O`)fDgL+eY0 zly<6cva%?+#m{)d>C-*cJO03{B;`!5Q)oB~kK)iFk$rTH+FUqC)t^o&dlK4i?MM<{ z1SU1+FvTC!pxXcu0RRECNlxCFZDnqBAT=&{AW~&) zWnpt=AWLO=AUtq#Z+LBQcr9{eY-M3{Wk7IpZ+LBQcrIgaZ9a(tKLis22mmPs0$0Pz zhXNY|1ql+&0{{mL2?z%R0s#gU2m%QT3j`Jd0|5da0Rk6*0162Z4VoEH;_n6nIz$it zD62qC$c7Ov6A}vxxO3<;ku+a|R)os7jNY@JZ0P1f6_|CzlY;Si>S;2902em#|7NW2>mD{k4seJ&(fq zKbBzToOheFC9lLCveIcBXbe2>4;<$fAUb)={>gB0=oB}<=IWOsdVX6XII*|BN~?M$ zWHpZ-)zgJP<2#`Onrs!pt^LXQD@AhXs*iy{ zGRVl$2mg#JlKI=JbN2)Q^@YYqmVS#jA2w}xrp0`|ERjkM#gJ6>YiM-?0 zaGVG(Nrs}d?IiohfiKng(O8Fh`a?mMW0(T@+itGYCodZ!=xW5$W~QiniSA{$&RDk0 zDO5xvT6p{&cgVhKc5_1n_QDP5TpK`u=3se|ZVQ8}8h6U(82z8})ztXRz)7WwAwxA2 z&KNr8DY^SB8XS6U+M3NBD;MArAN}nLN+un7G|s#2IFOq*#h4IJ1CUQG9M6?lxOwS= v%Kl)1hf;D({;(*NGd#D)wu}8xdg|eIA%q2|pVoL}OgjDN+!-q6Et(MSB{?cK literal 0 HcmV?d00001 -- 2.39.2