mirror of
git://git.proxmox.com/git/pve-zsync.git
synced 2025-01-01 01:17:38 +03:00
buildsys: add dsc target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
eb91dbe4b3
commit
627130a216
23
Makefile
23
Makefile
@ -10,12 +10,13 @@ MAN8DIR=${DESTDIR}/usr/share/man/man8
|
||||
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||
WORKDIR=${DESTDIR}/var/lib/pve-zsync
|
||||
|
||||
BUILDDIR=build
|
||||
BUILDDIR ?= ${PACKAGE}-${VERSION}
|
||||
|
||||
ARCH=all
|
||||
GITVERSION:=$(shell git rev-parse HEAD)
|
||||
|
||||
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
||||
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
|
||||
|
||||
all:
|
||||
|
||||
@ -34,19 +35,27 @@ install: pve-zsync.8
|
||||
install -d ${MAN8DIR}
|
||||
install -m 0644 pve-zsync.8 ${MAN8DIR}/pve-zsync.8
|
||||
install -d ${DOCDIR}
|
||||
echo "git clone git://git.proxmox.com/git/pve-zsync.git\\ngit checkout ${GITVERSION}" > ${DOCDIR}/SOURCE
|
||||
|
||||
${BUILDDIR}:
|
||||
rm -rf ${BUILDDIR}
|
||||
rsync -a * ${BUILDDIR}
|
||||
echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
||||
|
||||
.PHONY: deb
|
||||
deb: ${DEB}
|
||||
${DEB}:
|
||||
rm -rf ${BUILDDIR}
|
||||
rsync -a * build
|
||||
cd build; dpkg-buildpackage -b -us -uc
|
||||
${DEB}: ${BUILDDIR}
|
||||
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||
lintian ${DEB}
|
||||
|
||||
.PHONY: dsc
|
||||
dsc: ${DSC}
|
||||
${DSC}:${BUILDDIR}
|
||||
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
||||
lintian ${DSC}
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf ${BUILDDIR} *.deb *.buildinfo *.changes
|
||||
rm -rf ${BUILDDIR} *.deb *.dsc ${PACKAGE}*.tar.gz *.buildinfo *.changes
|
||||
find . -name '*~' -exec rm {} ';'
|
||||
|
||||
.PHONY: distclean
|
||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -2,12 +2,14 @@ Source: pve-zsync
|
||||
Section: perl
|
||||
Priority: optional
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
Standards-Version: 3.8.4
|
||||
Build-Depends: debhelper (>= 10~)
|
||||
Standards-Version: 3.9.8
|
||||
|
||||
Package: pve-zsync
|
||||
Section: perl
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: ${perl:Depends},
|
||||
${misc:Depends}
|
||||
Description: Proxmox VE ZFS syncing tool
|
||||
Tool for automated syncing of ZFS subvolumes and pools.
|
||||
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
1.0
|
Loading…
Reference in New Issue
Block a user