[Pkg-glusterfs-devel] debian/rules enhancement

Matthias Albert matthias at linux4experts.de
Fri Jan 11 09:10:37 UTC 2008


Hi all,

I tried to add something like that to the debian/rules file.

--snip---
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

+ common-configure::
+          ./autogen.sh

DEB_DH_INSTALLINIT_ARGS = --no-start
DEB_INSTALL_MANPAGES_glusterfs-server := glusterfsd.1
DEB_INSTALL_MANPAGES_glusterfs-client := glusterfs.1

common-build-arch::
        help2man -n "GlusterFS server" glusterfsd/src/glusterfsd | sed
's,lt-glusterfsd,glusterfsd,' > glusterfsd.1
        help2man -n "GlusterFS client" glusterfs-fuse/src/glusterfs |
sed 's,lt-glusterfs,glusterfs,' > glusterfs.1

clean::
        rm -rf glusterfsd.1 glusterfs.1
---snap---

But if I do this, I had to exclude the autotools.mk file. Is there any
easier way to add the autogen.sh execution? Because without this, the
configure file won't be generated which is needed for the build. Yes I
can do this by hand, but it would be nicer if we can include this.

Best regards,

   Matthias






More information about the Pkg-glusterfs-devel mailing list