5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-08 01:17:38 +03:00

Initial Project

This commit is contained in:
Wolfgang Link 2015-05-06 11:45:10 +02:00
commit 0bc3e51091
5 changed files with 1260 additions and 0 deletions

79
Makefile Normal file
View File

@ -0,0 +1,79 @@
RELEASE=1.0
VERSION=1.0
PACKAGE=pve-zsync
PKGREL=1
DESTDIR=
PREFIX=/usr
BINDIR=${PREFIX}/bin
SBINDIR=${PREFIX}/sbin
MANDIR=${PREFIX}/share/man
DOCDIR=${PREFIX}/share/doc/${PACKAGE}
PODDIR=${DOCDIR}/pod
MAN1DIR=${MANDIR}/man8/
#ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
ARCH=all
GITVERSION:=$(shell cat .git/refs/heads/master)
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
all: ${DEB}
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
%.8.gz: %.8.man
rm -f $@
gzip pve-zsync.8.man -c9 >$@
pve-zsync.8.man: pve-zsync
pod2man -c "Proxmox Documentation" -s 8 -r ${RELEASE} -n pve-zsync pve-zsync pve-zsync.8.man
.PHONY: install
install: pve-zsync.8.man pve-zsync.8.gz
install -d ${DESTDIR}${SBINDIR}
install -m 0755 pve-zsync ${DESTDIR}${SBINDIR}
install -d ${DESTDIR}/usr/share/man/man8
install -d ${DESTDIR}${PODDIR}
install -m 0644 pve-zsync.8.gz ${DESTDIR}/usr/share/man/man8/
.PHONY: deb ${DEB}
deb ${DEB}:
rm -rf debian
mkdir debian
install -d debian/var/lib/pve-zsync
install -d debian/etc/cron.d/
echo "SHELL=/bin/sh" >> debian/etc/cron.d/pve-zsync
echo "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" >> debian/etc/cron.d/pve-zsync
make DESTDIR=${CURDIR}/debian install
install -d -m 0755 debian/DEBIAN
sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >debian/DEBIAN/control
install -D -m 0644 copyright debian/${DOCDIR}/copyright
install -m 0644 changelog.Debian debian/${DOCDIR}/
gzip -9 debian/${DOCDIR}/changelog.Debian
echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" > debian/${DOCDIR}/SOURCE
dpkg-deb --build debian
mv debian.deb ${DEB}
rm -rf debian
.PHONY: clean
clean:
rm -rf debian *.deb ${PACKAGE}-*.tar.gz dist *.8.man *.8.gz
find . -name '*~' -exec rm {} ';'
.PHONY: distclean
distclean: clean
.PHONY: upload
upload: ${DEB}
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
mkdir -p /pve/${RELEASE}/extra
rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
rm -f /pve/${RELEASE}/extra/Packages*
cp ${DEB} /pve/${RELEASE}/extra
cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro

6
changelog.Debian Normal file
View File

@ -0,0 +1,6 @@
libpve-pvesync-perl (0.0-1) unstable; urgency=low
* initial package
-- Proxmox Support Team <support@proxmox.com> So, 8 Mar 2015 18:34:19 +0100

9
control.in Normal file
View File

@ -0,0 +1,9 @@
Package: pve-zsync-perl
Version: @@VERSION@@-@@PKGRELEASE@@
Section: perl
Priority: optional
Architecture: @@ARCH@@
Depends: perl (>= 5.6.0-16)
Maintainer: Proxmox Support Team <support@proxmox.com>
Description: Proxmox VE storage management library
This package contains the Proxmox VE ZFS sync Tool.

16
copyright Normal file
View File

@ -0,0 +1,16 @@
Copyright (C) 2010 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/>.

1150
pve-zsync Normal file

File diff suppressed because it is too large Load Diff