2015-04-15 12:51:59 +02:00
PACKAGE = lxc-pve
2017-09-06 10:43:45 +02:00
LXCVER = 2.1.0
2017-09-19 10:06:43 +02:00
DEBREL = 2
2015-04-04 14:24:20 +02:00
2015-04-15 12:51:59 +02:00
SRCDIR = lxc
2015-04-04 14:24:20 +02:00
SRCTAR = ${ SRCDIR } .tgz
2015-04-04 15:05:38 +02:00
ARCH := $( shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION := $( shell cat .git/refs/heads/master)
2015-04-04 14:24:20 +02:00
2017-02-09 13:25:52 +01:00
DEB1 = ${ PACKAGE } _${ LXCVER } -${ DEBREL } _${ ARCH } .deb
DEB2 = ${ PACKAGE } -dev_${ LXCVER } -${ DEBREL } _${ ARCH } .deb \
${ PACKAGE } -dbg_${ LXCVER } -${ DEBREL } _${ ARCH } .deb
DEBS = $( DEB1) $( DEB2)
2015-04-04 14:24:20 +02:00
2015-04-04 15:05:38 +02:00
all : ${DEBS }
echo ${ DEBS }
2017-02-07 13:36:50 +01:00
.PHONY : deb
deb : ${DEBS }
2017-02-09 13:25:52 +01:00
$(DEB2) : $( DEB 1)
$(DEB1) : ${SRCTAR }
2015-04-04 15:05:38 +02:00
rm -rf ${ SRCDIR }
tar xf ${ SRCTAR }
cp -a debian ${ SRCDIR } /debian
echo " git clone git://git.proxmox.com/git/lxc.git\\ngit checkout ${ GITVERSION } " > ${ SRCDIR } /debian/SOURCE
cd ${ SRCDIR } ; dpkg-buildpackage -rfakeroot -b -us -uc
lintian ${ DEBS }
.PHONY : download
2015-04-04 14:24:20 +02:00
download ${SRCTAR} :
rm -rf ${ SRCDIR } ${ SRCTAR }
2016-08-16 09:39:18 +02:00
git clone -b lxc-${ LXCVER } git://github.com/lxc/lxc
2015-04-04 14:24:20 +02:00
tar czf ${ SRCTAR } .tmp ${ SRCDIR }
mv ${ SRCTAR } .tmp ${ SRCTAR }
2015-04-04 15:05:38 +02:00
.PHONY : upload
upload : ${DEBS }
2017-03-10 14:33:08 +01:00
tar cf - ${ DEBS } | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
2015-04-04 15:05:38 +02:00
2015-04-04 14:24:20 +02:00
distclean : clean
.PHONY : clean
clean :
2017-03-10 14:33:54 +01:00
rm -rf ${ SRCDIR } ${ SRCDIR } .tmp *_${ ARCH } .deb *.changes *.dsc *.buildinfo
2015-04-04 14:24:20 +02:00
find . -name '*~' -exec rm { } ';'
2015-04-04 15:05:38 +02:00
.PHONY : dinstall
dinstall : ${DEBS }
dpkg -i ${ DEBS }