Hi,
I've posted about a FreeBSD port ("package") earlier, and I have now
updated it with 2.9p3.
This also enables python and perl support which was broken in my last
port. PHP is still wreaked though..
The patches submitted in https://sourceforge.net/p/owfs/patches/19/,
https://sourceforge.net/p/owfs/patches/20/ and the loop patch I've
posted here earlier are all included.
To use it (assumes /root/owfs.shar and existing ports tree, and machine
using pkgng):
mkdir -p /usr/ports/comms/owfs
cd /usr/ports/comms/owfs
sh /root/owfs.shar
make config
make package
pkg add /usr/ports/packages/All/owfs-2.9p3.txz
There is no init-script for owserver yet, mainly since it lacks pid-file
support, and I'm already running mine through supervisord..
This has only been tested on FreeBSD 9.2 amd64.
/Johan
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./pkg-plist
# ./distinfo
# ./Makefile.options
# ./Makefile
# ./files
# ./files/patch-module-owlib-src-include-ow.h
# ./files/patch-configure.ac
# ./files/patch-module-swig-perl5-Makefile.am
# ./files/patch-src-man-Makefile.am
# ./files/patch-ownet-c-src-include-ow_debug.h
# ./files/patch-module-owserver-src-c-loop.c
# ./files/patch-module-swig-python-python.m4
# ./files/patch-owlib-src-include-ow_debug.h
# ./files/patch-module-swig-python-setup.py.in
# ./pkg-descr
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'ef3e7f63841ae908ba397c2bef1fbad6'
X%%OWSHELL%%bin/owdir
X%%OWSHELL%%bin/owexist
Xbin/owexternal
X%%OWFS%%bin/owfs
X%%OWFTPD%%bin/owftpd
X%%OWSHELL%%bin/owget
X%%OWHTTPD%%bin/owhttpd
X%%OWMON%%bin/owmon
X%%OWSHELL%%bin/owpresent
X%%OWSHELL%%bin/owread
X%%OWSERVER%%bin/owserver
X%%OWTAP%%bin/owtap
X%%OWSHELL%%bin/owwrite
X%%OWCAPI%%include/owcapi.h
Xinclude/owfs_config.h
X%%OWNET%%include/ownetapi.h
Xlib/libow-2.9.so
Xlib/libow-2.9.so.3
Xlib/libow.la
Xlib/libow.so
X%%OWCAPI%%lib/libowcapi-2.9.so
X%%OWCAPI%%lib/libowcapi-2.9.so.3
X%%OWCAPI%%lib/libowcapi.la
X%%OWCAPI%%lib/libowcapi.so
X%%OWNET%%lib/libownet-2.9.so
X%%OWNET%%lib/libownet-2.9.so.3
X%%OWNET%%lib/libownet.la
X%%OWNET%%lib/libownet.so
X%%OWTCL%%lib/owtcl-1.0/ow-1.0.so
X%%OWTCL%%lib/owtcl-1.0/ow.la
X%%OWTCL%%lib/owtcl-1.0/ow.so
X%%OWTCL%%lib/owtcl-1.0/ow.tcl
X%%OWTCL%%lib/owtcl-1.0/pkgIndex.tcl
X%%OWTCL%%@dirrm lib/owtcl-1.0/pkgIndex.tcl
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ow-2.9p3-py2.7.egg-info
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ow/_OW.so
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ow/__init__.py
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ow/__init__.pyc
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ownet-0.3-py2.7.egg-info
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ownet/__init__.py
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ownet/__init__.pyc
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ownet/connection.py
X%%OWPYTHON%%%%PYTHON_SITELIBDIR%%/ownet/connection.pyc
X%%OWPYTHON%%@dirrmtry %%PYTHON_SITELIBDIR%%/ownet
X%%OWPYTHON%%@dirrmtry %%PYTHON_SITELIBDIR%%/ow
X%%OWPYTHON%%@dirrmtry %%PYTHON_SITELIBDIR%%
X%%OWPYTHON%%@dirrmtry %%PYTHON_LIBDIR%%
X
X%%OWPERL%%%%PERL5_MAN3%%/OWNet.3.gz
X%%OWPERL%%%%SITE_PERL%%/OWNet.pm
X%%OWPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/OW.pm
X%%OWPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/OW/.packlist
X%%OWPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/OW/OW.bs
X%%OWPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/OW/OW.so
X%%OWPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/OWNet/.packlist
X%%OWPERL%%@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/OWNet
X%%OWPERL%%@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/OW
X%%OWPERL%%@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
X%%OWPERL%%@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%
X%%OWPERL%%@dirrmtry %%SITE_PERL%%
X%%OWPERL%%@dirrmtry lib/perl5/%%PERL_VER%%/man
X%%OWPERL%%@dirrmtry lib/perl5/%%PERL_VER%%/mach
X%%OWPERL%%@dirrmtry lib/perl5/%%PERL_VER%%
X%%OWPERL%%@dirrmtry lib/perl5/site_perl
X%%OWPERL%%@dirrmtry lib/perl5
X%%OWPERL%%@dirrmtry %%PERL5_MAN3%%
X
Xman/man1/libowcapi.1.gz
Xman/man1/libownet.1.gz
Xman/man1/owcapi.1.gz
Xman/man1/owdir.1.gz
Xman/man1/owfs.1.gz
Xman/man1/owftpd.1.gz
Xman/man1/owget.1.gz
Xman/man1/owhttpd.1.gz
Xman/man1/owmon.1.gz
Xman/man1/ownet.1.gz
Xman/man1/ownetapi.1.gz
Xman/man1/ownetlib.1.gz
Xman/man1/owpresent.1.gz
Xman/man1/owread.1.gz
Xman/man1/owserver.1.gz
Xman/man1/owshell.1.gz
Xman/man1/owtap.1.gz
Xman/man1/owwrite.1.gz
Xman/man3/DS1427.3.gz
Xman/man3/DS1821.3.gz
Xman/man3/DS1822.3.gz
Xman/man3/DS1825.3.gz
Xman/man3/DS18B20.3.gz
Xman/man3/DS18S20.3.gz
Xman/man3/DS1904.3.gz
Xman/man3/DS1920.3.gz
Xman/man3/DS1921.3.gz
Xman/man3/DS1963L.3.gz
Xman/man3/DS1963S.3.gz
Xman/man3/DS1971.3.gz
Xman/man3/DS1977.3.gz
Xman/man3/DS1982.3.gz
Xman/man3/DS1982U.3.gz
Xman/man3/DS1985.3.gz
Xman/man3/DS1985U.3.gz
Xman/man3/DS1986.3.gz
Xman/man3/DS1986U.3.gz
Xman/man3/DS1990A.3.gz
Xman/man3/DS1991.3.gz
Xman/man3/DS1992.3.gz
Xman/man3/DS1993.3.gz
Xman/man3/DS1994.3.gz
Xman/man3/DS1995.3.gz
Xman/man3/DS1996.3.gz
Xman/man3/DS2401.3.gz
Xman/man3/DS2404.3.gz
Xman/man3/DS2404S.3.gz
Xman/man3/DS2405.3.gz
Xman/man3/DS2406.3.gz
Xman/man3/DS2407.3.gz
Xman/man3/DS2408.3.gz
Xman/man3/DS2409.3.gz
Xman/man3/DS2411.3.gz
Xman/man3/DS2413.3.gz
Xman/man3/DS2415.3.gz
Xman/man3/DS2417.3.gz
Xman/man3/DS2423.3.gz
Xman/man3/DS2430A.3.gz
Xman/man3/DS2431.3.gz
Xman/man3/DS2433.3.gz
Xman/man3/DS2436.3.gz
Xman/man3/DS2437.3.gz
Xman/man3/DS2438.3.gz
Xman/man3/DS2450.3.gz
Xman/man3/DS2502-E48.3.gz
Xman/man3/DS2502-UNW.3.gz
Xman/man3/DS2502.3.gz
Xman/man3/DS2505-UNW.3.gz
Xman/man3/DS2505.3.gz
Xman/man3/DS2506-UNW.3.gz
Xman/man3/DS2506.3.gz
Xman/man3/DS2720.3.gz
Xman/man3/DS2740.3.gz
Xman/man3/DS2751.3.gz
Xman/man3/DS2755.3.gz
Xman/man3/DS2756.3.gz
Xman/man3/DS2760.3.gz
Xman/man3/DS2761.3.gz
Xman/man3/DS2762.3.gz
Xman/man3/DS2770.3.gz
Xman/man3/DS2780.3.gz
Xman/man3/DS2781.3.gz
Xman/man3/DS2788.3.gz
Xman/man3/DS2804.3.gz
Xman/man3/DS2890.3.gz
Xman/man3/DS28E04.3.gz
Xman/man3/DS28EA00.3.gz
Xman/man3/DS28EC20.3.gz
Xman/man3/EDS.3.gz
Xman/man3/EDS0064.3.gz
Xman/man3/EDS0065.3.gz
Xman/man3/EDS0066.3.gz
Xman/man3/EDS0067.3.gz
Xman/man3/EDS0068.3.gz
Xman/man3/EDS0071.3.gz
Xman/man3/EDS0072.3.gz
Xman/man3/EDS0070.3.gz
Xman/man3/EDS0080.3.gz
Xman/man3/EDS0082.3.gz
Xman/man3/EDS0083.3.gz
Xman/man3/EDS0085.3.gz
Xman/man3/EDS0090.3.gz
Xman/man3/MAX31820.3.gz
Xman/man3/MAX31850.3.gz
Xman/man3/MAX31851.3.gz
Xman/man3/EEEF.3.gz
Xman/man3/LCD.3.gz
Xman/man3/MAX31826.3.gz
Xman/man3/OWNet.3.gz
Xman/man3/Thermachron.3.gz
Xman/man3/UVI.3.gz
Xman/man3/mAM001.3.gz
Xman/man3/mCM001.3.gz
Xman/man3/mDI001.3.gz
Xman/man3/mRS001.3.gz
Xman/man3/owperl.3.gz
Xman/man5/owfs.5.gz
Xman/man5/owfs.conf.5.gz
Xman/mann/ow.n.gz
Xman/mann/owtcl.n.gz
ef3e7f63841ae908ba397c2bef1fbad6
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2'
XSHA256 (owfs-2.9p3.tar.gz) =
3a08839a096e40cbed614d3d01648a2f18660bac8bdb383365bb9488ad6d61d8
XSIZE (owfs-2.9p3.tar.gz) = 1455697
aec8793adfd5b7c3f00e62ae41a09ac2
echo x - ./Makefile.options
sed 's/^X//' >./Makefile.options << '354a069cdf6acb08df8470ef2051a874'
XOPTIONS_DEFINE = DEBUG \
X OWSHELL \
X OWNETLIB \
X I2C \
X OWHTTPD \
X OWFTPD \
X OWSERVER \
X OWTAP \
X OWMALLOC \
X OWTRAFFIC \
X OWMON \
X OWCAPI \
X OWPERL \
X OWPHP \
X OWPYTHON \
X OWTCL \
X PROFILING \
X OWFS \
X ZERO \
X USB
X
X# Options disabled
X# PARPORT - linux/parport.h not available
X# W1 - no support on FreeBSD
X
X
XDEBUG_DESC= Enable debug-output
XOWSHELL_DESC= Enable owshell support
XOWNETLIB_DESC= Enable ownetlib support
XI2C_DESC= Enable i2c (DS2482-x00) support
XOWHTTPD_DESC= Enable owhttpd module
XOWFTPD_DESC= Enable owftpd module
XOWSERVER_DESC= Enable owserver module
XOWMALLOC_DESC= Enable owmalloc checking
XOWTRAFFIC_DESC= Enable bus traffic reports
XOWTAP_DESC= Enable owtap module (X11)
XOWMON_DESC= Enable owmon module (X11)
XOWCAPI_DESC= Enable owcapi module
XOWPERL_DESC= Enable owperl module
XOWPHP_DESC= Enable owphp module (BROKEN)
XOWPYTHON_DESC= Enable owpython module
XOWTCL_DESC= Enable owtcl module
XPROFILING_DESC= Enable profiling (BROKEN)
XOWFS_DESC= Enable owfs module (FUSE support)
XZERO_DESC= Enable zeroconf/bonjour
XUSB_DESC= Enable 1-Wire usb DS2490 support
X
X# Options disabled
X#PARPORT_DESC= Enable 1-Wire parallel port DS1410E support
X#W1_DESC=Enable w1 support
X
XOPTIONS_DEFAULT=DEBUG\
X OWSHELL\
X OWNETLIB\
X OWHTTPD\
X OWFTPD\
X OWSERVER\
X OWCAPI\
X USB
354a069cdf6acb08df8470ef2051a874
echo x - ./Makefile
sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19'
X# Created by: Johan Strom <jo...@stromnet.se>
X# $FreeBSD$
X
XPORTNAME= owfs
XPORTVERSION= 2.9p3
XCATEGORIES= comms
XMASTER_SITES= SF/owfs/owfs/${PORTVERSION}
X
XMAINTAINER= jo...@stromnet.se
XCOMMENT= OWFS -- 1-Wire file system
X
XLICENSE= GPLv2
X
XLIBTOOLIZE_ARGS=-c -f -i
XACLOCAL_ARGS= -I${LOCALBASE}/share/aclocal
X
XUSE_AUTOTOOLS=libtoolize aclocal autoheader autoconf automake
XAUTOMAKE_ARGS=--add-missing
XGNU_CONFIGURE=On
X
X# This takes a few seconds so give the user some notice
Xpre-configure:
X ${MKDIR} ${WRKSRC}/m4
X @echo "Preparing build using autotools..."
X
X# Mimic bsd.port.mk Magic as per
http://lists.freebsd.org/pipermail/freebsd-perl/2005-June/000666.html
X# This is to avoid a perllocal.pod file
X#post-configure:
X# cd ${CONFIGURE_WRKSRC}/module/swig/perl5/OW && \
X# ${PERL5} -pi -e 's/
doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
X
XPLIST_SUB= OWFS_VERSION=${PORTVERSION}
X
XMAN1= owfs.1 libowcapi.1 libownet.1 owcapi.1 owdir.1 \
X owftpd.1 owget.1 owhttpd.1 owmon.1 \
X ownet.1 ownetapi.1 ownetlib.1
owpresent.1 \
X owread.1 owserver.1 owshell.1 owtap.1
owwrite.1
XMAN3= DS1427.3 DS1821.3 DS1822.3 DS1825.3 DS18B20.3 \
X DS18S20.3 DS1904.3 DS1920.3 DS1921.3
DS1963L.3 DS1963S.3 \
X DS1971.3 DS1977.3 DS1982.3 DS1982U.3
DS1985.3 DS1985U.3 \
X DS1986.3 DS1986U.3 DS1990A.3 DS1991.3
DS1992.3 DS1993.3 \
X DS1994.3 DS1995.3 DS1996.3 DS2401.3
DS2404.3 DS2404S.3 \
X DS2405.3 DS2406.3 DS2407.3 DS2408.3
DS2409.3 DS2411.3 \
X DS2413.3 DS2415.3 DS2417.3 DS2423.3
DS2430A.3 DS2431.3 \
X DS2433.3 DS2436.3 DS2437.3 DS2438.3
DS2450.3 DS2502-E48.3 \
X DS2502-UNW.3 DS2502.3 DS2505-UNW.3
DS2505.3 DS2506-UNW.3 \
X DS2506.3 DS2720.3 DS2740.3 DS2751.3
DS2755.3 DS2756.3 \
X DS2760.3 DS2761.3 DS2762.3 DS2770.3
DS2780.3 DS2781.3 \
X DS2788.3 DS2804.3 DS2890.3 DS28E04.3
DS28EA00.3 DS28EC20.3 \
X EDS.3 EDS0064.3 EDS0065.3 EDS0066.3
EDS0067.3 EDS0068.3 \
X EDS0071.3 EDS0072.3 EEEF.3 LCD.3
OWNet.3 Thermachron.3 \
X UVI.3 owperl.3
X
XMAN5= owfs.5 owfs.conf.5
XMANN= ow.n owtcl.n
X
X.include "Makefile.options"
X
X.include <bsd.port.options.mk>
X
XCONFIGURE_ARGS+= --enable-owlib
X
X.if ${PORT_OPTIONS:MDEBUG}
XCONFIGURE_ARGS+= --enable-debug
X.else
XCONFIGURE_ARGS+= --disable-debug
X.endif
X
X.if ${PORT_OPTIONS:MOWSHELL}
XCONFIGURE_ARGS+= --enable-owshell
XPLIST_SUB+= OWSHELL=""
X.else
XCONFIGURE_ARGS+= --disable-owshell
XPLIST_SUB+= OWSHELL="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MOWNETLIB}
XCONFIGURE_ARGS+= --enable-ownetlib \
X --enable-ownet
XPLIST_SUB+= OWNET=""
X.else
XCONFIGURE_ARGS+= --disable-ownetlib \
X --disable-ownet
XPLIST_SUB+= OWNET="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MI2C}
XCONFIGURE_ARGS+= --enable-i2c
X.else
XCONFIGURE_ARGS+= --disable-i2c
X.endif
X
X# Linux specific kernel driver
X#.if ${PORT_OPTIONS:MW1}
X#CONFIGURE_ARGS+= --enable-w1
X#.else
XCONFIGURE_ARGS+= --disable-w1
X#.endif
X
X.if ${PORT_OPTIONS:MOWHTTPD}
XCONFIGURE_ARGS+= --enable-owhttpd
XPLIST_SUB+= OWHTTPD=""
X.else
XCONFIGURE_ARGS+= --disable-owhttpd
XPLIST_SUB+= OWHTTPD="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MOWFTPD}
XCONFIGURE_ARGS+= --enable-owftpd
XPLIST_SUB+= OWFTPD=""
X.else
XCONFIGURE_ARGS+= --disable-owftpd
XPLIST_SUB+= OWFTPD="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MOWSERVER}
XCONFIGURE_ARGS+= --enable-owserver
XPLIST_SUB+= OWSERVER=""
X.else
XCONFIGURE_ARGS+= --disable-owserver
XPLIST_SUB+= OWSERVER="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MOWTAP}
XUSE_TK=yes
XUSE_TK_WRAPPER=yes
XCONFIGURE_ARGS+= --enable-owtap
XPLIST_SUB+= OWTAP=""
X.else
XCONFIGURE_ARGS+= --disable-owtap
XPLIST_SUB+= OWTAP="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MOWMALLOC}
XCONFIGURE_ARGS+= --enable-owmalloc
X.else
XCONFIGURE_ARGS+= --disable-owmalloc
X.endif
X
X.if ${PORT_OPTIONS:MOWTRAFFIC}
XCONFIGURE_ARGS+= --enable-owtraffic
X.else
XCONFIGURE_ARGS+= --disable-owtraffic
X.endif
X
X.if ${PORT_OPTIONS:MOWMON}
XUSE_TK=yes
XUSE_TK_WRAPPER=yes
XCONFIGURE_ARGS+= --enable-owmon
XPLIST_SUB+= OWMON=""
X.else
XCONFIGURE_ARGS+= --disable-owmon
XPLIST_SUB+= OWMON="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MOWCAPI}
XCONFIGURE_ARGS+= --enable-owcapi
XPLIST_SUB+= OWCAPI=""
X.else
XCONFIGURE_ARGS+= --disable-owcapi
XPLIST_SUB+= OWCAPI="@comment "
X.endif
X
XSWIG=0
X
X.if ${PORT_OPTIONS:MOWPERL}
XUSES+=perl5
XSWIG=1
XCONFIGURE_ARGS+= --enable-owperl
XPLIST_SUB+= OWPERL=""
X.else
XCONFIGURE_ARGS+= --disable-owperl
XPLIST_SUB+= OWPERL="@comment "
X.endif
X
X# BROKEN
X.if ${PORT_OPTIONS:MOWPHP}
XSWIG=1
XCONFIGURE_ARGS+= --enable-owphp
X.else
XCONFIGURE_ARGS+= --disable-owphp
X.endif
X
X.if ${PORT_OPTIONS:MOWPYTHON}
XUSE_PYTHON=yes
X.include "${PORTSDIR}/Mk/bsd.python.mk"
XSWIG=1
XCONFIGURE_ARGS+= --enable-owpython
XPLIST_SUB+= OWPYTHON=""
X.else
XCONFIGURE_ARGS+= --disable-owpython
XPLIST_SUB+= OWPYTHON="@comment "
X.endif
X
X.if ${SWIG}
XBUILD_DEPENDS+=${LOCALBASE}/bin/swig2.0:${PORTSDIR}/devel/swig20
XCONFIGURE_ARGS+= --enable-swig SWIG=${LOCALBASE}/bin/swig2.0
X.else
XCONFIGURE_ARGS+= --disable-swig
X.endif
X
X.if ${PORT_OPTIONS:MOWTCL}
XUSE_TCL=yes
X.include "${PORTSDIR}/Mk/bsd.tcl.mk"
XCONFIGURE_ARGS+= --enable-owtcl --with-tcl=${TCL_LIBDIR}
XPLIST_SUB+= OWTCL=""
X.else
XPLIST_SUB+= OWTCL="@comment "
XCONFIGURE_ARGS+= --disable-owtcl
X.endif
X
X.if ${PORT_OPTIONS:MPROFILING}
XCONFIGURE_ARGS+= --enable-profiling
X# XXX Broken due to -lgcc_p
X.else
XCONFIGURE_ARGS+= --disable-profiling
X.endif
X
X.if ${PORT_OPTIONS:MOWFS}
XCONFIGURE_ARGS+= --enable-owfs
XPLIST_SUB+= OWFS=""
X# xxx: Not tested, it compiles and all but not sure if fusefs actually works
on freebsd:
XLIB_DEPENDS+=libfuse.so:${PORTSDIR}/sysutils/fusefs-libs
X.else
XCONFIGURE_ARGS+= --disable-owfs
XPLIST_SUB+= OWFS="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MZERO}
XCONFIGURE_ARGS+= --enable-zero
X.else
XCONFIGURE_ARGS+= --disable-zero
X.endif
X
X.if ${PORT_OPTIONS:MUSB}
XCONFIGURE_ARGS+= --enable-usb
XLDFLAGS+= -lusb
X.else
XCONFIGURE_ARGS+= --disable-usb
X.endif
X
X#.if ${PORT_OPTIONS:MPARPORT}
X#CONFIGURE_ARGS+= --enable-parport
X#.else
XCONFIGURE_ARGS+= --disable-parport
X#.endif
X
X.include <bsd.port.mk>
464ef7c6571951809b23e262cbe26e19
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-module-owlib-src-include-ow.h
sed 's/^X//' >./files/patch-module-owlib-src-include-ow.h <<
'7be8d8e0503553cfbb25d02475914932'
X--- module/owlib/src/include/ow.h 2014-04-01 22:33:22.606598222 +0200
X+++ module/owlib/src/include/ow.h 2014-04-01 22:33:24.339516100 +0200
X@@ -205,7 +205,7 @@
X /* If no timegm, use our version */
X #if (!defined _BSD_SOURCE && !defined _SVID_SOURCE)
X #include <time.h>
X-time_t timegm(struct tm *tm)
X+time_t timegm(struct tm *tm);
X #endif
X
X /* Parport enabled uses two flags (one a holdover from the embedded work) */
7be8d8e0503553cfbb25d02475914932
echo x - ./files/patch-configure.ac
sed 's/^X//' >./files/patch-configure.ac << '8b68467318dabb6dddd2c6c539868a01'
X--- configure.ac 2014-04-03 21:32:48.805005572 +0200
X+++ configure.ac 2014-04-03 21:55:31.106892399 +0200
X@@ -111,6 +111,7 @@
X
X
X HAVE_DARWIN="false"
X+HAVE_FREEBSD="false"
X HAVE_CYGWIN="false"
X
X AC_MSG_CHECKING([for special host])
X@@ -124,6 +125,10 @@
X HAVE_DARWIN="true"
X AC_MSG_RESULT([Darwin])
X ;;
X+ *-freebsd*)
X+ HAVE_FREEBSD="true"
X+ AC_MSG_RESULT([FreeBSD])
X+ ;;
X *)
X AC_MSG_RESULT([Other host])
X ;;
X@@ -132,6 +137,8 @@
X AM_CONDITIONAL(HAVE_DARWIN, test "${HAVE_DARWIN}" = "true")
X AC_SUBST(HAVE_CYGWIN)
X AM_CONDITIONAL(HAVE_CYGWIN, test "${HAVE_CYGWIN}" = "true")
X+AC_SUBST(HAVE_FREEBSD)
X+AM_CONDITIONAL(HAVE_FREEBSD, test "${HAVE_FREEBSD}" = "true")
X
X PIC_FLAGS=""
X if test "$lt_prog_compiler_pic_works" = yes; then
8b68467318dabb6dddd2c6c539868a01
echo x - ./files/patch-module-swig-perl5-Makefile.am
sed 's/^X//' >./files/patch-module-swig-perl5-Makefile.am <<
'921bf6f53813e9a9737ebd3a851e4199'
X--- module/swig/perl5/Makefile.am 2014-04-03 22:21:00.812561452 +0200
X+++ module/swig/perl5/Makefile.am 2014-04-03 22:22:08.041129260 +0200
X@@ -20,6 +20,11 @@
X ( cd OW; $(PERL) Makefile.PL INSTALLDIRS=vendor )
X else
X ( cd OW; $(PERL) Makefile.PL )
X+if HAVE_FREEBSD
X+ $(PERL) -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//'
OW/Makefile
X+
X+# The FreeBSD Makefile trickery disables installing of perllocal.pod, as per
http://lists.freebsd.org/pipermail/freebsd-perl/2005-June/000666.html
X+endif
X endif
X endif
X
921bf6f53813e9a9737ebd3a851e4199
echo x - ./files/patch-src-man-Makefile.am
sed 's/^X//' >./files/patch-src-man-Makefile.am <<
'e65356668749a3900c3fa2263c666e60'
X--- src/man/Makefile.am 2014-04-03 22:44:48.728471387 +0200
X+++ src/man/Makefile.am 2014-04-03 22:44:54.491632857 +0200
X@@ -41,7 +41,15 @@
X ow.n
X EXTRA_DIST = ${man_MANS} *.?so
X
X+if !HAVE_FREEBSD
X install-data-am: install-man install-so-man
X+else
X+# The -so-man target seems to go through all manpages, remove lines starting
with .so,
X+# but this does not work on FreeBSD.
X+# However, it is not required anyway (our man does not show these lines at
least?)
X+# so lets just skip it.
X+install-data-am: install-man
X+endif
X
X install-so-man:
X for i in $(man_MANS); do \
e65356668749a3900c3fa2263c666e60
echo x - ./files/patch-ownet-c-src-include-ow_debug.h
sed 's/^X//' >./files/patch-ownet-c-src-include-ow_debug.h <<
'500b86ee5e77d682093107e5627a52fe'
X--- module/ownet/c/src/include/ow_debug.h 2014-04-08 22:49:43.520751677
+0200
X+++ module/ownet/c/src/include/ow_debug.h 2014-04-08 22:49:46.277979890
+0200
X@@ -110,7 +110,7 @@
X #define ERROR_DETAIL(...) { } while (0);
X #define ERROR_DEBUG(...) { } while (0);
X
X-#define FATAL_ERROR(...) { exit(EXIT_FAILURE) } while (0);
X+#define FATAL_ERROR(...) { exit(EXIT_FAILURE); } while (0);
X
X #define Debug_Bytes(title,buf,length) { } while (0);
X #define Debug_Writev(io, iosz) { } while (0);
500b86ee5e77d682093107e5627a52fe
echo x - ./files/patch-module-owserver-src-c-loop.c
sed 's/^X//' >./files/patch-module-owserver-src-c-loop.c <<
'4c84ce9fc05164c909a90c2275de0745'
X--- module/owserver/src/c/loop.c 2013/03/24 01:23:29 1.20
X+++ module/owserver/src/c/loop.c 2014/04/03 01:20:41 1.21
X@@ -1,5 +1,5 @@
X /*
X-$Id: loop.c,v 1.20 2013/03/24 01:23:29 alfille Exp $
X+$Id: loop.c,v 1.21 2014/04/03 01:20:41 alfille Exp $
X OW_HTML -- OWFS used for the web
X OW -- One-Wire filesystem
X
X@@ -43,7 +43,6 @@
X
X static GOOD_OR_BAD LoopSetup(struct handlerdata *hd)
X {
X- _MUTEX_INIT(hd->to_client);
X if ( pipe(hd->ping_pipe) != 0 ) {
X ERROR_DEBUG("Cannot create pipe pair for keep-alive pulses") ;
X return gbBAD ;
X@@ -56,7 +55,6 @@
X
X static void LoopCleanup(struct handlerdata *hd)
X {
X- _MUTEX_DESTROY(hd->to_client);
X if (hd->ping_pipe[fd_pipe_read] > -1 ) {
X close(hd->ping_pipe[fd_pipe_read]) ;
X }
4c84ce9fc05164c909a90c2275de0745
echo x - ./files/patch-module-swig-python-python.m4
sed 's/^X//' >./files/patch-module-swig-python-python.m4 <<
'4d2ff46ebcae1e9c8e67dd0728fbdd2f'
X--- module/swig/python/python.m4 2014-04-03 23:23:50.451103912 +0200
X+++ module/swig/python/python.m4 2014-04-03 23:24:21.281043536 +0200
X@@ -32,7 +32,7 @@
X AC_ARG_WITH(pythonconfig, [ --with-pythonconfig Set location of
python-config executable],[ PYTHONCONFIGBIN="$withval"], [PYTHONCONFIGBIN=yes])
X
X if test "x$PYTHONCONFIGBIN" = xyes; then
X- AC_CHECK_PROGS(PYTHONCONFIG, python-config python2.5-config
python2.4-config python2.3-config)
X+ AC_CHECK_PROGS(PYTHONCONFIG, python-config python2.7-config
python2.5-config python2.4-config python2.3-config)
X else
X PYTHONCONFIG="$PYTHONCONFIGBIN"
X fi
X@@ -44,7 +44,7 @@
X # First figure out the name of the Python executable
X
X if test "x$PYBIN" = xyes; then
X-AC_CHECK_PROGS(PYTHON, python python2.5 python2.4 python2.3 python2.2
python2.1 python2.0 python1.6 python1.5 python1.4 python)
X+AC_CHECK_PROGS(PYTHON, python python2.7 python2.5 python2.4 python2.3
python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python)
X else
X PYTHON="$PYBIN"
X fi
4d2ff46ebcae1e9c8e67dd0728fbdd2f
echo x - ./files/patch-owlib-src-include-ow_debug.h
sed 's/^X//' >./files/patch-owlib-src-include-ow_debug.h <<
'fdb3c83e2275abb5df3fdb42bbfe4027'
X--- module/owlib/src/include/ow_debug.h 2014-04-08 22:50:32.165752804
+0200
X+++ module/owlib/src/include/ow_debug.h 2014-04-08 22:50:46.142216637
+0200
X@@ -90,7 +90,7 @@
X #define ERROR_DETAIL(...) do { } while (0)
X #define ERROR_DEBUG(...) do { } while (0)
X
X-#define FATAL_ERROR(...) do { exit(EXIT_FAILURE) } while (0)
X+#define FATAL_ERROR(...) do { exit(EXIT_FAILURE); } while (0)
X
X #define Debug_Bytes(title,buf,length) do { } while (0)
X #define Debug_OWQ(owq) do { } while (0)
fdb3c83e2275abb5df3fdb42bbfe4027
echo x - ./files/patch-module-swig-python-setup.py.in
sed 's/^X//' >./files/patch-module-swig-python-setup.py.in <<
'4f8923c67b287cdb08351a2995e1681e'
X--- module/swig/python/setup.py.in 2014-04-03 21:30:38.735201915 +0200
X+++ module/swig/python/setup.py.in 2014-04-03 21:40:52.043246219 +0200
X@@ -77,6 +77,9 @@
X enable_usb = '@ENABLE_USB@'
X enable_mt = '@ENABLE_MT@'
X have_darwin = '@HAVE_DARWIN@'
X+have_freebsd = '@HAVE_FREEBSD@'
X+
X+bsd_fixes = have_darwin == 'true' or have_freebsd == 'true'
X
X # have to split up the _CFLAGS, _LIBS variables since there are problem
X # when they contain spaces. The append() function doesn't work very good.
X@@ -109,7 +112,7 @@
X if len('@PTHREAD_LIBS@') > 1:
X my_extra_link_args = my_extra_link_args +
string.split('@PTHREAD_LIBS@', ' ')
X
X-if have_darwin == 'true':
X+if bsd_fixes:
X my_extra_link_args = my_extra_link_args +
string.split('../../owlib/src/c/.libs/libow.so', ' ')
X
X if len('@PYLDFLAGS@') > 1:
X@@ -132,7 +135,7 @@
X # my_extra_objects = ""
X # my_libraries = [ 'ow' ]
X
X-if have_darwin == 'true':
X+if bsd_fixes:
X my_libraries = [ ]
X
X removals = ['-Wstrict-prototypes']
4f8923c67b287cdb08351a2995e1681e
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5'
XOWFS -- 1-Wire file system.
XOWFS is an easy way to use the powerful 1-wire system of Dallas/Maxim.
X
XOWFS is a simple and flexible program to monitor and control the physical
Xenvironment. You can write scripts to read temperature, flash lights, write
Xto an LCD, log and graph, ...
X
XWWW: http://www.owfs.org/
0e313719ff012ceaf97a028d51caa8f5
exit
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers