Package Details: owfs 3.1p0-1

Package Base: owfs
Description: An easy way to use the powerful 1-wire system of Dallas/Maxim.
Upstream URL: http://www.owfs.org
Category: system
Licenses: GPL
Conflicts: owfs
Provides: owfs
Submitter: plutonium
Maintainer: endre
Last Packager: endre
Votes: 8
First Submitted: 2008-03-17 12:35
Last Updated: 2015-04-30 15:13

Dependencies (3)

Required by (0)

Sources

Latest Comments

Comment by jandre

2015-05-20 15:55

After upgrading to the latest version a Python program I've written failed; t appears that the Python support is missing. On the configuration line swig is disabled and it is a prerequisite for Python. So, even though Python is enabled is doesn't get built.

I rebuilt enabling it and everything worked fine.

Comment by endre

2015-04-30 15:14

Thank you iq2luc and mikep. I finally got time to merge your comments and bump the package.

Comment by iq2luc

2015-03-23 17:03

Version 3.1p0 is available.
I'm building it using this patch:

diff -ruN owfs-orig/module/owshell/src/c/Makefile.am owfs/module/owshell/src/c/Makefile.am
--- owfs-orig/module/owshell/src/c/Makefile.am 2015-01-11 03:31:32.000000000 +0200
+++ owfs/module/owshell/src/c/Makefile.am 2015-03-23 18:47:03.211445494 +0200
@@ -41,6 +41,7 @@
-Wcast-align \
-Wstrict-prototypes \
-Wredundant-decls \
+ ${LIBUSB_CFLAGS} \
${EXTRACFLAGS}

LDADD = ${LD_EXTRALIBS} ${OSLIBS}
diff -ruN owfs-orig/module/owtcl/Makefile.am owfs/module/owtcl/Makefile.am
--- owfs-orig/module/owtcl/Makefile.am 2015-01-11 03:31:32.000000000 +0200
+++ owfs/module/owtcl/Makefile.am 2015-03-23 18:46:52.681151547 +0200
@@ -39,6 +39,7 @@
-Wcast-align \
-Wstrict-prototypes \
-Wredundant-decls \
+ ${LIBUSB_CFLAGS} \
${EXTRACFLAGS} \
${PTHREAD_CFLAGS} \
$(TCL_DEFS) \

...and this PKGBUILD:

# Contributor: plut0nium <charles(DOT)fourneau(AT)gmail(DOT)com >
# tzervo <tzervo@gmail.com>

pkgname="owfs"
pkgver=3.1p0
pkgrel=0
pkgdesc="An easy way to use the powerful 1-wire system of Dallas/Maxim."
arch=('any')
url="http://www.owfs.org"
license=('GPL')
groups=()
# Dependencies are not mandatory to build owserver, but:
# - fuse is needed for owfs
# - swig is needed for scripting languages bindings (perl, python...)
depends=('fuse' 'swig' 'python2')
makedepends=()
provides=('owfs')
conflicts=('owfs')
replaces=()
backup=()
options=()
install=
source=(http://downloads.sourceforge.net/sourceforge/owfs/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('3d8919af078ae8c9171e5713a1789195')

prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../../fix-libusb-includes.patch
}

build() {
cd "$srcdir/$pkgname-$pkgver"
autoreconf && ./configure --disable-swig --disable-owperl --prefix=/usr --with-python="/usr/bin/python2" --with-pythonconfig="/usr/bin/python2-config"
make
}

package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}

Comment by mikep

2015-01-25 14:51

2.9p9 is out.

Also you need to add the package() function to PKGBUILD

# Contributor: plut0nium <charles(DOT)fourneau(AT)gmail(DOT)com >
# tzervo <tzervo@gmail.com>
pkgname="owfs"
pkgver=2.9p9
pkgrel=0
pkgdesc="An easy way to use the powerful 1-wire system of Dallas/Maxim."
arch=('any')
url="http://www.owfs.org"
license=('GPL')
groups=()
# Dependencies are not mandatory to build owserver, but:
# - fuse is needed for owfs
# - swig is needed for scripting languages bindings (perl, python...)
depends=('fuse' 'swig' 'python2')
makedepends=()
provides=('owfs')
conflicts=('owfs')
replaces=()
backup=()
options=()
install=
source=(http://downloads.sourceforge.net/sourceforge/owfs/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('ce5c8142c3e5eb0748d533fdbeff51e1')

build() {
cd "$srcdir/$pkgname-$pkgver"

./configure --prefix=/usr --with-python="/usr/bin/python2" --with-pythonconfig="/usr/bin/python2-config"
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"

make DESTDIR="$pkgdir" install
}

Comment by joep

2014-12-14 07:25

I'm using owfs with a USB bus master (using a DS9490R).
Launching owfs (from AUR) with:
sudo owfs -u --allow_other -m /mnt/1-wire (I created the mount point /mnt/1-wire)
does nothing. I removed the aur owfs, downloaded the 2.9p7 source and ran configure as follows:
./configure --enable-owfs --prefix=/usr --with-python="/usr/bin/python2" --with-pythonconfig="/usr/bin/python2-config"
The following warnings were issued:
...
configure:16384: WARNING: Can't find libusb
configure:16389: WARNING: libusb not found, usb will be disabled
...
USB IS DISABLED
...
libusb is installed on my system.

Comment by endre

2014-10-15 11:30

Adopted package, version bumped to latest stable 2.9p7. Now it compiles.

Comment by rpg

2013-10-08 20:26

The ed editor seems to be missing from the build dependencies:

From the owfs build log:
[…]
/usr/bin/install -c -m 644 owtcl.n ow.n '/tmp/yaourt-tmp-human/aur-owfs/pkg/owfs/usr/share/man/mann'
/bin/sh: line 12: ed: command not found.
(… repeated 344 times …)
/bin/sh: line 17: ed: command not found.
(… repeated 344 times …)
make[3]: Leaving directory `/tmp/yaourt-tmp-human/aur-owfs/src/owfs-2.9p1/src/man'
[…]

After installing ed manually everything went well :)

Anonymous comment

2013-01-23 20:13

Upgraded with medvedko package.
Thanks !

Comment by archist

2012-12-02 19:04

Could you please add a systemd service file?

Comment by Achrn

2012-11-27 22:24

It's probably bad form to comment on my own comment, but I've realised that the python2 probably ought to be in 'makedepends' rather than 'depends', since it would presumably then build the python module in owfs, but not mandate that the machine where it gets installed has python.

Comment by Achrn

2012-11-27 09:09

Although swig is listed as a requisite so that the language modules are built, python is not listed. This means that on ArchLinuxARM the package builds without the python module, and that's what is in the repository for ALARM.

If the depends= directive has 'python2' added, then the package builds and has both perl and poython modules.

ALARM won't generally deviate from ArchLinux PKGBUILD files (without a very good reason), so can this be added to teh ArchLinux PKGBUILD?