mirror of
https://git.proxmox.com/git/pmg-log-tracker
synced 2025-08-09 18:02:38 +00:00
create debian package
This commit is contained in:
parent
ae7d477801
commit
61b8223f3c
29
Makefile
29
Makefile
@ -1,16 +1,41 @@
|
|||||||
|
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
|
LIBS=$(shell pkg-config --libs glib-2.0) -lz
|
||||||
CFLAGS=$(shell pkg-config --cflags glib-2.0) -O2 -Wpedantic
|
CFLAGS=$(shell pkg-config --cflags glib-2.0) -O2 -Wpedantic
|
||||||
|
|
||||||
all: pmg-log-tracker
|
all: ${DEB}
|
||||||
|
|
||||||
pmg-log-tracker: pmg-log-tracker.c
|
pmg-log-tracker: pmg-log-tracker.c
|
||||||
gcc $< -o $@ ${CFLAGS} ${LIBS}
|
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
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm pmg-log-tracker
|
rm -rf build *.deb pmg-log-tracker *.buildinfo *.changes
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
10
debian/changelog
vendored
Normal file
10
debian/changelog
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
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
|
||||||
|
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
10
|
14
debian/control
vendored
Normal file
14
debian/control
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
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.
|
16
debian/copyright
vendored
Normal file
16
debian/copyright
vendored
Normal 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/>.
|
1
debian/install
vendored
Normal file
1
debian/install
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/usr/bin/pmg-log-tracker
|
8
debian/rules
vendored
Executable file
8
debian/rules
vendored
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# See debhelper(7) (uncomment to enable)
|
||||||
|
# output every command that modifies files on the build system.
|
||||||
|
#DH_VERBOSE = 1
|
||||||
|
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
Loading…
Reference in New Issue
Block a user