-RELEASE=1.9
+RELEASE=2.0
SVER=3.0.29
PACKAGERELEASE=2pve1
all: ${DEB}
-vzctl-${SVER}.org/COPYING:
- git clone git://git.openvz.org/pub/vzctl vzctl-${SVER}.org
- # git branch -D local
- cd vzctl-${SVER}.org; git checkout -b local ${VZCTL_BRANCH}
+vzctl-${SVER}.org/COPYING: vzctl-${SVER}.org.tgz
+ tar xzf $<
touch $@
-vzctl-${SVER}.tgz: vzctl-${SVER}.org/COPYING
- tar czf $@.tmp vzctl-${SVER}.org
- mv $@.tmp $@
+.PHONY: download
+vzctl-${SVER}.org.tgz download:
+ rm -rf vzctl-${SVER}.org vzctl-${SVER}.org.tgz
+ git clone git://git.openvz.org/pub/vzctl vzctl-${SVER}.org
+ cd vzctl-${SVER}.org; git branch ${VZCTL_BRANCH}
+ tar czf vzctl-${SVER}.org.tgz vzctl-${SVER}.org
vzctl-${SVER}/debian/control: vzctl-${SVER}.org/COPYING
cd vzctl-${SVER}; ./autogen.sh
touch $@
-${DEB}: vzctl-${SVER}/debian/control
+
+.PHONY: deb
+${DEB} deb: vzctl-${SVER}/debian/control
chmod +x vzctl-${SVER}/debian/rules
cd vzctl-${SVER}; dpkg-buildpackage -b -rfakeroot -us -uc
lintian ${DEB}
.PHONY: clean
clean:
rm -rf vzctl-${SVER} vzctl_${SVER}* *~ debian/*~ debian/patches/*~ *.tmp a.out
+
+.PHONY: dinstall
+dinstall: deb
+ dpkg -i ${DEB}
+
--- /dev/null
+Index: new/paths.am
+===================================================================
+--- new.orig/paths.am 2011-09-23 13:54:56.000000000 +0200
++++ new/paths.am 2011-09-23 13:55:10.000000000 +0200
+@@ -24,7 +24,7 @@
+ endif
+
+ if ENABLE_UDEV
+-udevdir = $(sysconfdir)/udev/rules.d
++udevdir = /lib/udev/rules.d
+ endif
+
+ initddir = $(sysconfdir)/init.d