[Nut-upsdev] Debian package

Dmitry Bely dmitry.bely at gmail.com
Mon May 28 12:09:17 UTC 2007


Trying to build Debian package from the fresh SVN checkout. Some notes:

1. Autoconf should be invoked automatically (I think).
2. Strange thing - I cannot build the package again :

root at vserver1:~/nut-svn# dpkg-buildpackage
[...]
CFLAGS=' -O2' ./configure --enable-strip --build=x86_64-linux-gnu
--host=x86_64-linux-gnu
--with-linux-hiddev=/usr/include/linux/hiddev.h \
            --prefix=/ \
            --sysconfdir=/etc/nut \
            --mandir=/usr/share/man \
            --libdir=/usr/lib \
            --includedir=/usr/include \
            --without-ssl \
            --with-hal \
            --with-cgi \
            --with-lib \
            --disable-shared \
            --with-statepath=/var/run/nut \
            --with-altpidpath=/var/run/nut \
            --with-drvpath=/lib/nut \
            --with-cgipath=/usr/lib/cgi-bin/nut \
            --with-htmlpath=/var/www/nut \
            --with-pidpath=/var/run/nut \
            --datadir=/usr/share/nut \
            --with-user=nut --with-group=nut
Network UPS Tools version 2.1.0
[...]
checking sys/time.h presence... yes
checking for sys/time.h... yes
./configure: line 5464: NUT_TYPE_SOCKLEN_T: command not found
./configure: line 5465: NUT_TYPE_UINT16_T: command not found
./configure: line 5466: NUT_TYPE_UINT8_T: command not found
checking for --with-all... not given
./configure: line 5496: syntax error near unexpected token `serial,'
./configure: line 5496: `NUT_ARG_WITH(serial, build and install serial
drivers, yes)'
make: *** [configure-stamp] Error 2

Could you explain what is wrong?

- Dmitry Bely



More information about the Nut-upsdev mailing list