You are not logged in.

#1 2006-09-15 08:54:11

gs
Member
From: UK
Registered: 2004-03-06
Posts: 147

efax-gtk // Question about makedepends

I have built efax-gtk, and below is the PKGBUILD and install file.

I believe it uses other undocumented make dependencies. (libsigc++  GTK+-2 are quoted as the make and running dependencies). You can see from the way the spooler tries to install directly in the file system, that not everything is perfect in the source bundle.

What sort of things matter that should be looked for in configure and stuff. Or perhaps, everything else will be standard builders kit?

# $Id: PKGBUILD
# Contributor: Geoff Slocock (gs) <gslocock>
pkgname=efax-gtk
pkgver=3.0.11
pkgrel=1
pkgdesc="A frontended version of efax"
arch=(i686 x86_64)
url="http://efax-gtk.sourceforge.net"
license="GPL"
depends=('libsigc++2.0' 'gtk2')
#makedepends=()
source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.src.tgz)
install=efax-gtk.install
md5sums=('81b86e3f662aa8e80158560ac82c74fe')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --with-spooldir=$startdir/pkg/var/spool/fax
# There is a nested build for spooler which tries to install directly
# and therefore needs a redirect. 
  make || return 1
  make prefix=$startdir/pkg/ install
  mkdir $startdir/pkg/usr
  mv $startdir/pkg/bin $startdir/pkg/usr/bin
  mv $startdir/pkg/man $startdir/pkg/usr/man
  mv $startdir/pkg/share $startdir/pkg/usr/share
# This installs efax-gtkrc into /etc. (There is no --with-sysconfdir option)
}
post_install() {
/bin/true

echo ">> A cups spooler can be set up by running"
echo ">> /usr/sbin/lpadmin -p FaxPrinter -E -v socket://localhost:9900"
echo ">> as root. lp will need user permissions, as also will the fax modem."
echo ">> If necessary, refer to man efax-gtk."
}

post_upgrade() {
/bin/true
}

pre_remove() {
/bin/true
}

op=$1
shift

$op "$@"

Geoff


What the beep was that?

Offline

#2 2006-09-15 10:11:25

gs
Member
From: UK
Registered: 2004-03-06
Posts: 147

Re: efax-gtk // Question about makedepends

Well, yes, I should have read the sticky!

I have checked the output of ./configure

pkg-config needs adding!

gs and gv are noted as rather obvious dependencies for viewing faxes.

Is this for checking gnome-print? If it is, I think it can be disabled.

checking GTK_UNIX_PRINT_CFLAGS... -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GTK_UNIX_PRINT_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

Thanks

Geoff


What the beep was that?

Offline

#3 2006-09-15 15:55:45

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: efax-gtk // Question about makedepends

Use

make DESTDIR=$startdir/pkg/ install 

or

make prefix=$startdir/pkg/usr install 

instead of

make prefix=$startdir/pkg/ install 

. It will put the files in the correct locations so

mkdir $startdir/pkg/usr
  mv $startdir/pkg/bin $startdir/pkg/usr/bin
  mv $startdir/pkg/man $startdir/pkg/usr/man
  mv $startdir/pkg/share $startdir/pkg/usr/share 

won't be needed.

Also, the --with-spooldir=$startdir/pkg/var/spool/fax might cause a problem because sometime the paths sent to the configure script are hard-coded in the apps. If I understand correctly, when you use --with-spooldir=/var/spool/fax it tries to create the directory on the system. Is that correct? If that's the case, you could use --with-spooldir=$startdir/pkg/var/spool/fax but make sure the package still works when $startdir/pkg is removed. If not, use the --with-spooldir=/var/spool/fax and patch the Makefile so it does't try to create the directory on the system. You 'll need to create $startdir/pkg/var/spool/fax manually.

About gnome-print, do you want to have it disabled?

Offline

#4 2006-09-15 17:26:30

gs
Member
From: UK
Registered: 2004-03-06
Posts: 147

Re: efax-gtk // Question about makedepends

Thanks Snowman.

1) It does try to create the spooler directory in the system; and it does work this new way. The documenation says that /var/spool/fax is the default location; and -- since it does work this new way -- it rather looks as though one couldn't effect any substantive change by applying --with-spooldir differently.

2) The hassle over making and moving directories, is really about "/usr/etc/efax-gtkrc". I cannot find that it does anything more than be there as a reference source. On startup, ~.efax-gtkrc gets created; and that (together with .efax-gtk_mainwin_save .efax-gtk_queued_server_files efax-gtk-server faxin faxout faxsent) get used as the storage and settings.

I have moved the alleged main settings to /etc/efax-gtkrc, and -- as I said -- it doesn't make any real difference. It would be confusing to Archers, if it were not there; and the --with-syconfdir option doesn't work. The /etc directory evidently gets applied according to --prefix=/usr, regardless of anything else.

Considering efax-gtkrc does not seem to be used, the developers evidently felt they didn't need to bother with that extra nicety.

3) In the Settings Panel, there is indeed an option for using GTK+ Print. But what would be the makedepends for this.

---
This is a build for something of a Heath Robinson source. But the application runs without problem. It has been stable through severral updates, also. So despite the oddities, I am hoping it can get adopted.

As for patching, that could end up looking more like a complete rewrite.

Thanks

Geoff


What the beep was that?

Offline

#5 2006-09-15 20:11:37

gs
Member
From: UK
Registered: 2004-03-06
Posts: 147

Re: efax-gtk // Question about makedepends

I have got a correction to make.

/etc/efax-gtkrc (and presumably /usr/etc/efax-gtkrc, if it's installed there) is copied over as the basis for the first user settings file. I establised this by making an alteration in the original.

Geoff

BTW I've also had a look at other contender GUI's. This seems to be the best, except there are those that run hylafax.


What the beep was that?

Offline

#6 2006-09-15 21:02:10

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: efax-gtk // Question about makedepends

Use the PKGBUILD below.

1. Your PKGBUILD above was installing the spooler stuf in an incorrect location (see the filelist). Probably, because you were not using DESTDIR.

2. It's --sysconfdir not --with-syconfdir

3. The gnome-print needs gtk2 wich is already in depends. No change needed.

4. I've also removed the specific sf mirror.

pkgname=efax-gtk
pkgver=3.0.11
pkgrel=1
pkgdesc="A frontended version of efax"
arch=(i686 x86_64)
url="http://efax-gtk.sourceforge.net"
license="GPL"
depends=('libsigc++2.0' 'gtk2')
makedepends=('pkgconfig')
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.src.tgz)
md5sums=('81b86e3f662aa8e80158560ac82c74fe')
install=efax-gtk.install

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc 
  make || return 1
  make DESTDIR=$startdir/pkg install
} 

Offline

#7 2006-09-15 21:51:47

gs
Member
From: UK
Registered: 2004-03-06
Posts: 147

Re: efax-gtk // Question about makedepends

Magic!!

So the developer got things right. And I'm learning stuff, bit by bit. Thanks Snowman for trying this out and getting me straightened out, on this one.

The DESTDIR thing is interesting, because I think I used that on earlier versions.

Such a lot to learn!

Geoff


What the beep was that?

Offline

#8 2006-09-16 00:40:48

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: efax-gtk // Question about makedepends

No problem. 8)
BTW, to get the configure options:
$ ./configure --help

Offline

#9 2006-09-16 07:30:34

gs
Member
From: UK
Registered: 2004-03-06
Posts: 147

Re: efax-gtk // Question about makedepends

Yeah, I had done that and not studied the output properly. Still learning! lol

Geoff


What the beep was that?

Offline

Board footer

Powered by FluxBB