+PACKAGE=pmg-log-tracker
+PKGVER=1.0
+PKGREL=1
+
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
+DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
+
LIBS=$(shell pkg-config --libs glib-2.0) -lz
CFLAGS=$(shell pkg-config --cflags glib-2.0) -O2 -Wpedantic
-all: pmg-log-tracker
+all: ${DEB}
pmg-log-tracker: pmg-log-tracker.c
gcc $< -o $@ ${CFLAGS} ${LIBS}
+.PHONY: deb
+deb ${DEB}: pmg-log-tracker
+ rm -f *.deb
+ rm -rf build
+ install -D -m 0755 pmg-log-tracker build/usr/bin/pmg-log-tracker
+ cp -a debian build/debian
+ cd build; dpkg-buildpackage -rfakeroot -b -us -uc
+ lintian ${DEB}
+
+.PHONY: dinstall
+dinstall: ${DEB}
+ dpkg -i ${DEB}
+
+.PHONY: upload
+upload: ${DEB} ${DBG_DEB}
+ tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
.PHONY: distclean
distclean: clean
.PHONY: clean
clean:
- rm pmg-log-tracker
+ rm -rf build *.deb pmg-log-tracker *.buildinfo *.changes
find . -name '*~' -exec rm {} ';'
--- /dev/null
+pmg-log-tracker (1.0-1) unstable; urgency=medium
+
+ * imported from private repository
+
+ * compile with -Wpedantic
+
+ * create separate debian package
+
+ -- Proxmox Support Team <support@proxmox.com> Wed, 13 Sep 2017 08:18:15 +0200
+
--- /dev/null
+Source: pmg-log-tracker
+Section: admin
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 9),
+ libglib2.0-dev (>= 2.42.1-1)
+Standards-Version: 3.9.5
+Homepage: http://www.proxmox.com
+
+Package: pmg-log-tracker
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Proxmox Mailgateway Log Tracker
+ Tools to scan mail logs.
\ No newline at end of file
--- /dev/null
+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/>.
--- /dev/null
+/usr/bin/pmg-log-tracker
\ No newline at end of file
--- /dev/null
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+
+%:
+ dh $@