89 Commits

Author SHA1 Message Date
Matthew Wall
6cf7f5cd24 handle cases where permissions are broken before the installation. fixed typo in rpm user_dir macro. do explicit daemon-reload for rpm systemd unit configuration. 2024-02-04 14:32:21 -05:00
Matthew Wall
3389e900ae defaults are generated on the fly now, not from template 2024-01-07 13:09:42 -05:00
Matthew Wall
f581efd8ba move /etc/default/weewx to post 2024-01-07 12:22:05 -05:00
Matthew Wall
2d5e8d1829 no need for cat before sed 2024-01-07 09:04:37 -05:00
Matthew Wall
7345c79cc1 align deb and rpm config file handling. enable verbosity for deb package. 2024-01-07 00:33:00 -05:00
matthew wall
66562830ab no need to replace WEEWX_ROOT any more 2024-01-06 09:52:59 -05:00
matthew wall
f39cc11306 happy new year! 2024-01-02 08:45:27 -05:00
Matthew Wall
0367c167a9 as per debian guidelines, put the daemon stop in prerm, but the daemon removal in postrm. ensure that both systemd and sysv work on debian systems, for both deb and pip installs. try to keep lintian happy, but it seems to have differences between deb10 and deb12. 2024-01-01 21:48:55 -05:00
matthew wall
273eed5399 put systemd, udev, skin, and extensions into post 2023-12-28 22:04:01 -05:00
matthew wall
b2c424c485 complete the revert to system logging facility, no splitting out of weewx messages to separate file. logrotate and rsyslog conf files are now robust so that they can be enabled by symlinks if user wants it - documented in the wiki 2023-12-21 08:37:03 -05:00
Matthew Wall
3c55c9188b do not install rsyslog or logrotate script, but copy them to weewx data so they can be used if user wants to use syslog instead of standalone logging 2023-12-19 10:02:12 -05:00
Matthew Wall
cf060c2bc3 fixed typo in deb rules for log dir 2023-12-18 22:22:56 -05:00
Matthew Wall
1c79c355d0 default to standalone logging 2023-12-18 22:10:13 -05:00
matthew wall
e0a26c7186 fixed typo in entry point rule 2023-12-12 19:26:46 -05:00
matthew wall
8b2d0bc95c replace BINDIR and PYTHON in the entry points, even though they are replaced by defaults at runtime 2023-12-08 21:39:20 -05:00
matthew wall
594816ea79 use the default(60) priority for udev rules 2023-12-04 16:27:22 -05:00
matthew wall
52e71f8af4 changelogs now compressed 2023-12-04 10:14:27 -05:00
Matthew Wall
05c700d38b adjust permissions on weewx-owned directories 2023-12-03 16:35:56 -05:00
Matthew Wall
70d7bab5b4 explicit version numbers in intermediate config files. use pkg-specific logrotate. put systemd stuff in lib not etc. 2023-12-03 11:29:57 -05:00
Matthew Wall
df67c38959 added a parameterixed unit that inherits from the standard unit. use system config files from pkg directory instead of trying to match/adapt those in weewx_data/util, which serve different purpose. 2023-12-02 10:23:03 -05:00
Matthew Wall
e2c84f613c rpm (like deb) wants package-installed systemd stuff in /lib/systemd not /etc/systemd. install logrotate configuration so that multi requires less configuration. escape percents in extension migration timestamp. fix path in user dir macro. 2023-12-01 21:36:51 -05:00
matthew wall
985e5f05ba address lintian errors and warnings, add overrides for those we will not address 2023-12-01 18:39:21 -05:00
Matthew Wall
067a487734 put extensions in /etc/weewx/bin/user 2023-11-24 22:34:52 -05:00
Matthew Wall
529e4a9a7f match changes to debian packaging in the rh packaging 2023-11-23 22:05:22 -05:00
matthew wall
5ed504f56d make USER_ROOT explicit in the config file 2023-11-23 21:25:31 -05:00
matthew wall
07c31b2647 use RuntimeDirectory instead of putting pid in /var/lib/weewx (which is safer). might have to revisit this, depending on when systemd changed compatibility. 2023-11-23 12:03:23 -05:00
matthew wall
db84baa668 wrestling with systemd, permissions, and logging 2023-11-23 11:55:49 -05:00
matthew wall
19b67b0fb9 wrestling with systemd, permissions, and logging 2023-11-23 11:45:03 -05:00
mwall
e9e47e0100 adjustments to the debian installer. run as weewx user. install udev rules for core drivers. remove unused cruft. 2023-11-22 22:25:46 -05:00
mwall
bd143a9fd8 do not copy over the util folder, since we already have it. and we do not need/want util for each station instance. 2023-10-29 23:20:18 -04:00
Tom Keffer
6cd5dc91f6 Refactor, using 'src' instead of 'bin' to hold the source code.
wee_resources becomes weewx_data, and is put in version control.
The build documentation, as well as the 'user' subdirectory, are now
in it.

This allows weewxd to be run directly from the git repository for
two reasons: 1) the documentation does not have to be built first.
2) because the source code is now under 'src', while the 'user'
subdirectory is in weewx_data, weewxd does not accidentally pick
up the repository's version of the 'user' subdirectory.
2023-10-17 05:14:34 -07:00
Tom Keffer
dd24c6dd12 Remove wee_device 2023-08-03 18:45:04 -07:00
Tom Keffer
3ca794cb4e Remove wee_debug. 2023-07-27 14:07:15 -07:00
Tom Keffer
3d22889851 Remove wee_database and references to it 2023-07-19 15:27:56 -07:00
Tom Keffer
488aef8cd8 Remove the utility wunderfixer.
The WU seems to no longer allow past-dated records.
2023-05-27 05:06:11 -07:00
Matthew Wall
65bdfe6286 get docs from the right place 2023-05-05 21:43:20 -04:00
Matthew Wall
0ca78265ed fix formatting 2023-05-05 13:53:15 -04:00
Tom Keffer
2fe42433fe Rename docs subdirectories.
docs -> docs_src
html_docs -> docs

This puts the names closer to the end product.
2023-04-04 07:27:42 -07:00
Tom Keffer
c193dc0f2b Use /etc/default/weewx with systemd 2023-03-28 16:52:47 -07:00
Tom Keffer
9965a577a1 Change package name from python3-weewx to just weewx 2023-03-26 12:28:48 -07:00
Tom Keffer
d7ca5aeb21 Use systemd for package installs.
Compile byte-code in package installs.
2023-03-26 06:05:27 -07:00
Tom Keffer
a563f1d3ba Use /etc/weewx as WEEWX_ROOT in Debian package. 2023-03-25 13:12:35 -07:00
Tom Keffer
3dca7f8f2c Checkpoint 2023-03-23 14:14:38 -07:00
Tom Keffer
f57b71849f Python3 only packages. 2023-03-20 16:22:30 -07:00
Tom Keffer
d5b0d064fd Force the debian packager to use gzip.
Some recent versions of Ubuntu default to zstd.
2022-10-24 14:05:58 -07:00
Matthew Wall
0058c5dcfa use 'weewx' as the name for debian packages, and explicitly distinguish buster and squeeze 2020-04-28 20:09:31 -04:00
Matthew Wall
4936a69841 had to revert to two separate debbuild invocations and separate control files 2020-04-25 11:12:38 -04:00
Matthew Wall
28f524f1e2 include template default file. update rc scripts for redhat and suse to use default file with sane fallbacks. keep all environment variables in one default file. building on debian now requires python3-distutils instead of python2-setuptools. 2020-04-22 14:38:08 -04:00
Matthew Wall
553f3ea45c no more shebang modification 2020-04-11 11:07:16 -04:00
mwall
312d9c7330 distinguish rhel7 and rhel8 as python2 and python3, respectively 2020-02-26 20:45:05 -05:00