2016-05-09 11:02:07 +03:00
RELEASE = 4.2
2014-03-03 12:40:04 +04:00
2015-02-27 14:27:52 +03:00
VERSION = 2.0
2016-05-17 09:00:12 +03:00
PKGREL = 27
2014-03-03 12:40:04 +04:00
PACKAGE = pve-firewall
PREFIX = /usr
BINDIR = ${ PREFIX } /bin
SBINDIR = ${ PREFIX } /sbin
MANDIR = ${ PREFIX } /share/man
DOCDIR = ${ PREFIX } /share/doc
MAN1DIR = ${ MANDIR } /man1/
PERLDIR = ${ PREFIX } /share/perl5
2014-03-13 16:08:47 +04:00
ARCH = amd64
2014-03-03 12:40:04 +04:00
GITVERSION := $( shell cat .git/refs/heads/master)
DEB = ${ PACKAGE } _${ VERSION } -${ PKGREL } _${ ARCH } .deb
all : ${DEB }
.PHONY : dinstall
dinstall : deb
dpkg -i ${ DEB }
.PHONY : deb
2014-05-13 16:18:08 +04:00
deb ${DEB} : check
2014-03-03 12:40:04 +04:00
rm -rf build
rsync -a src/ build
rsync -a debian/ build/debian
echo " git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${ GITVERSION } " > build/debian/SOURCE
# install
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
lintian ${ DEB }
2014-05-13 16:18:08 +04:00
.PHONY : check
check :
make -C test check
2014-03-03 12:40:04 +04:00
.PHONY : clean
clean :
2014-03-14 17:22:30 +04:00
make -C src clean
2014-05-13 16:18:08 +04:00
make -C test clean
2014-03-14 17:22:30 +04:00
rm -rf *~ debian/*~ example/*~ *.deb *.changes build ${ PACKAGE } -*.tar.gz
2014-03-03 12:40:04 +04:00
.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