dave-mccraw / pkg-emoncms Goto Github PK
View Code? Open in Web Editor NEWDebian packaging the OpenEnergyMonitor 'emoncms' repo
Home Page: https://github.com/emoncms/emoncms
License: GNU Affero General Public License v3.0
Debian packaging the OpenEnergyMonitor 'emoncms' repo
Home Page: https://github.com/emoncms/emoncms
License: GNU Affero General Public License v3.0
At the moment, installation instructions still require Swift Mailer to be pulled from PEAR / PECL but it is available (on sid
) as the package libphp-swiftmailer
[1].
Rather than ask people to expose sid
, it might be better to host this package from our own emon-repo on s3, and simplify the installation one step further by making it a debian control dependency.
Hello Dave, I see you've upgraded this earlier today, it is good for people to use for v8.3.2?
Slowly working through the process here, I had a bit of trouble with installing one of required tools earlier but thats now fixed.
What would you recommend for what I enter in the steps:
dch -v 8.0.8
dch -v 8.0.8 --news
I could perhaps host this on the files.openenergymonitor.org server? Once the deb has been generated what's the progress for hosting it and providing different architecture builds?
Thanks a lot for your help!
Would it be possible to have the debian package not depend on apache? I have nginx already running on my raspberry pi and would prefer not to install apache2. I am not too familiar with debian packages, but would think it should be possible to depend on nginx or apache instead of only on apache?
(This issue originated as emoncms/emoncms#209 and was moved here on @Dave-McCraw request.)
It's been pointed out on the forum that the use of debconf
to manage configuration precludes the use of a passwordless DB user, because hitting enter on an empty password field means "use default".
I don't plan to fix this, as I think it would be much easier (and better) for people just to set up a proper DB user with a password.
However, no objection in principal if someone can figure out a clean way of adding this in (hint: you'll also need to add some intelligence to the CREATE DATABASE
command being executed in debian/postinst
)
From OpenEnergyMonitor forum, looks like the postinst script is falling over because default.settings.php has already been renamed to settings.php on the initial installation :
Replacing existing emoncms config as follows:
- MySQL configuration : root connecting to emoncms db on localhost
- SMTP configuration : connecting to to send as emoncms (noreply) (emoncms-noreply@localhost)
- Allow password resets :
mv: cannot stat `/usr/share/emoncms/www/default.settings.php': No such file or directory
Verifying feed directories exist and have the correct ownership...
- /var/lib/phpfiwa
- /var/lib/phpfina
- /var/lib/phptimeseries
- /var/lib/timestore
Attempting to create 'emoncms' mysql database (with the 'root' user)...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- Failed (check username and password are correct, using dpkg-reconfigure. Check grants allow table creation, etc...)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.