Castaglia / proftpd-mod_prometheus

ProFTPD module for providing metrics via Prometheus
0 stars 0 forks source link

help with install #22

Open Daxcor69 opened 6 months ago

Daxcor69 commented 6 months ago

I have to admit up front I am not very good at compiling code. I have proftpd up and running and just want to add this module.

Here is what I am doing, but it seems the make can't find files. So I am not sure where to put your files from the tar ball.

I tried putting them in the contrib and modules dir, but the make errors out with

cd modules/ && make static
make[1]: Entering directory '/home/brad/proftpd-1.3.8b/modules'
Makefile:5: ../../Make.rules: No such file or directory
make[1]: *** No rule to make target '../../Make.rules'.  Stop.
make[1]: Leaving directory '/home/brad/proftpd-1.3.8b/modules'
make: *** [Makefile:57: modules] Error 2

I am using

./configure \
 --sysconfdir=/etc/proftpd \
 --disable-ident \
 --enable-dso \
 --enable-ctrls \
 --with-modules=mod_tls:mod_sftp::mod_prometheus

any help would be appreciated, thx Brad

Castaglia commented 5 months ago

To build ProFTPD with mod_prometheus from source, you will need the source code for ProFTPD, the source code for mod_prometheus, and the necessary libraries installed. (The CI workflow definition has sections showing we install Alpine, RPM, and/or Debian/Ubuntu packages as part of the automated builds.)

Assuming the source code for ProFTPD via Git, after installing the necessary libraries, your instructions might look something like this:

$ git clone https://github.com/proftpd/proftpd.git
$ cd proftpd/
$ git clone https://github.com/Castaglia/proftpd-mod_prometheus.git contrib/mod_prometheus
$ ./configure \
  --sysconfdir=/etc/proftpd \
  --disable-ident \
  --enable-dso \
  --enable-ctrls \
  --with-modules=mod_tls:mod_sftp:mod_prometheus
$ make
$ make install