Hello, While making the package I get the out ... checking alt pid path... /var/state/ups checking driver path... ${exec_prefix}/bin checking cgi path... /usr/share/webapps/nut ... This brings also problems in systemd scripts which are not well expanded after installation: # cat /usr/lib/systemd/system/nut-driver.service [Unit] Description=Network UPS Tools - power device driver controller After=local-fs.target network.target StopWhenUnneeded=yes [Service] ExecStart=${exec_prefix}/bin/upsdrvctl start ExecStop=${exec_prefix}/bin/upsdrvctl stop Type=forking This is my configure command: ./configure \ --without-wrap \ --with-user=ups \ --with-group=nut \ --with-usb \ --with-cgi \ --prefix=/usr \ --datadir=/usr/share/ups \ --sysconfdir=/etc/ups \ --with-cgipath=/usr/share/webapps/nut \ --with-udev-dir=/usr/lib/udev \ --with-systemdsystemunitdir=/lib/systemd/system \ --with-htmlpath=/usr/share/webapps/nut Thanks
Arnaud Quette
2012-Oct-15 21:38 UTC
[Nut-upsdev] exec_prefix expansion in configure script
2012/10/15 Marc Recht? <marc3 at rechte.fr>> > Hello,salut Marc, long time no see...> While making the package I get the out > ... > checking alt pid path... /var/state/ups > checking driver path... ${exec_prefix}/bin > checking cgi path... /usr/share/webapps/nut > ... > > This brings also problems in systemd scripts which are not well expanded after installation: > > # cat /usr/lib/systemd/system/nut-driver.service > [Unit] > Description=Network UPS Tools - power device driver controller > After=local-fs.target network.target > StopWhenUnneeded=yes > > [Service] > ExecStart=${exec_prefix}/bin/upsdrvctl start > ExecStop=${exec_prefix}/bin/upsdrvctl stop > Type=forking > (...)right, thanks for spotting. fixed in trunk, r3757. patch link (need ~1 h iirc to be available): http://trac.networkupstools.org/projects/nut/changeset/3757 cheers, Arnaud -- new blog - http://arnaud.quette.fr