diff --git a/README.debianize b/README.debianize index dbd41a5..17732e1 100644 --- a/README.debianize +++ b/README.debianize @@ -17,23 +17,11 @@ BUILD PROCESS The build process was testet unter the official LinuxCNC distibution based on Ubuntu 10.04 "Lucid Lynx". -1. Download the EtherCAT-Master source (V1.5.2) from - IgH (http://www.etherlab.org/de/ethercat/index.php): - # wget http://www.etherlab.org/download/ethercat/ethercat-1.5.2.tar.bz2 - -2. Untar the archive - # tar xvfj ethercat-1.5.2.tar.bz2 - -3. copy the debian directory to your build directory. - # cp -av /src/hal/drivers/ethercat/master/debian ethercat-1.5.2 - -4. build the packages (very similar to the LinuxCNC build process) - # cd ethercat-1.5.2 - # cd debian +to build the packages (very similar to the LinuxCNC build process): # ./configure -a # cd .. # dpkg-checkbuilddeps (and install missing deps) - # dpkg-buildpackage + # dpkg-buildpackage (downloads the source tarball automatically) INSTALLATION diff --git a/debian/rules.in b/debian/rules.in index aea7288..154f4b4 100644 --- a/debian/rules.in +++ b/debian/rules.in @@ -3,6 +3,8 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +SRC_URL=http://etherlab.org/download/ethercat/ethercat-1.5.2.tar.bz2 + include /usr/share/dpatch/dpatch.make top_srcdir:=$(shell pwd) @@ -10,8 +12,12 @@ tmp:=debian/tmp tmp_absolute:=$(top_srcdir)/$(tmp) extras:=debian/@EXTRAS@ +download-stamp: + wget -q -O - $(SRC_URL) | tar xvfj - --strip-components=1 + touch $@ + configure: configure-stamp -configure-stamp: patch-stamp +configure-stamp: download-stamp patch-stamp dh_testdir ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-linux-dir=/@KERNEL_BUILDDIR@ @CONF_EXTRA@ touch $@