Skip to content

Commit

Permalink
- download source tarball automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxcnc committed Jan 28, 2015
1 parent bd7da7e commit a1b67bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
16 changes: 2 additions & 14 deletions README.debianize
Original file line number Diff line number Diff line change
Expand Up @@ -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 <source-path-of-LinuxCNC>/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
Expand Down
8 changes: 7 additions & 1 deletion debian/rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@
# 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)
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 $@
Expand Down

0 comments on commit a1b67bb

Please sign in to comment.