mirror of
git://git.proxmox.com/git/pve-zsync.git
synced 2025-01-05 17:17:37 +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}
|
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||||
WORKDIR=${DESTDIR}/var/lib/pve-zsync
|
WORKDIR=${DESTDIR}/var/lib/pve-zsync
|
||||||
|
|
||||||
BUILDDIR=build
|
BUILDDIR ?= ${PACKAGE}-${VERSION}
|
||||||
|
|
||||||
ARCH=all
|
ARCH=all
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
||||||
|
DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
@ -34,19 +35,27 @@ install: pve-zsync.8
|
|||||||
install -d ${MAN8DIR}
|
install -d ${MAN8DIR}
|
||||||
install -m 0644 pve-zsync.8 ${MAN8DIR}/pve-zsync.8
|
install -m 0644 pve-zsync.8 ${MAN8DIR}/pve-zsync.8
|
||||||
install -d ${DOCDIR}
|
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
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
${DEB}:
|
${DEB}: ${BUILDDIR}
|
||||||
rm -rf ${BUILDDIR}
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
rsync -a * build
|
|
||||||
cd build; dpkg-buildpackage -b -us -uc
|
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
|
.PHONY: dsc
|
||||||
|
dsc: ${DSC}
|
||||||
|
${DSC}:${BUILDDIR}
|
||||||
|
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
||||||
|
lintian ${DSC}
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${BUILDDIR} *.deb *.buildinfo *.changes
|
rm -rf ${BUILDDIR} *.deb *.dsc ${PACKAGE}*.tar.gz *.buildinfo *.changes
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -2,12 +2,14 @@ Source: pve-zsync
|
|||||||
Section: perl
|
Section: perl
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||||
Standards-Version: 3.8.4
|
Build-Depends: debhelper (>= 10~)
|
||||||
|
Standards-Version: 3.9.8
|
||||||
|
|
||||||
Package: pve-zsync
|
Package: pve-zsync
|
||||||
Section: perl
|
Section: perl
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${perl:Depends},
|
Depends: ${perl:Depends},
|
||||||
|
${misc:Depends}
|
||||||
Description: Proxmox VE ZFS syncing tool
|
Description: Proxmox VE ZFS syncing tool
|
||||||
Tool for automated syncing of ZFS subvolumes and pools.
|
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